/* --- VARIABLES Y RESET --- */
:root {
    --brand-color: #0F4C81; 
    --brand-hover: #0A365D; 
    --brand-light: #3B82F6; 
    --text-dark: #111827;
    --text-light: #4B5563;
    --bg-light: #F9FAFB;
    --white: #FFFFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--text-dark);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- COMPONENTES GLOBALES --- */
.text-brand { color: var(--brand-color); }
.text-accent { color: var(--white); } 
.bg-light { background-color: var(--bg-light); }
.mb-20 { margin-bottom: 20px; }
.mt-4 { margin-top: 15px; }
.text-center { text-align: center; color: var(--text-light); max-width: 700px; margin: 0 auto; }

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 16px;
}

.btn-primary { background-color: var(--brand-color); color: var(--white); box-shadow: 0 4px 12px rgba(15, 76, 129, 0.3); }
.btn-primary:hover { background-color: var(--brand-hover); }

.btn-outline-white { background-color: transparent; color: var(--white); border: 2px solid var(--white); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.btn-outline-white:hover { background-color: var(--white); color: var(--brand-color); }

.w-full { width: 100%; }

/* --- NAVBAR --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 1000;
    padding: 10px 0;
}

.nav-content { display: flex; justify-content: space-between; align-items: center; }
.logo-img { height: 50px; width: auto; display: block; }

.nav-links { list-style: none; display: flex; align-items: center; gap: 25px; }
.nav-links a:not(.btn) { text-decoration: none; color: var(--text-light); font-weight: 600; transition: color 0.3s; }
.nav-links a:not(.btn):hover { color: var(--brand-color); }

.mobile-menu-btn {
    display: none; flex-direction: column; gap: 6px; background: none; border: none; cursor: pointer; z-index: 1001;
}
.mobile-menu-btn span { width: 30px; height: 3px; background-color: var(--brand-color); border-radius: 2px; transition: 0.3s; }

/* --- HERO --- */
.hero { 
    position: relative;
    padding: 320px 0 280px; 
    background-image: url('images/floor12.jpg'); 
    background-size: cover; 
    background-position: center; 
    background-repeat: no-repeat;
}

.hero-content { 
    position: relative; 
    z-index: 2; 
    display: flex; 
    align-items: center; 
}

.hero-text { flex: 1; max-width: 750px; }
.hero-text h1 { 
    font-size: 56px; 
    line-height: 1.1; 
    margin-bottom: 25px; 
    font-weight: 800; 
    color: var(--white); 
    text-shadow: 2px 2px 12px rgba(0, 0, 0, 0.75), 0 0 4px rgba(0, 0, 0, 0.5);
}
.hero-text p { 
    font-size: 20px; 
    color: var(--white); 
    margin-bottom: 40px; 
    font-weight: 600;
    text-shadow: 1px 1px 8px rgba(0, 0, 0, 0.8);
}

/* --- CLIENTES --- */
.clients-bar { background-color: #F3F4F6; padding: 40px 0; border-top: 1px solid #E5E7EB; border-bottom: 1px solid #E5E7EB; text-align: center; }
.bar-title { font-size: 13px; font-weight: 700; letter-spacing: 1.5px; color: #9CA3AF; margin-bottom: 30px; }
.clients-grid { display: flex; justify-content: space-around; align-items: flex-start; flex-wrap: wrap; gap: 30px; }
.client-item { display: flex; flex-direction: column; align-items: center; gap: 5px; opacity: 0.8; transition: 0.3s; }
.client-item:hover { opacity: 1; transform: translateY(-2px); }
.client-name { font-size: 18px; font-weight: 800; color: #4B5563; text-transform: uppercase; }
.client-detail { font-size: 14px; font-weight: 600; color: var(--brand-color); }

/* --- NUEVA SECCIÓN: NOSOTROS --- */
.about { padding: 100px 0; background-color: var(--white); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-text h2 { font-size: 38px; font-weight: 800; margin-bottom: 20px; line-height: 1.2; }
.about-text p { font-size: 17px; color: var(--text-light); margin-bottom: 15px; }
.rounded-img { width: 100%; height: auto; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }

.stats-flex { display: flex; gap: 40px; margin-top: 35px; }
.stat-item h3 { font-size: 46px; color: var(--brand-color); font-weight: 800; line-height: 1; margin-bottom: 5px; }
.stat-item p { font-size: 15px; font-weight: 600; color: var(--text-dark); text-transform: uppercase; letter-spacing: 0.5px; }

/* --- SERVICIOS --- */
.services { padding: 100px 0; }
.section-title { text-align: center; margin-bottom: 60px; }
.section-title h2 { font-size: 36px; margin-bottom: 12px; font-weight: 800; }
.divider { height: 4px; width: 70px; background-color: var(--brand-color); margin: 0 auto; border-radius: 2px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.card { background: var(--white); padding: 35px; border-radius: 8px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); border: 1px solid #E5E7EB; transition: 0.3s; }
.card:hover { transform: translateY(-5px); box-shadow: 0 15px 25px rgba(0,0,0,0.08); }

/* Estilos para los números grandes (Minimalismo estructural) */
.card .service-number { 
    display: block; 
    font-size: 52px; 
    font-weight: 800; 
    color: #E5E7EB; /* Gris muy claro por defecto */
    margin-bottom: 15px; 
    line-height: 1; 
    transition: 0.3s ease; 
}
/* Al pasar el mouse, el número toma el color azul de la marca */
.card:hover .service-number { color: var(--brand-color); }

.card h3 { margin-bottom: 10px; font-size: 20px; }

/* --- PROYECTOS (CARRUSEL SWIPER) --- */
.projects { padding: 100px 0; }
.swiper { width: 100%; padding-top: 20px; padding-bottom: 60px; }
.swiper-slide {
    background-position: center; background-size: cover; border-radius: 8px; overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); aspect-ratio: 4/3; 
}
.swiper-slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.swiper-button-next, .swiper-button-prev { color: var(--brand-color) !important; }
.swiper-pagination-bullet-active { background-color: var(--brand-color) !important; }

/* --- FOOTER / CONTACTO --- */
.footer { background-color: #1F2937; color: var(--white); padding: 100px 0; border-top: 8px solid var(--brand-color); }
.footer-content { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.logo-img-footer { height: 45px; width: auto; margin-bottom: 25px; }
.footer-info p { color: #E5E7EB; max-width: 400px; margin-bottom: 15px; }
.contact-details { display: flex; flex-direction: column; gap: 12px; }
.contact-item { font-size: 15px; color: var(--white) !important; display: flex; align-items: center; gap: 10px; }

/* Etiquetas simples en el footer ("Sede:", "Teléfono:") */
.footer-label { font-weight: 800; color: var(--brand-light); text-transform: uppercase; font-size: 13px; letter-spacing: 0.5px; }

.footer-form h3 { font-size: 24px; margin-bottom: 25px; }
.footer-form form { display: flex; flex-direction: column; gap: 15px; }
.footer-form input, .footer-form textarea { padding: 15px; border-radius: 8px; border: none; background-color: #374151; color: var(--white); outline: none; font-size: 15px; }
.footer-form input:focus, .footer-form textarea:focus { box-shadow: 0 0 0 2px var(--brand-color); }

/* --- BOTÓN WHATSAPP FLOTANTE --- */
.whatsapp-float {
    position: fixed; width: 60px; height: 60px; bottom: 30px; right: 30px;
    background-color: #25d366; color: #FFF; border-radius: 50px; text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2); z-index: 1000; display: flex;
    align-items: center; justify-content: center; transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 14px rgba(0,0,0,0.3); }

/* --- RESPONSIVE BASICO --- */
@media (max-width: 992px) {
    .hero-text h1 { font-size: 42px; }
    .about-grid { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .about-text .divider { margin: 0 auto 20px; }
    .stats-flex { justify-content: center; flex-wrap: wrap; }
}

@media (max-width: 768px) {
    .navbar { padding: 5px 0; }
    .logo-img { height: 40px; }
    .mobile-menu-btn { display: flex; }
    .nav-links {
        position: fixed; top: 0; right: -100%; width: 80%; height: 100vh;
        background-color: var(--white); flex-direction: column; justify-content: center;
        transition: 0.4s; box-shadow: -10px 0 20px rgba(0,0,0,0.1);
    }
    .nav-links.active { right: 0; }
    .hero { padding: 220px 0 160px; text-align: center; }
    .hero-content { justify-content: center; }
    .hero-buttons { justify-content: center; flex-direction: column; }
    .clients-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
    .footer-content { grid-template-columns: 1fr; gap: 50px; }
    .whatsapp-float { width: 55px; height: 55px; bottom: 20px; right: 20px; }
}