/* Estilos generales */
body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: #121212;
    color: white;
    line-height: 1.6;
    /* Removed overflow-x: hidden; */ /* This might be contributing to scroll issues if not carefully managed */
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #28BBDA; /* Color principal de acento */
    text-align: center;
}

section {
    padding: 4rem 1rem;
    position: relative; /* Para efectos de fondo o animaciones */
}

/* Encabezado */
header {
    display: flex;
    justify-content: space-between; /* Espacio entre logo, nav y controles */
    align-items: center;
    padding: 1rem 5%;
    position: absolute;
    top: 0;
    left: 0;
    width: 90%;
    z-index: 10;
    background-color: transparent; /* Quitado el fondo degradado */
    backdrop-filter: none; /* Quitado el efecto de desenfoque */
    transition: background-color 0.3s ease; /* Transición para posible cambio de color al hacer scroll */
}

header nav {
    flex-grow: 1; /* Permite que la navegación ocupe el espacio disponible */
    display: flex;
    justify-content: center; /* Centra los elementos de navegación */
}

header nav ul {
    display: flex;
    gap: 2rem;
}

header nav ul li a {
    font-weight: 600;
    transition: color 0.3s ease, transform 0.2s ease;
    padding: 0.5rem 1rem; /* Añadido padding para un mejor área de clic */
    border-radius: 5px;
}

header nav ul li a:hover {
    color: #28BBDA;
    transform: translateY(-2px);
    background-color: rgba(40, 187, 218, 0.1); /* Fondo sutil al pasar el ratón */
}

header .logo {
    width: 80px;
    height: auto;
    transition: transform 0.3s ease;
}

header .logo:hover {
    transform: scale(1.05);
}

/* Botón de cambio de idioma */
.lang-btn {
    background-color: #28BBDA;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    min-width: 60px; /* Asegura un ancho mínimo para el texto ES/EN */
    text-align: center;
}

.lang-btn:hover {
    background-color: #2099B6;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}


/* Sección Hero */
.hero {
    position: relative;
    height: 100vh;
    background: url("assets/Music.png") no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: left;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Reducida la opacidad para menos sombreado, más similar a Figma */
    z-index: 1;
}

.hero-content {
    display: flex;
    flex-direction: row;
    align-items: center; /* Mantiene la alineación centrada para el bloque */
    justify-content: space-between;
    width: 90%;
    max-width: 1200px;
    position: relative;
    z-index: 2;
    gap: 2rem;
    animation: fadeIn 1.5s ease-out; /* Animación de entrada */
}

.hero-text {
    flex: 1;
    max-width: 55%;
    padding-right: 0;
    display: flex; /* Usar flexbox para el texto */
    flex-direction: column;
    justify-content: center; /* Centrar verticalmente el contenido dentro de hero-text */
    align-items: flex-start; /* Alinear el texto a la izquierda */
}

.hero-text h2 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem; /* Ajustado el margen inferior */
    text-align: left;
    color: white;
    animation: slideInLeft 1.2s ease-out; /* Animación para el título */
}

.hero-text span {
    color: #28BBDA;
}

.hero-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    animation: slideInLeft 1.4s ease-out; /* Animación para los párrafos */
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    width: 100%;
    max-width: 700px; /* Aumentado aún más el tamaño de la imagen de la banda para que sea más prominente */
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    animation: slideInRight 1.5s ease-out; /* Animación para la imagen */
}

/* Botón */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: #28BBDA;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    animation: fadeIn 1.6s ease-out; /* Animación para el botón */
}

.btn:hover {
    background-color: #2099B6;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Sección Sobre Nosotros */
.about-us {
    background: #1A1A1A;
    color: white;
    padding: 5rem 1rem;
    text-align: center;
}

.about-us h2 {
    color: white;
    margin-bottom: 3rem;
    animation: fadeIn 1s ease-out;
}

.about-content {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
}

.about-text {
    flex: 1;
    max-width: 50%;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    animation: fadeIn 1.2s ease-out;
}

.about-text ul {
    font-size: 1.05rem; /* Ligeramente más grande */
    line-height: 1.8;
    padding-left: 1.5rem;
    list-style: disc;
    color: #28BBDA;
    animation: fadeIn 1.4s ease-out;
}

.about-text ul li {
    margin-bottom: 0.5rem;
    color: white;
}

.about-text ul li::marker {
    color: #28BBDA;
}

.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-image img {
    width: 100%;
    max-width: 450px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    animation: fadeIn 1.5s ease-out;
}

/* Sección Visión, Misión, Valores */
.vmv {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    background: #24292C;
    color: white;
    padding: 4rem 1rem;
    gap: 2rem;
}

.vmv .card {
    background: #ffffff; /* Fondo blanco */
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    width: calc(33% - 2rem);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #333; /* Texto oscuro */
    animation: fadeInUp 0.8s ease-out forwards; /* Animación de entrada */
    opacity: 0; /* Inicialmente oculto */
}

/* Animación de retraso para las tarjetas */
.vmv .card:nth-child(1) { animation-delay: 0.1s; }
.vmv .card:nth-child(2) { animation-delay: 0.3s; }
.vmv .card:nth-child(3) { animation-delay: 0.5s; }


.vmv .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.vmv .card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #28BBDA; /* Color de encabezado */
}

.vmv .card p {
    font-size: 1rem;
    line-height: 1.5;
    color: #555; /* Color de texto más suave */
}

/* Sección FAQ */
.faq {
    background: #1A1A1A;
    color: white;
    text-align: center;
    padding: 5rem 1rem;
    position: relative; /* Para posicionar las flechas */
}

.faq h2 {
    color: white;
    margin-bottom: 3rem;
    animation: fadeIn 1s ease-out;
}

.faq-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.faq-card {
    background: #ffffff; /* Fondo blanco */
    padding: 2rem;
    border-radius: 10px;
    width: calc(33% - 2rem);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #333; /* Texto oscuro */
    animation: fadeInUp 0.8s ease-out forwards; /* Animación de entrada */
    opacity: 0; /* Inicialmente oculto */
}

/* Animación de retraso para las tarjetas FAQ */
.faq-card:nth-child(1) { animation-delay: 0.1s; }
.faq-card:nth-child(2) { animation-delay: 0.3s; }
.faq-card:nth-child(3) { animation-delay: 0.5s; }


.faq-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.faq-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: #28BBDA; /* Color de encabezado */
}

.faq-card p {
    font-size: 1rem;
    line-height: 1.5;
    color: #555; /* Color de texto más suave */
}

/* Flechas de navegación FAQ */
.faq-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(40, 187, 218, 0.8); /* Azul con transparencia */
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    width: 50px; /* Tamaño fijo */
    height: 50px; /* Tamaño fijo */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, transform 0.2s ease;
    z-index: 5;
}

.faq-nav-arrow:hover {
    background-color: #28BBDA;
    transform: translateY(-50%) scale(1.05);
}

.faq-nav-arrow.left {
    left: 20px;
}

.faq-nav-arrow.right {
    right: 20px;
}

/* Pie de página */
footer {
    background: #0D0D0D;
    color: white;
    text-align: center;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-logo {
    width: 100px;
    height: auto;
    margin-bottom: 0.5rem;
}

footer nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 0;
}

footer nav a {
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

footer nav a:hover {
    color: #28BBDA;
}

.social-icons {
    margin-top: 1rem;
    display: flex;
    gap: 1.5rem;
}

.social-icons a {
    font-size: 1.8rem;
    transition: color 0.3s ease, transform 0.2s ease;
}

.social-icons a:hover {
    color: #28BBDA;
    transform: translateY(-3px);
}

/* Keyframe Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Estilos para las páginas de autenticación (login, signup, start_as) */
.auth-page {
    background: url("assets/Music.png") no-repeat center center/cover; /* Reutiliza el fondo del hero */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh; /* Keep this to ensure it takes at least the full viewport height */
    padding: 20px;
    box-sizing: border-box; /* Incluye padding en el ancho/alto */
    position: relative;
    /* overflow: hidden; */ /* REMOVED: This was preventing scrolling */
    overflow-y: auto; /* ADDED: Allow vertical scrolling */
    padding-bottom: 60px; /* ADDED: Extra padding at the bottom for scrollability */
}

.auth-page::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Capa oscura para el fondo */
    z-index: 0;
}

.auth-container {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 450px; /* Ancho máximo para el contenedor de la tarjeta en móvil */
}

.auth-card {
    background-color: #1D2224; /* Fondo oscuro para la tarjeta, actualizado a 1D2224 */
    padding: 40px 30px; /* Ajustado el padding para que coincida con Figma */
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    animation: fadeIn 0.8s ease-out;
}

.auth-logo {
    width: auto; /* Allow auto width to scale with max-width */
    max-width: 180px; /* Increased size for the combined logo to match Figma */
    height: auto;
    margin-bottom: 40px; /* Increased margin-bottom for better spacing */
}

.auth-card h2 {
    font-size: 2rem;
    color: white;
    margin-bottom: 30px; /* Adjusted margin-bottom for "Welcome!" */
}

.auth-form {
    display: flex;
    flex-direction: column; /* Por defecto, apilado en móvil */
    gap: 20px; /* Increased gap between form elements */
}

/* Para campos que aparecen lado a lado (como en signup) */
.input-row {
    display: flex;
    gap: 20px; /* Espacio entre campos en una fila */
    width: 100%;
}

.input-row .input-group {
    flex: 1; /* Cada input-group en una fila toma el mismo espacio */
    margin-bottom: 0; /* No hay margen inferior si es parte de una fila, el gap maneja el espaciado */
}

.input-group {
    position: relative; /* Para posicionar el password-toggle */
    margin-bottom: 20px; /* Espacio entre grupos de input apilados */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.input-group label {
    position: static; /* La label ahora es estática, no flotante */
    margin-bottom: 8px; /* Espacio entre la label y el input */
    color: #bbb;
    font-size: 1rem;
    pointer-events: auto; /* Permite interacciones si fuese necesario */
    background-color: transparent;
    transform: none;
}

.input-with-toggle { /* NUEVO: Contenedor para input y toggle */
    position: relative;
    width: 100%; /* Asegura que ocupe todo el ancho de su padre input-group */
}

.input-group input {
    width: calc(100% - 60px); /* Ancho completo del input-with-toggle menos (15px left + 45px right) padding */
    padding: 15px 45px 15px 15px; /* Padding estándar: 15px top, 45px right, 15px bottom, 15px left */
    background-color: #1E1E1E; /* Fondo del input más oscuro, como en Figma */
    border: 1px solid #333;
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s ease-out, box-shadow 0.2s ease-out;
    box-sizing: border-box; /* Importante para que el padding no afecte el width total */
    line-height: normal; /* Asegurar altura de línea normal para el texto */
}

/* REMOVIDAS LAS REGLAS DEL EFECTO FLOTANTE DE LABEL */

.password-toggle {
    position: absolute;
    right: 15px; /* Alineado con el padding derecho del input */
    top: 50%; /* Centrado verticalmente dentro de .input-with-toggle */
    transform: translateY(-50%); /* Ajusta para la propia altura del icono */
    cursor: pointer;
    color: #bbb;
    font-size: 1rem; /* Mismo tamaño de fuente que el input */
    z-index: 4;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    color: #ccc;
    font-size: 0.9rem;
    position: relative; /* Para posicionar el toggle */
    justify-content: flex-start; /* Align checkbox to the start */
    padding-left: 0px; /* Adjusted padding for checkbox */
}

/* Estilo del toggle switch */
.checkbox-group input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 40px; /* Ancho del toggle */
    height: 20px; /* Alto del toggle */
    background-color: #333; /* Color de fondo cuando está apagado */
    border-radius: 10px; /* Forma redondeada */
    cursor: pointer;
    position: relative;
    transition: background-color 0.3s ease;
    outline: none;
    margin-right: 10px; /* Espacio entre el toggle y el label */
    flex-shrink: 0; /* Prevent checkbox from shrinking */
}

.checkbox-group input[type="checkbox"]::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px; /* Tamaño del círculo */
    height: 16px;
    background-color: #bbb; /* Color del círculo cuando está apagado */
    border-radius: 50%;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.checkbox-group input[type="checkbox"]:checked {
    background-color: #28BBDA; /* Color de fondo cuando está encendido */
}

.checkbox-group input[type="checkbox"]:checked::before {
    transform: translateX(20px); /* Mueve el círculo a la derecha */
    background-color: white; /* Color del círculo cuando está encendido */
}


.terms-checkbox {
    margin-bottom: 20px;
}

.terms-checkbox label a {
    color: #28BBDA;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.terms-checkbox label a:hover {
    color: #2099B6;
}


.auth-btn {
    width: 100%;
    padding: 12px;
    background-color: #28BBDA; /* Color principal de acento */
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.auth-btn:hover {
    background-color: #2099B6;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.google-btn {
    width: 100%;
    padding: 12px;
    background-color: white;
    color: #333;
    border: 1px solid #ccc; /* Borde gris claro */
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.google-btn:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    border-color: #bbb;
}

.google-btn i {
    font-size: 1.2rem;
}

.auth-link-text {
    margin-top: 20px;
    font-size: 0.95rem;
    color: #ccc;
}

.auth-link-text a {
    color: #28BBDA;
    font-weight: bold;
    transition: color 0.2s ease;
}

.auth-link-text a:hover {
    color: #2099B6;
    text-decoration: underline;
}

/* Estilos para start_as.html */
.start-as-card {
    padding: 40px; /* Más padding para esta tarjeta */
}

.start-as-card h2 {
    margin-bottom: 30px;
}

.role-selection {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.role-btn {
    width: 100%;
    padding: 15px;
    background-color: #333; /* Fondo oscuro para los botones de rol */
    color: white;
    border: 2px solid #444;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.role-btn:hover {
    background-color: #28BBDA; /* Cambia a azul al pasar el ratón */
    border-color: #28BBDA;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}


/* Estilos para la flecha de regreso */
.back-arrow {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 1.8rem;
    color: white;
    background-color: rgba(40, 187, 218, 0.7); /* Azul con transparencia */
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, transform 0.2s ease;
    z-index: 10; /* Asegura que esté por encima de otros elementos */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.back-arrow:hover {
    background-color: #28BBDA;
    transform: scale(1.05);
}


/* Ajustes responsivos */

/* Estilos para escritorio (min-width: 769px) */
@media (min-width: 769px) {
    /* Header */
    header {
        flex-direction: row;
        padding: 1rem 5%;
        background-color: transparent; /* Asegura transparencia en escritorio */
    }

    /* Hero Section */
    .hero-content {
        flex-direction: row;
        text-align: left;
        align-items: center;
    }

    .hero-text {
        max-width: 55%;
        align-items: flex-start;
    }

    .hero-text h2 {
        font-size: 3.5rem;
        text-align: left;
    }

    .hero-text p {
        font-size: 1.1rem;
    }

    .hero-image img {
        max-width: 700px;
    }

    /* About Us Section */
    .about-content {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
    }

    .about-text {
        max-width: 50%;
    }

    /* VMV and FAQ Cards */
    .vmv .card, .faq-card {
        width: calc(33% - 2rem); /* Tres columnas en escritorio */
    }

    /* Auth Pages (Login, Signup, Start As) */
    .auth-container {
        max-width: 700px; /* Ancho más grande para la tarjeta en escritorio */
    }

    .auth-card {
        padding: 50px 60px; /* Más padding para la tarjeta en escritorio */
    }

    .auth-logo {
        max-width: 200px; /* Logo más grande en escritorio */
        margin-bottom: 50px; /* Más espacio debajo del logo */
    }

    .auth-card h2 {
        font-size: 2rem; /* Mantener el tamaño de fuente para "Welcome!" */
        margin-bottom: 40px; /* Más espacio debajo del título "Welcome!" */
    }

    .auth-form {
        gap: 25px; /* Aumenta el espacio entre filas de campos y botones */
    }

    /* .input-row ya definido arriba para escritorio */
    .input-row {
        display: flex;
        gap: 20px;
        width: 100%;
    }

    .input-row .input-group {
        margin-bottom: 0; /* Anula el margen inferior predeterminado para grupos apilados */
    }

    .input-group { /* Restablecer el margen para grupos apilados en escritorio si no están en una fila */
        margin-bottom: 20px; /* Mantener consistente con el móvil para columnas individuales */
    }

    .checkbox-group {
        justify-content: flex-start;
        padding-left: 0;
    }

    .terms-checkbox {
        margin-bottom: 30px;
    }

    .auth-btn, .google-btn {
        padding: 15px;
    }
}

/* Estilos para tabletas (max-width: 1024px y min-width: 769px) */
@media (max-width: 1024px) and (min-width: 769px) {
    .hero-text h2 {
        font-size: 2.8rem;
    }

    .hero-image img {
        max-width: 400px;
    }

    .about-text, .about-image {
        max-width: 100%;
    }

    .vmv .card, .faq-card {
        width: calc(48% - 2rem); /* Dos columnas en tabletas */
    }
}


/* Estilos para móviles (max-width: 768px) */
@media (max-width: 768px) {
    /* Header */
    header {
        padding: 0.5rem 1rem; /* Reduced padding for a very compact header */
        flex-direction: column; /* Stack elements vertically */
        gap: 0.3rem; /* Further reduced gap */
        background-color: rgba(0, 0, 0, 0.7); /* Consistent background */
        position: absolute; /* Keep it absolute */
        width: 100%;
        left: 0;
        top: 0;
        box-sizing: border-box;
        align-items: center; /* Center items horizontally */
    }

    header .logo {
        width: 45px; /* Even smaller logo */
        margin-bottom: 3px; /* Minimal margin below logo */
    }

    header nav {
        width: 100%;
        margin-top: 5px; /* Add a small margin to separate from logo */
    }

    header nav ul {
        flex-direction: row; /* Keep nav items in a row if possible, or adjust to wrap */
        flex-wrap: wrap; /* Allow wrapping if too many items */
        justify-content: center;
        gap: 0.6rem; /* Reduced gap for nav items */
    }

    header nav ul li a {
        font-size: 0.8rem; /* Smaller font for nav links */
        padding: 0.1rem 0.4rem; /* Reduced padding for nav links */
    }

    .lang-btn {
        margin-top: 5px; /* Small margin top for language button */
        padding: 0.3rem 0.7rem; /* Adjusted padding */
        font-size: 0.8rem; /* Smaller font for lang button */
    }

    /* Hero Section */
    .hero-content {
        flex-direction: column;
        text-align: center;
        width: 90%;
        padding-top: 130px; /* Adjusted padding to ensure content is visible below the header */
        /* This value might need fine-tuning based on actual header height */
    }

    .hero-text {
        max-width: 100%;
        padding-right: 0;
    }

    .hero-text h2 {
        font-size: 2.2rem;
        text-align: center;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .hero-image img {
        max-width: 300px;
    }

    /* About Us Section */
    .about-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .about-text ul {
        padding-left: 0;
        text-align: left;
    }

    /* VMV and FAQ Cards */
    .vmv .card, .faq-card {
        width: 90%; /* Una sola columna en móvil */
    }

    /* Footer */
    footer nav {
        flex-direction: column;
        gap: 0.5rem;
    }

    /* FAQ Navigation Arrows */
    .faq-nav-arrow {
        top: auto;
        bottom: 20px; /* Mover flechas a la parte inferior en móvil */
        transform: none;
    }
    .faq-nav-arrow.left {
        left: 20px;
        right: auto;
    }
    .faq-nav-arrow.right {
        right: 20px;
        left: auto;
    }

    /* Auth Pages (Login, Signup, Start As) */
    .auth-card {
        padding: 20px; /* Menos padding en móvil */
    }

    .auth-card h2 {
        font-size: 1.8rem;
    }

    .input-group input {
        width: calc(100% - 20px); /* Ajuste para padding en móvil */
        padding: 12px;
    }

    /* Asegura que .input-row se apile en móvil */
    .input-row {
        flex-direction: column;
        gap: 0; /* Elimina el gap entre campos cuando están apilados */
    }

    .input-row .input-group {
        margin-bottom: 20px; /* Añade el margen de nuevo cuando están apilados en móvil */
    }
}