/* ==========================================================================
   ESTILOS RESPONSIVE - LIBRA INFORMÁTICA
   ========================================================================== */

/* =========================================================
   MENÚ HAMBURGUESA
   ========================================================= */

/* Por defecto (Escritorio): Ocultamos el botón */
.hamburger-menu {
    display: none;
    background: none;
    border: none;
    color: var(--primary-dark); /* Ajusta al color de tu diseño */
    cursor: pointer;
    padding: 0;
}

.hamburger-menu .material-symbols-outlined {
    font-size: 2rem; /* Tamaño del icono */
}

/* ---------------------------------------------------
   1. TABLETS Y PANTALLAS MEDIANAS (Hasta 992px)
   --------------------------------------------------- */
@media (max-width: 992px) {
    /* Ajustes de Tipografía (Reducir tamaños para no romper la pantalla) */
    h1 { font-size: 2.5rem; line-height: 1.2; }
    h2 { font-size: 2.1rem; line-height: 1.3; }
    h3 { font-size: 1.6rem; line-height: 1.4; }
    h4 { font-size: 1.3rem; line-height: 1.4; }
    p { font-size: 1rem; }

    .hamburger-menu {
        display: block; 
    }

    .nav-container {
        flex-direction: row; 
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap; 
        padding: 1rem;
    }

    nav {
        width: 100%;
    }

    /* --- DISEÑO DEL MENÚ DESPLEGADO CON ALTO CONTRASTE --- */
    .nav-links {
        display: none; 
        flex-direction: column;
        width: 100%;
        background-color: var(--bg-light); 
        text-align: center;
        padding: 1rem 0;
        margin-top: 15px;
        border-radius: 8px; 
        box-shadow: 0 8px 16px rgba(0,0,0,0.200); /* Sombra un poco más marcada */
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links li a {
        display: block;
        font-size: 1.1rem;
        padding: 15px;
        color: var(--primary-dark); 
        font-weight: 600;
        transition: background-color 0.3s ease;
    }

    /* Efecto al tocar o pasar el ratón por encima (se aclara un poco el fondo) */
    .nav-links li a:hover,
    .nav-links li a:active {
        background-color: var(--primary-hover); 
    }

    /* Convertir diseños de dos columnas en una sola columna */
    .hero-container,
    .experience-container,
    .contact-wrapper {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        gap: 3rem;
    }

    /* Ajustar anchos al 100% para que no se desborden */
    .hero-content, 
    .hero-image,
    .experience-image, 
    .experience-content,
    .contact-info, 
    .contact-form-container {
        width: 100%;
        max-width: 100%;
    }

    /* Ajustes específicos de imágenes para que no sean gigantes */
    .hero-image img,
    .experience-image img {
        max-width: 100%;
        height: auto;
        margin: 0 auto;
    }

    .hero-image {
        display: flex;
        justify-content: center; /* Centra el contenido horizontalmente */
        align-items: center;
    }

    .hero-image img {
        width: 100%; 
        height: auto;
        margin: 0 auto;
    }

    .experience-image {
        position: relative; /* Necesario para que el badge se mueva respecto a la imagen */
    }

    /* Centrar las listas de experiencia (iconos y texto) */
    .experience-list {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding-left: 0;
    }
    
    .experience-list li {
        justify-content: flex-start;
        text-align: left; /* Mantiene la legibilidad del texto en tablet */
    }

    /* Footer: Pasar a 2 columnas en lugar de 3 o 4 */
    .footer-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 2rem;
    }
    
    .footer-content {
        flex: 1;
    }
}

/* ---------------------------------------------------
   2. MÓVILES (Hasta 768px)
   --------------------------------------------------- */
@media (max-width: 768px) {
    /* Ajustes de Tipografía (Reducir tamaños para no romper la pantalla) */
    h1 { font-size: 2.2rem; line-height: 1.2; }
    h2 { font-size: 1.8rem; line-height: 1.3; }
    h3 { font-size: 1.5rem; line-height: 1.4; }
    h4 { font-size: 1.3rem; line-height: 1.4; }
    p { font-size: 1rem; }

    /* --- SECCIONES ESPECÍFICAS --- */
    /* Separación de partners (Logos de Microsoft/Google) */
    .hero-partner-images {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }

    /* Banner superior de Anydesk */
    .banner-app-remoto {
        text-align: center;
        font-size: 0.85rem;
    }

    /* Footer: Todo a 1 sola columna centrada */
    .footer-content {
        flex: 1 1 100%;
        text-align: left;
        margin-bottom: 1.5rem;
    }
    
    /* Alinear iconos del footer al centro */
    .footer-content-item {
        justify-content: flex-start;
    }

    .contact-form-container {
        width: 100%;
        max-width: 100%;
    }

    /* Obligamos al formulario a poner los campos en una sola columna */
    .contact-form {
        display: flex;
        flex-direction: column;
        gap: 1rem; /* Espaciado entre los campos */
        width: 100%;
    }

    /* Cada grupo de etiqueta + input ocupa el 100% */
    .contact-form-group {
        width: 100%;
    }

    /* Ajuste vital para que los inputs no se salgan de la pantalla */
    .contact-form-group input,
    .contact-form-group textarea {
        width: 100%;
        box-sizing: border-box; /* Evita que el padding sume ancho extra y rompa el diseño */
        max-width: 100%; /* Por seguridad extra */
        font-size: 1rem; /* Evita que el iPhone haga zoom automático al escribir */
        /* text-align: left; */
    }

    /* El checkbox de privacidad y su texto */
    .contact-form-checkbox-group {
        display: flex;
        align-items: flex-start; /* Alinea el texto con la cajita arriba si ocupa varias líneas */
        gap: 10px;
    }
    
    .contact-form-checkbox-group label {
        font-size: 0.9rem; /* Un poco más pequeño en móvil para que encaje bien */
        line-height: 1.4;
    }

    .footer-info p,
    .footer-info ul li a,
    .footer-info-item span,
    .footer-info-item span a {
        font-size: 1rem !important;
    }

    /* Banner de Cookies */
    .cookie-container {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .cookie-buttons {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .cookie-buttons button {
        width: 100%;
    }
}
