/* =========================================================
   1. RESET Y ESTILOS BASE
   ========================================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Poppins', sans-serif; overflow-x: hidden; color: #333; background-color: #f4f4f4; }
body.no-scroll { overflow: hidden; }

/* =========================================================
   2. SECCIÓN HERO NOSOTROS
   ========================================================= */
.hero-nosotros {
    position: relative;
    height: 90vh; 
    width: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('nosotrosfondoardiles11.webp') no-repeat center center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1; 
}

.hero-content {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.titulo-elegante-nosotros {
    margin-top: -300px;
    font-family: 'Playfair Display', serif; 
    font-size: 6rem; 
    color: #ffffff; 
    letter-spacing: 2px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.6);
}

/* =========================================================
   3. BARRA DE NAVEGACIÓN
   ========================================================= */
.navbar {
    position: absolute; 
    top: 40px; 
    left: 0;   
    background-color: rgba(45, 48, 56, 0.85); 
    backdrop-filter: blur(4px); 
    padding: 12px 40px 12px 20px;
    border-radius: 0 8px 8px 0; 
    display: flex; 
    align-items: center; 
    z-index: 100;
}

.logo-container { display: none; }

.nav-links { list-style: none; display: flex; gap: 30px; }

.nav-links a {
    color: #ffffff; 
    text-decoration: none; 
    font-size: 14px; 
    font-weight: 400; 
    font-family: 'Open Sans', sans-serif; 
    transition: color 0.3s ease;
}

.nav-links a:hover { color: #eab332; }

.nav-item-mobile { display: none !important; }

.arrow { 
    font-size: 0.8em; 
    margin-left: 5px; 
    transition: transform 0.3s ease; 
}

/* =========================================================
   4. SECCIÓN BLANCA ESTÁTICA
   ========================================================= */
.seccion-blanca-estatica {
    background-color: #ffffff;
    border-radius: 60px 60px 0 0; 
    position: relative; /* NECESARIO PARA 24/7 */
    z-index: 10;
    margin-top: -80px; 
    box-shadow: 0 -10px 30px rgba(0,0,0,0.1);
    padding-bottom: 80px;
}

.nosotros-container {
    padding: 80px 5% 40px 5%;
    max-width: 1200px; 
    margin: 0 auto;
}

.nosotros-layout {
    display: flex;
    justify-content: center; 
    align-items: flex-start;
    gap: 300px; 
}

/* COLUMNA IZQUIERDA */
.nosotros-col-izq {
    flex: 0 0 40%; 
    max-width: 420px; 
    display: flex;
    flex-direction: column;
    margin-left: -200px;
    margin-top: 150px;
}

.img-reunion-nosotros {
    width: 130%;
    height: auto;
    border-radius: 15px; 
    object-fit: cover;
    margin-bottom: 40px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* COLUMNA DERECHA */
.nosotros-col-der {
    flex: 0 0 50%; 
    max-width: 550px;
    display: flex;
    flex-direction: column;
    position: relative; 
    padding-top: 150px; 
}

.logo-nosotros-seccion {
    position: absolute;
    top: -20px; 
    left: -150px; 
    width: 150%; 
    max-width: 860px; 
    height: auto;
    object-fit: contain;
}

.titulo-ardiles {
    margin-top: 150px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500; 
    font-size: 1.4rem;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.textos-descripcion-nosotros p {
    font-weight: 300; 
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* ICONOS */
.icono-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.icono-circular {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    padding: 15px;
    object-fit: contain;
}

.icono-item p {
    font-weight: 300; 
    font-size: 0.85rem;
    color: #555;
    line-height: 1.4;
    max-width: 250px;
}

.icono-item-derecha { margin-top: 15px; }

/* =========================================================
   NUEVA POSICIÓN 24/7
   ========================================================= */

.bloque-24-7-floating {
    position: absolute;
    bottom: 60px;
    right: 80px;
    text-align: right;
}

.bloque-24-7-floating h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 500; 
    font-size: 2.2rem;
    color: #7a7059;
    line-height: 1;
    margin-bottom: 5px;
}

.bloque-24-7-floating p {
    font-weight: 300; 
    font-size: 0.85rem;
    color: #666;
    line-height: 1.3;
}

/* =========================================================
   6. FOOTER Y BOTÓN FLOTANTE
   ========================================================= */
.floating-btn { position: fixed; bottom: 40px; right: 30px; background-color: #eab332; color: white; width: 60px; height: 60px; border-radius: 50%; display: flex; justify-content: center; align-items: center; box-shadow: 0px 5px 20px rgba(234, 179, 50, 0.4); z-index: 1000; transition: all 0.3s ease; }
.floating-btn:hover { background-color: #d19f2a; transform: scale(1.1); }

.site-footer { background-color: #030614; color: #ffffff; padding-top: 150px; }
.footer-container { max-width: 1300px; margin: 0 auto; padding: 0 5%; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1.5fr; gap: 40px; margin-bottom: 30px; }
.brand-col { display: flex; flex-direction: column; align-items: center; }
.footer-logo-container { position: relative; height: 100px; width: 100%; display: flex; justify-content: center; align-items: center; margin-bottom: 15px; }
.footer-logo { position: absolute; height: 320px; width: auto; top: 80%; left: 10%; transform: translate(-50%, -50%); }
.footer-phone { font-weight: 500; font-size: 24px; letter-spacing: 0.5px; margin-top: 50px; margin-left: -300px; }
.col-title { font-weight: 300; font-size: 14px; margin-bottom: 25px; color: #ffffff; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 15px; }
.footer-links a { color: #ffffff; text-decoration: none; font-weight: 300; font-size: 13px; transition: color 0.3s ease; }
.footer-links a:hover { color: #ff7826; }
.footer-social { display: flex; justify-content: flex-end; gap: 15px; padding-bottom: 30px; }
.social-icon { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1px solid #ffffff; border-radius: 50%; color: #ffffff; text-decoration: none; transition: all 0.3s ease; }
.social-icon:hover { background-color: #ff7826; border-color: #ff7826; transform: translateY(-3px); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 20px 0; }
.footer-bottom-content { max-width: 1300px; margin: 0 auto; padding: 0 5%; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px; text-align: center; }
.copyright, .developer { font-weight: 300; font-size: 12px; color: rgba(255, 255, 255, 0.7); margin: 0; }
.developer { color: rgba(255, 255, 255, 0.4); }

/* =========================================================
   6. MEDIA QUERIES (RESPONSIVE) - ADAPTADO AL NUEVO 24/7
   ========================================================= */

/* --- 1. PANTALLAS GRANDES Y LAPTOPS --- */
@media screen and (max-width: 1440px) {
    .logo-nosotros-seccion { max-width: 700px; left: -100px; }
    .titulo-elegante-nosotros { font-size: 5rem; }
    .nosotros-layout { gap: 150px; }
    .nosotros-col-izq { margin-left: -100px; }
    .bloque-24-7-floating { right: 40px; } 
}

/* --- 2. TABLETS (Hasta 1024px) --- */
@media screen and (max-width: 1024px) {
    .hero-nosotros { height: 60vh; }
    .titulo-elegante-nosotros { font-size: 4rem; margin-top: -100px; }
    .seccion-blanca-estatica { margin-top: -50px; padding-top: 40px; }

    .nosotros-layout { 
        display: flex; /* Aseguramos que sea flex */
        flex-direction: column; 
        align-items: center; 
        gap: 0; 
    }

    /* --- CAMBIO DE ORDEN SOLICITADO --- */
    .nosotros-col-der { 
        order: 1; /* Primero el Título y descripción */
        flex: 0 0 100%; 
        max-width: 90%; 
        text-align: center;
        padding-top: 0;
    }

    .nosotros-col-izq { 
        order: 2; /* Luego la imagen y los iconos restantes */
        flex: 0 0 100%; 
        max-width: 90%; 
        margin-left: 0; 
        text-align: center;
        padding-top: 40px; /* Espacio entre bloques */
    }

    .img-reunion-nosotros { width: 100%; margin: 0 auto 40px auto; }

    .logo-nosotros-seccion { 
        position: relative; 
        top: 0; left: 0; 
        width: 100%; max-width: 400px; 
        margin: 0 auto 20px auto; 
    }

    .titulo-ardiles { margin-top: 20px; font-size: 1.8rem; }
    
    .icono-item { 
        flex-direction: column; 
        justify-content: center;
        margin-bottom: 40px;
    }

    .bloque-24-7-floating { 
        position: relative; 
        bottom: 0; right: 0; 
        text-align: center; 
        margin-top: 40px;
    }

    .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
    .brand-col { grid-column: 1 / -1; }
    .footer-logo { position: static; height: 180px; transform: none; }
    .footer-phone { margin-left: 0; text-align: center; }
}

/* --- 3. MÓVILES (Hasta 768px) --- */
@media screen and (max-width: 768px) {
    .navbar { 
        top: 0; width: 100%; height: 80px; padding: 0 20px; 
        justify-content: space-between; 
        background-color: rgba(45, 48, 56, 0.95); 
        border-radius: 0; z-index: 2000;
    }
    
    .logo-container { display: block; z-index: 2100; }
    
    .hamburger-menu { display: flex; flex-direction: column; justify-content: center; width: 30px; height: 30px; cursor: pointer; z-index: 2200; position: relative; }
    .hamburger-menu span { display: block; height: 2px; width: 100%; background-color: #ffffff; margin: 3px 0; transition: 0.3s; }
    .hamburger-menu.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger-menu.active span:nth-child(2) { opacity: 0; }
    .hamburger-menu.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .nav-links { 
        position: fixed; top: 0; left: -100%; width: 100%; height: 100vh; 
        background-color: #191c21; 
        flex-direction: column; padding: 100px 0; 
        transition: 0.4s; z-index: 1500; overflow-y: auto;
    }
    .nav-links.active { left: 0; }
    .nav-links li { width: 100%; border-bottom: 1px solid rgba(255,255,255,0.1); }
    .nav-links a { padding: 20px; font-size: 18px; display: block; text-align: center; }

    .dropdown.active .dropdown-content { display: block; background: rgba(255,255,255,0.05); }
    .dropdown.active .arrow { transform: rotate(180deg); display: inline-block; }

    .titulo-elegante-nosotros { font-size: 3rem; }
    .bloque-24-7-floating h3 { font-size: 1.8rem; }

    .site-footer { padding-top: 80px; padding-bottom: 0; }
    .footer-top { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .brand-col { align-items: center; }
    .footer-logo-container { height: auto; margin-bottom: 10px; }
    .footer-logo { position: static; height: auto; max-width: 160px; transform: none; }
    .footer-phone { margin-top: 10px; margin-left: 0; font-size: 20px; }
    .footer-social { justify-content: center; padding-bottom: 20px; }
    .footer-bottom { padding: 20px 0 20px 0; }
}

/* --- 4. CELULARES PEQUEÑOS --- */
@media screen and (max-width: 480px) {
    .titulo-elegante-nosotros { font-size: 2.5rem; }
    .seccion-blanca-estatica { border-radius: 30px 30px 0 0; }
    .nosotros-container { padding: 40px 5%; }
    .footer-phone { font-size: 18px; }
}

/* =========================================================
   RESPONSIVE: LAPTOPS Y SURFACE PRO HORIZONTAL (1025px a 1600px)
   ========================================================= */
@media screen and (min-width: 1025px) and (max-width: 1600px) {


    .footer-top { grid-template-columns: 1fr 1fr 1.2fr; gap: 20px; }
    .footer-logo { 
        height: 260px; 
        left: 50%; 
        top: 60%; 
        /* SOLUCIÓN: Evita que la imagen del logo bloquee los clicks de los enlaces en laptops */
        pointer-events: none; 
    }
    .footer-phone { margin-left: 0; font-size: 22px; text-align: center; width: 100%; }
    
    /* Aseguramos que los links estén por encima y reciban el click */
    .footer-links a, .social-icon {
        position: relative;
        z-index: 60;
    }
}