        /* --- ESTILOS GENERALES Y VARIABLES DE COLOR --- */
        /* ¡Puedes cambiar estos colores para modificar toda la página! */
        :root {
            --color-fondo: #121212;
            --color-fondo-secundario: #1E1E1E;
            --color-acento-azul: #007BFF;
            --color-texto-blanco: #FFFFFF;
            --color-texto-gris: #b3b3b3;
            --fuente-principal: 'Poppins', sans-serif;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html {
            scroll-behavior: smooth;
        }

 body {
    font-family: var(--fuente-principal);
    background-color: var(--color-fondo);
    color: var(--color-texto-blanco);
    padding-top: 85px; /* Añade esto. Es la altura aproximada del header */
}

        section {
            padding: 80px 20px;
        }

        .container {
            max-width: 1100px;
            margin: 0 auto;
            text-align: center;
        }

        h2 {
            font-size: 2.5rem;
            margin-bottom: 40px;
            font-weight: 700;
        }
        
        .btn {
            display: inline-block;
            padding: 12px 28px;
            border-radius: 5px;
            text-decoration: none;
            font-weight: 600;
            transition: all 0.3s ease;
        }

        .btn-principal {
            background-color: var(--color-acento-azul);
            color: var(--color-texto-blanco);
        }
        
        .btn-principal:hover {
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(0, 123, 255, 0.4);
        }

        /* --- SECCIÓN 1: HEADER & HERO --- */
        .header {
            position: fixed;
            top: 0;
            width: 100%;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 20px 50px;
            background: #eeeeee3d;
            backdrop-filter: blur(10px);
            z-index: 1000;
	    height: 90px;
        }

        .header .logo {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--color-texto-blanco);
        }

        .header .nav-menu a {
            color: var(--color-texto-blanco);
            text-decoration: none;
            margin: 0 15px;
            font-weight: 600;
            transition: color 0.3s ease;
        }

        .header .nav-menu a:hover {
            color: var(--color-acento-azul);
        }

        .hero-section {
            height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://images.unsplash.com/photo-1550745165-9bc0b252726a?q=80&w=2070&auto=format&fit=crop') no-repeat center center/cover;
        }

        .hero-content h1 {
            font-size: 3.5rem;
            margin-bottom: 20px;
            font-weight: 700;
        }

        .hero-content .subtitulo {
            font-size: 1.5rem;
            color: var(--color-texto-gris);
            margin-bottom: 30px;
        }
        
        /* --- Formulario de Contacto --- */
        #contacto {
            background: linear-gradient(rgba(30, 30, 30, 0.9), rgba(0, 123, 255, 0.2)), url('../img/bg.jpg') no-repeat center center/cover;

        }

        .form-container {
            max-width: 700px;
            margin: 0 auto;
            background: var(--color-fondo);
            padding: 40px;
            border-radius: 8px;
            text-align: left;
        }

        .form-container .form-group {
            margin-bottom: 20px;
        }
        
        .form-container label {
            display: block;
            margin-bottom: 8px;
        }
        
        .form-container input, .form-container textarea, .form-container select {
            width: 100%;
            padding: 12px;
            background-color: var(--color-fondo-secundario);
            border: 1px solid #444;
            border-radius: 5px;
            color: var(--color-texto-blanco);
        }
        
        .form-container .btn {
            width: 100%;
            font-size: 1.2rem;
            border: none;
            cursor: pointer;
        }
        /* --- FOOTER --- */
        footer {
            background-color: #000;
            text-align: center;
            padding: 40px 20px;
        }






/* --- ESTILOS PARA EL POPUP --- */
.popup-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    background-color: rgba(0, 0, 0, 0.7);
    display: none; /* Oculto por defecto */
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.popup-content {
    background-color: var(--color-fondo-secundario);
    padding: 30px 40px;
    border-radius: 8px;
    text-align: center;
    position: relative;
    box-shadow: 0 5px 25px rgba(0,0,0,0.5);
    min-width: 300px;
    max-width: 500px;
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    color: var(--color-texto-gris);
    cursor: pointer;
    transition: color 0.3s ease;
}

.popup-close:hover {
    color: var(--color-texto-blanco);
}

/* Clases para éxito y error */
.popup-content.success {
    border-left: 5px solid #28a745; /* Verde */
}

.popup-content.error {
    border-left: 5px solid #dc3545; /* Rojo */
}

/* Modifica la URL del fondo del hero */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* Cambia la URL a una ruta local */
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('../img/bg.webp') no-repeat center center/cover;
}



/* --- ESTILOS PARA EL POPUP DE IMAGEN ÚNICA --- */
.image-popup-content {
    position: relative;
    max-width: 85vw; /* La imagen ocupará máximo el 85% del ancho de la pantalla */
    max-height: 85vh; /* La imagen ocupará máximo el 85% del alto de la pantalla */
}

.image-popup-content img {
    max-width: 100%;
    max-height: 100%;
    display: block;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* Estilo para que el botón de cierre se vea bien sobre la imagen */
#imagePopup .popup-close {
    position: absolute; /* Lo posicionamos relativo al contenedor del popup */
    top: -15px;
    right: -15px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    line-height: 1;
    z-index: 10; /* Para que esté por encima de la imagen */
    border: 2px solid white;
}

/* --- ESTILOS RESPONSIVE PARA MÓVILES --- */
@media (max-width: 768px) {

    /* --- AJUSTES GENERALES --- */
    h2 { font-size: 2rem; }
    section { padding: 60px 20px; }

    /* --- HEADER Y MENÚ DE HAMBURGUESA 
    .header {
        justify-content: space-between; 
        padding: 15px 20px;
    }--- */

    .hamburger-btn { /* Estilos del botón hamburguesa */
        display: block;
        background: none;
        border: none;
        color: var(--color-texto-blanco);
        font-size: 1.5rem;
        cursor: pointer;
    }

    .nav-menu { /* El menú de navegación */
        display: none; /* Oculto por defecto en móvil */
        position: absolute;
        top: 75px; /* Justo debajo del header */
        left: 0;
        width: 100%;
        background: var(--color-fondo-secundario);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        gap: 20px;
    }

    .nav-menu.active { /* Se muestra cuando se hace clic en la hamburguesa */
        display: flex;
    }
    
    .header .btn-principal {
        display: none; /* Ocultamos el botón de Demo original del header */
    }
    .btn-menu-demo {
        display: inline-block !important; /* Mostramos el que está dentro del menú */
    }

    /* --- HERO SECTION --- */
    .hero-content h1 { font-size: 2.5rem; }
    .hero-content .subtitulo { font-size: 1.2rem; }

    /* --- POPUP PROMOCIONAL (CORREGIDO) --- */
    .promo-popup-content {
        flex-direction: column;
        max-width: 90vw;
		max-height: 500px; 
        overflow-y: auto;
		align-items: center;
    }
    .promo-popup-image, .promo-popup-text { width: 100%; }
    .promo-popup-image img { max-height: 180px;
								align-self: stretch; 	}
    .promo-popup-text { padding: 25px; }

    /* --- POPUP DE IMAGEN ÚNICA (CORREGIDO) --- */
    .image-popup-content img {
		height: 100%;
    object-fit: cover; 
        object-fit: contain; /* Asegura que toda la imagen sea visible sin deformarse */
    }

    /* Hacemos el botón de cierre más grande y visible */
    #imagePopup .popup-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 30px;
        background: rgba(0, 0, 0, 0.7);
        border: 2px solid white;
    }
}



/* Por defecto, el botón está oculto en pantallas grandes (escritorio) */
.hamburger-btn {
    display: none; /* Oculto en escritorio */
    background: none;
    border: none;
    color: var(--color-texto-principal); /* Color oscuro para el diseño blanco */
    font-size: 1.6rem;
    cursor: pointer;
    z-index: 1100; /* Se asegura de que esté por encima de todo */
}

/* Solo se muestra en pantallas de 768px o menos (móvil y tablet) */
@media (max-width: 768px) {
    .hamburger-btn {
        display: block; /* Hacemos visible el botón en móvil */
    }
}
.header .logo img {
    max-height: 250px;  /* Ajusta esta altura según el tamaño que desees */
    width: auto;       /* Mantiene la proporción original de la imagen */
    display: block;    /* Elimina cualquier espacio extra debajo de la imagen */
}
