/* VARIABLES Y ESTILOS GENERALES */
:root {
    --bg-primary: #121214;
    --bg-card: #202024;
    --accent-color: #00e676;
    --text-color: #ffffff;
    --text-muted: #a8a8b3;
    --border-color: #29292e;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* LOGO */
.logo-img {
    height: 100px;
    width: auto;
    object-fit: contain;
    display: block;
}

/* NAVEGACIÓN Y MENÚ EXTENDIDO */
.header {
    background-color: var(--bg-card);
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--text-color);
    text-decoration: none;
}

.logo span {
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent-color);
}

/* HERO BANNER A FULL ANCHO (100% PANTALLA) */
.hero-banner-full {
    position: relative;
    width: 100%;
    max-width: 100vw;
    height: 480px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-img-full {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
}

.hero-overlay-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 25px 30px;
    background: rgba(18, 18, 20, 0.75);
    border-radius: 12px;
    max-width: 900px;
    margin: 0 20px;
    backdrop-filter: blur(4px);
    border: 1px solid var(--border-color);
}

.hero-overlay-content .main-title {
    font-size: 2.5rem;
    margin-bottom: 12px;
    color: var(--text-color);
}

.hero-overlay-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* BOTONES */
.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: #000000;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
}

.btn:hover {
    background-color: #00c853;
    transform: translateY(-2px);
}

/* TARJETAS DE PRODUCTOS */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 25px;
}

.product-card {
    background-color: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.product-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-info h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.specs {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.price {
    font-size: 1.4rem;
    color: var(--accent-color);
    font-weight: bold;
    margin-bottom: 15px;
}

.add-to-cart {
    margin-top: auto;
    width: 100%;
}

/* SECCIÓN DE CONTACTO */
.contact-section {
    margin: 60px 0;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    background-color: var(--bg-card);
    padding: 40px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.contact-info h3 {
    margin-bottom: 20px;
    color: var(--accent-color);
}

.contact-info p {
    margin-bottom: 15px;
    color: var(--text-muted);
}

.contact-info strong {
    color: var(--text-color);
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-color);
    font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: 1px solid var(--accent-color);
}

/* FOOTER */
.footer {
    text-align: center;
    padding: 30px;
    background-color: var(--bg-card);
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
}

/* ESTILOS DEL MODAL DE ANUNCIO CON BOTÓN */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.82);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    position: relative;
    background-color: #202024;
    padding: 16px;
    border-radius: 12px;
    max-width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.7);
    border: 1px solid var(--border-color);
}

.poster {
    max-width: 100%;
    max-height: 70vh;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
    border-radius: 8px;
}

.modal-action {
    margin-top: 15px;
    width: 100%;
    text-align: center;
}

.btn-modal {
    width: 100%;
    text-align: center;
    font-size: 1.1rem;
}

.close {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 36px;
    height: 36px;
    background-color: #ffffff;
    color: #121214;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    transition: background-color 0.2s, color 0.2s;
}

.close:hover {
    background-color: #ff4d4d;
    color: #ffffff;
}