.container {
    width: 100%;
    overflow-x: hidden;
}


* {
    box-sizing: border-box;
}



* { margin: 0; padding: 0; box-sizing: border-box; } 

    body    { font-family: 'Poppins', sans-serif; line-height: 1.6; color: #333; } 



    
/* Header */
     header {
         background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%); 
         
         color: white; padding: 1rem 0; position: fixed; width: 100%; top: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.1); 
        }
       
header {
    display: flex;
    justify-content: center;
}

   @media (max-width: 768px) {

    nav {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}
       
    

    .logo {
        font-size: 1.3rem;
    }

}
       
        
       

        .nav-container {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 2rem;
        }

        
        @media (max-width: 768px) {

    .nav-links {
        display: none;
    }

    .nav-links.active {
        display: flex !important;
        flex-direction: column;
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: #1e3c72;
        padding: 2rem 0;
        gap: 1.5rem;
        align-items: center;
        z-index: 9999;
    }

}
        
        
        .nav-links a {
             color: white; text-decoration: none; font-weight: 500; transition: color 0.3s; 
            } 
        
        .nav-links a:hover { 
            color: #ffd700; 
        } 
        
@media (max-width: 768px) {



}
        
        /* ===== RESTAURAR BOTÓN COTIZACIÓN ===== */
.cta-button {
    background: #ffd700 !important;
    color: #1e3c72 !important;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    text-decoration: none !important;
    font-weight: 600;
    display: inline-block;
    transition: transform 0.3s;
}

.cta-button:hover {
    transform: translateY(-2px);
}
        
        
        @media (max-width: 768px) {

    .cta-button {
        display: block;
        width: auto;
        font-size: 0.8rem;
        padding: 0.5rem 0.8rem;
    }

}
        
        /* Hero Section */ 
        .hero { 
            background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%231e3c72" width="1200" height="600"/><path fill="%232a5298" d="M0 300 Q300 200 600 300 T1200 300 V600 H0 Z"/></svg>'); 
            background-size: cover; 
            height: 100vh; 
            display: flex; 
            align-items: center; 
            justify-content: center; 
            text-align: center; 
            color: rgb(255, 255, 255); 
            margin-top: 80px; 
        } 
        
        /* ===== TITULO HERO ===== */
.hero-content {
    max-width: 900px;
    padding: 0 2rem;
    animation: slideInUp 1.2s ease-out;
    position: relative;
    z-index: 2;
}


.hero h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(3.5rem, 8vw, 7rem);
    color: rgb(255, 255, 255);
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}






@media (max-width: 768px) {

    .hero {
        padding: 0 1rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }



    .cta-button {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    .container {
        padding: 2rem 1rem;
    }
}









@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(80px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
        .hero {
            display: flex;
             justify-content: center;  /* horizontal */
             align-items: center;      /* vertical */
            text-align: center;       /* texto centrado */
            }

        
            .hero-content p {
            font-size: 1.3rem; 
            margin-bottom: 2rem; 
            max-width: 900px; 
            align-items: center; 
            justify-content: center; 
            text-align: center; 
            animation: fadeInUp 1s ease 0.2s both; 
        } 
        @keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } 
    } 


    
    /* Sections */ 
    .container { 
        max-width: 1200px; 
        margin: 0 auto; 
        padding: 4rem 2rem; 
    } 
    .section-title { 
        text-align: center; 
        font-size: 2.5rem; 
        margin-bottom: 3rem; 
        color: #1e3c72; 
    }
    
    /* Services */ 
    .services-grid { 
        display: grid; 
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
        gap: 2rem; 
        margin-bottom: 4rem; 
    } 
    .service-card { 
        background: white; 
        padding: 2rem; 
        border-radius: 15px; 
        box-shadow: 0 10px 30px rgba(0,0,0,0.1); 
        text-align: center; 
        transition: transform 0.3s, box-shadow 0.3s; 
    } 
    .service-card:hover {
         transform: translateY(-10px); 
         box-shadow: 0 20px 40px rgba(0,0,0,0.15); } 
         .service-icon { font-size: 3rem; color: #ffd700; margin-bottom: 1rem; } 
         
         /* Units */ 
         .units-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; } 
         .unit-item { background: #f8f9fa; padding: 1.5rem; border-radius: 10px; border-left: 4px solid #ffd700; }
         
         /* Contact */
         .contact-section { background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%); color: white; text-align: center; } 
         .contact-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; margin: 3rem 0; } 
         .contact-item i { font-size: 2rem; color: #ffd700; margin-bottom: 1rem; } 
         .whatsapp-btn { display: inline-block; background: #25D366; color: white; padding: 1rem 2rem; border-radius: 50px; text-decoration: none; font-size: 1.2rem; font-weight: 600; margin: 1rem; transition: transform 0.3s; } 
         .whatsapp-btn:hover { transform: scale(1.05); } /* Footer */ footer { background: #1e3c72; color: white; text-align: center; padding: 2rem; } 
         
         /* Responsive */
         @media (max-width: 768px) { 
        .nav-links { display: none; } 
         .hero-content h1 { font-size: 2.5rem; } 
         .section-title { font-size: 2rem; } }



         /* FORMULARIO */
.formulario {
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}


.formulario input,
.formulario textarea {
    width: 100%;
    display: block;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 10px;
    border: 1px solid #ccc;
    box-sizing: border-box;
    -webkit-appearance: none;
}



.formulario button {
    border: none;
    cursor: pointer;
    border-radius: 10px;
    font-size: 1rem;
}

.mensaje-exito {
    display: none;
    background: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    margin-top: 1rem;
    font-weight: 500;
}


/* IMÁGENES DE UNIDADES */
.unit-img {
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.unit-img img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 🔥 hace que se adapten perfecto */
    transition: transform 0.3s ease;
}

/* EFECTO HOVER (opcional pero se ve pro) */
.unit-item:hover img {
    transform: scale(1.05);
}

/* MEJORAR TARJETA */
.unit-item {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 10px;
    border-left: 4px solid #ffd700;
    text-align: center;
}


.unit-img {
  position: relative;
  width: 100%;
  height: 200px; /* ajusta si quieres */
  overflow: hidden;
}

.unit-img img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.unit-img img.active {
  opacity: 1;
}


/* ===== ABOUT SECTION ===== */

.about-section {
    text-align: center;
}

/* BLOQUE PRINCIPAL */


.about-main {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.about-logo {
    flex: 1 1 250px;
    max-width: 300px;
}

.about-logo img {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.about-text {
    flex: 2 1 400px;
    max-width: 700px;
}


/* LOGO */







/* CARDS */
.about-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.about-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: left;
    transition: transform 0.3s, box-shadow 0.3s;
}

.about-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.about-card h3 {
    color: #1e3c72;
    margin-bottom: 1rem;
}

.about-card ul {
    list-style: none;
    padding-left: 0;
}

.about-card li {
    margin-bottom: 0.5rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .about-main {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-text p {
        text-align: center;
    }
}
/* ===== ANIMACIONES FADE-IN ===== */

.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s ease;
}

.fade-in.show {
    opacity: 1;
    transform: translateY(0);
}

/* Variaciones (opcional) */
.fade-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 1s ease;
}

.fade-left.show {
    opacity: 1;
    transform: translateX(0);
}

.fade-right {
    opacity: 0;
    transform: translateX(40px);
    transition: all 1s ease;
}

.fade-right.show {
    opacity: 1;
    transform: translateX(0);
}




img {
    max-width: 100%;
    height: auto;
    display: block;
}

.menu-toggle {
    display: none;
}

@media (max-width: 768px) {

    .menu-toggle {
        display: flex;
        position: absolute;
        right: 80px; /* 🔥 IMPORTANTE: deja espacio para el botón */
        top: 20px;
        z-index: 3000;
    }

}

/* ===== FIX HAMBURGUESA SIN AFECTAR DISEÑO ===== */

/* Botón hamburguesa oculto en desktop */
.menu-toggle {
    display: none;
}

/* MOBILE */
@media (max-width: 768px) {

    /* Mostrar hamburguesa */
    .menu-toggle {
        display: flex;
        flex-direction: column;
        cursor: pointer;
        position: absolute;
        top: 20px;
        right: 20px;
        z-index: 9999;
    }

    .menu-toggle span {
        width: 25px;
        height: 3px;
        background: white;
        margin: 4px 0;
    }

    /* Ocultar menú normal */
    .nav-links {
        display: none !important;
    }

    /* Mostrar menú al activar */
    .nav-links.active {
        display: flex !important;
        flex-direction: column;
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: #1e3c72;
        padding: 2rem 0;
        gap: 1.5rem;
        align-items: center;
        z-index: 9998;
    }

}


@media (max-width: 768px) {

    .cta-button {
        position: absolute;
        right: 60px; /* 🔥 antes estaba muy pegado */
        top: 15px;
        font-size: 0.75rem;
        padding: 0.4rem 0.7rem;
    }

    .menu-toggle {
        right: 15px; /* hamburguesa más a la orilla */
    }

}


nav {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* ===== FIX NAV DESKTOP (NO TOCA DISEÑO) ===== */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 2rem;
    margin: 0 auto; /* 🔥 centra el menú */
}

/* ===== HAMBURGUESA ===== */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 4px 0;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {

    /* Mostrar hamburguesa */
    .menu-toggle {
        display: flex;
        position: absolute;
        right: 15px;
        top: 20px;
        z-index: 3000;
    }

    /* OCULTAR menú normal */
    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: #1e3c72;
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        gap: 1.5rem;

        transform: translateY(-120%);
        transition: 0.3s ease;
    }

    /* CUANDO SE ABRE */
    .nav-links.active {
        transform: translateY(0);
    }

    /* BOTÓN COTIZACIÓN */
    .cta-button {
        position: absolute;
        right: 60px; /* 🔥 evita que choque con hamburguesa */
        top: 15px;
        font-size: 0.8rem;
        padding: 0.5rem 0.8rem;
    }

    /* FIX WHATSAPP HERO */
    .hero .whatsapp-btn {
        margin-top: 1.5rem;
        display: inline-block;
    }

}

/* ===== RESTAURAR DISEÑO ORIGINAL HEADER ===== */

/* Color del logo */
.logo {
    color: #ffd700 !important;
}

/* Links del menú */


/* SOLO en laptop más grande */


/* Fondo del header (como lo tenías) */
header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%) !important;
}


/* ===== FIX WHATSAPP EN HERO (MÓVIL) ===== */
@media (max-width: 768px) {

    .hero-content {
        padding-top: 40px; /* 🔥 baja todo el contenido */
    }

    .hero .whatsapp-btn {
        display: inline-block;
        margin-top: 2rem;
        position: relative;
        z-index: 1;
    }

}


.logo {
    font-size: 1.8rem !important; /* tamaño normal en lap */
    font-weight: 700;
    color: #ffd700 !important;
}

@media (max-width: 768px) {
    .logo {
        font-size: 1.3rem !important; /* más chico solo en móvil */
    }
}


/* ===== MENÚ DESKTOP (como lo tenías) ===== */
@media (min-width: 769px) {

    .nav-links {
        list-style: none;
        margin: 0 auto;
    }

    .nav-links a {
        color: white !important;   /* 🔥 blanco normal */
        font-size: 1.1rem;
        font-weight: 500;
    }

    .nav-links a:hover {
        color: #ffd700 !important; /* 🔥 amarillo al pasar mouse */
    }

}

/* ===== BOTÓN COTIZACIÓN (se queda igual) ===== */
.cta-button {
    background: #ffd700 !important;
    color: #1e3c72 !important;
}

/* ===== RESTAURAR BOTÓN WHATSAPP ===== */
.whatsapp-btn {
    background: #25D366 !important;
    color: white !important;
    border-radius: 50px;
    padding: 1rem 2rem;
    display: inline-block;
    text-decoration: none;
}

/* ICONO WHATSAPP */
.whatsapp-btn i {
    margin-right: 8px;
}





/* ===== CENTRAR SECCIÓN CONTACTO EN DESKTOP ===== */
.contact-section .container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

/* Centrar el grid interno */
.contact-info {
    justify-content: center;
}

/* Asegurar que cada item esté centrado */
.contact-item {
    text-align: center;
}



.contact-info {
    margin: 0 auto;
    max-width: 1000px;
}


/* ===== FIX TELÉFONOS EN iPHONE ===== */
a[href^="tel"] {
    color: white !important; /* o el color que estés usando */
    text-decoration: none !important;
}

.contact-nombre {
    text-align: center;
    font-size: 1.2rem;
    color: #white;
    font-weight: 600;
    margin-top: -1.5rem;
    margin-bottom: 2rem;
}
