:root{
    --primary:#0062B5;
    --primary-dark:#008CCF;
    --primary-light:#5FD4FF;
    --white:#FFFFFF;
    --bg:#F4F8FB;
    --bg-light:#FFFFFF;
    --section:#EEF5FA;
    --text:#243746;
    --text-light:#5C7182;
    --border:#93D33F;
    --shadow:0 10px 30px rgba(0,0,0,.08);
    --radius:20px;
    --transition:.3s ease;
}

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

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Poppins',sans-serif;
    background:var(--bg);
    color:var(--text);
    overflow-x:hidden;
}

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

section{
    padding:160px 8%;
}

/* HEADER */
.header{
    position:fixed;
    top:0;
    left:0;
    right:0;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:1px 5%;
    background:rgba(255,255,255,.92);
    backdrop-filter:blur(12px);
    border-bottom:2px solid var(--border);
    z-index:1000;
}

.logo img{
    width:220px;
    transition:var(--transition);
}

.logo img:hover{
    transform:scale(1.05);
}

.navbar{
    display:flex;
    gap:30px;
}

.navbar a{
    text-decoration:none;
    color:var(--text);
    font-weight:500;
    position:relative;
    transition:var(--transition);
}

.navbar a:hover,
.navbar a.active{
    color:var(--primary);
}

.navbar a::after{
    content:"";
    position:absolute;
    left:0;
    bottom:-5px;
    width:0;
    height:2px;
    background:var(--primary);
    transition:var(--transition);
}

/* Al pasar el mouse o al tener la clase active, la línea se expande al 100% */
.navbar a:hover::after,
.navbar a.active::after{
    width:100%;
}

.menu-btn{
    display:none;
    font-size:1.6rem;
    cursor:pointer;
}

/* ========== HERO ========== */
.hero{
    min-height:80vh;
    background: linear-gradient(rgba(255,255,255,.15),rgba(255,255,255,.15)), url('img/T&E AQUA1.webp');
    background-size:cover;
    background-position:center top;
    background-attachment: fixed;
    display:flex;
    align-items:center;
    position:relative;
}

.overlay{
    position:absolute;
    inset:0;
    background:linear-gradient(to right,rgba(255,255,255,.65),rgba(0,140,207,.05));
}

.hero-content{
    position:relative;
    z-index:2;
    max-width:780px;
}

.hero h1{
    font-size:50px;
    color:var(--primary);
    line-height:1.1;
    margin-bottom:30px;
}

.hero p{
    font-size:20px;
    color:#102535;
    line-height:1.5;
    font-weight: 600;
}

/* BUTTONS */
.btn{
    display:inline-flex;
    justify-content:center;
    align-items:center;
    padding:10px 40px;
    border-radius:50px;
    text-decoration:none;
    font-weight:500;
    transition:var(--transition);
}

.btn-primary{
    background:linear-gradient(135deg,var(--primary),var(--primary-light));
    color:#fff;
}

.btn-primary:hover, .btn-secondary:hover{
    transform:translateY(-4px);
}

.btn-secondary{
    border:2px solid var(--primary);
    color:var(--primary);
    background:#fff;
}

.hero-buttons{
    margin-top:50px;
    display:flex;
    gap:15px;
}


/* ================= ABOUT ================= */
.about{
    display:flex;
    align-items:stretch;
    min-height:650px;
    margin:0;
    padding:0;
    background: linear-gradient(90deg, #B5C6E0, #EBF4F5);
}

.about-image{
    flex:0 0 50%;
    height:650px;
    overflow:hidden;
    position:relative;
    clip-path:polygon(0 0, 90% 0, 100% 100%, 0 100%);
}

.about-slider{
    width:100%;
    height:100%;
}

.slides{
    display:flex;
    width:300%;
    height:100%;
    animation:slideAbout 15s infinite ease-in-out;
}

.slides img{
    width:33.333333%;
    height:100%;
    object-fit:cover;
    flex-shrink:0;
}

.about-image::after{
    content:"";
    position:absolute;
    inset:0;
    background: linear-gradient(to right, rgba(0,0,0,.05), rgba(0,0,0,.20));
    pointer-events:none;
}

.about-content{
    flex:0 0 50%;
    display:flex;
    flex-direction:column;
    justify-content:center;
    padding-left:40px;
    padding-right:50px;
}

.about h2{
    font-size: 42px;
    color: #0062B5;
    line-height: 1.1;
    margin-bottom:25px;
}

.about p{
    font-size:1rem;
    line-height:1.8;
    color:#102540;
}

@keyframes slideAbout{
    0%,25%{ transform:translateX(0); }
    33%,58%{ transform:translateX(-33.333333%); }
    66%,91%{ transform:translateX(-66.666666%); }
    100%{ transform:translateX(0); }
}

/* ================= SERVICES ================= */

.services {
    background: linear-gradient(135deg, #f0f7ff 0%, #e0f2fe 50%, #e0f9ff 100%);
    position: relative;
    overflow: hidden;
    padding: 100px 8%;
}

.services::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0,174,239,0.15) 0%, rgba(255,255,255,0) 70%);
    top: -50px;
    right: -50px;
    z-index: 1;
}

/* Contenedor Grid (Estructura firme de 3 columnas de nosotros.css) */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto 0;
    position: relative;
    z-index: 2;
    align-items: stretch;
    padding: 0 20px;
}

/* Tarjeta Base (Estilo visual premium de style.css) */
.service-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px); 
    -webkit-backdrop-filter: blur(12px);
    padding: 45px 30px;
    border-radius: 24px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.6); 
    box-shadow: 0 10px 30px rgba(0, 98, 181, 0.03);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    transition: 
        transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
        background-color 0.5s ease,
        border-color 0.5s ease,
        box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Efecto Hover de la Tarjeta (style.css optimizado para no romper el grid) */
.service-card:hover {
    transform: translateY(-10px) scale(1.02); 
    background: rgba(255, 255, 255, 0.92); 
    border-color: #0062B5; 
    box-shadow: 
        0 20px 40px rgba(0, 62, 117, 0.1), 
        0 12px 24px rgba(0, 174, 239, 0.3);
}

/* Título de la Sección */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 32px;
    color: #0062B5;
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1.1;
    margin: 0;
}

/* Tipografía Interna: Títulos (style.css) */
.service-card h3 {
    font-size: 21px;
    font-weight: 700;
    color: #0062B5;
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.service-card:hover h3 {
    color: #00AEEF;
}

/* Tipografía Interna: Párrafos (style.css) */
.service-card p {
    color: #526475;
    font-size: 15px;
    line-height: 1.8;
    margin: 0;
    transition: color 0.3s ease;
}

.service-card:hover p {
    color: #1e293b;
}

/* Iconos e Imágenes (Efecto animado y rotación de style.css) */
.service-card i, 
.service-card img,
.service-card .icon-container {
    display: inline-block;
    margin-bottom: 25px;
    color: #0062B5;
    font-size: 3.5rem;
    line-height: 1;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.4s ease;
}

/* Hover de Iconos (Efecto dinámico de rotación de style.css) */
.service-card:hover i,
.service-card:hover img,
.service-card:hover .icon-container {
    transform: scale(1.18) rotate(8deg);
    color: #00AEEF; 
}

/* --- Adaptación móvil y tablets (Estructura de nosotros.css) --- */
@media (max-width: 991px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    .service-card {
        padding: 35px 20px;
    }
}

/* ================= PROJECTS ================= */
.projects{
    padding: 90px 0;
    background: linear-gradient(90deg, #CAD0FF, #E3E3E3);
}

.projectSwiper{
    max-width:1100px;
    margin:auto;
    border-radius:24px;
    overflow:hidden;
}

.project-card{
    position:relative;
    height:500px;
    overflow:hidden;
    border-radius:24px;
}

.project-card img{
    width:100%;
    height:100%;
    object-fit:cover;
    transition: transform 1.4s ease, filter 1.4s ease;
}

.projectSwiper .swiper-slide-active img{
    transform:scale(1);
    filter:blur(0px);
}

.projectSwiper .swiper-slide-prev img,
.projectSwiper .swiper-slide-next img{
    transform:scale(1.15);
    filter:blur(8px);
}

.project-info{
    position:absolute;
    left:0;
    right:0;
    bottom:0;
    padding:30px;
    background:linear-gradient(to top, rgba(0,0,0,.88), rgba(0,0,0,.45), transparent);
    color:#fff;
}

.project-info h3{
    font-size:1.8rem;
    margin-bottom:10px;
}

.project-info p{
    margin:0;
    line-height:1.6;
}

.swiper-pagination-bullet-active{
    background:#00AEEF !important;
}

/* ================= NUESTROS CLIENTES ================= */
.brands-section {
    padding: 60px 8%;
    background: #ffffff;
}

.brands-section .section-title h2 {
    font-size: 28px;
    color: #0062B5;
    text-align: center;
    font-weight: 700;
    margin-bottom: 40px;
}

.brands-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    padding: 0 40px;
}

.brands-swiper {
    padding: 20px 0 40px;
    
}

.brands-swiper .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 90px;
}

.brands-swiper .swiper-slide img {
    max-width: 85%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(0%);
    transition: transform 0.3s ease;
}
.brands-swiper .swiper-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%; /* Asegura que ocupe todo el ancho */
}
.brands-swiper .swiper-slide img:hover {
    transform: scale(1.05);
}

/* Personalización flechas e indicadores Swiper */
.brands-section .swiper-button-next,
.brands-section .swiper-button-prev {
    color: #0062B5;
    transform: scale(0.6);
}

.brands-section .swiper-pagination-bullet-active {
    background: #0062B5;
}

/* ================= CONTACT ================= */
.contact{
    background: linear-gradient(rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.4)), 
                url('img/agua1.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; 
    padding: 90px 0;
    overflow: hidden;
}


.contact-container{
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info{
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.info-box{
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.info-box i{
    font-size: 2rem;
    color: var(--primary);
    min-width: 40px;
}

.info-box h4{
    margin: 0 0 8px;
    color: #0062B5;
    font-size: 1.1rem;
    font-weight: 600;
}

.info-box p{
    margin: 0;
    color: #243746;
    line-height: 1.6;
}

.contact-form{
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input,
.contact-form textarea{
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    transition: border-color .3s ease, box-shadow .3s ease;
}

.contact-form textarea{
    height: 180px;
    resize: none;
}

.contact-form input:focus,
.contact-form textarea:focus{
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 98, 181, 0.1);
}

.contact-btn{
    display:inline-flex;
    justify-content:center;
    align-items:center;
    width:200px;
    height:50px;
    border:none;
    border-radius:50px;
    font-weight:500;
    font-size:16px;
    font-family:'Poppins', sans-serif;
    cursor:pointer;
    background:linear-gradient(135deg, var(--primary), var(--primary-light));
    color:#fff;
    transition:var(--transition);
}

.contact-btn:hover{
    transform:translateY(-4px);
}

/* ================= FOOTER ================= */
.footer{
    background:#0a5ca8;
    color:#fff;
    padding:60px 6% 20px;
}

.footer-container{
    display:grid;
    grid-template-columns:2fr 1fr 1.2fr;
    gap:60px;
}

.footer-logo img{
    height:90px;
    width:auto;
    object-fit:contain;
}

.footer-text{
    line-height:1.5;
    text-align:justify;
    max-width:380px;
}

.footer-col h3{
    font-size:1.2rem;
    margin-bottom:20px;
    font-weight:600;
}

.footer-col ul{
    list-style:none;
}

.footer-col ul li{
    margin-bottom:12px;
}

.footer-col ul li a{
    color:#fff;
    text-decoration:none;
    transition:.3s;
}

.footer-col ul li a:hover{
    padding-left:5px;
    color: var(--primary-light);
}

.social-links{
    display:flex;
    gap:12px;
    margin-bottom:25px;
}

.social-links a{
    width:42px;
    height:42px;
    background:#ffffff;
    color:#0a5ca8;
    border-radius:4px;
    display:flex;
    align-items:center;
    justify-content:center;
    text-decoration:none;
    transition:.3s;
}

.social-links a:hover{
    transform:translateY(-3px);
    background: var(--primary-light);
    color: #fff;
}

.footer-contact p{
    display:flex;
    align-items:flex-start;
    gap:10px;
    margin-bottom:15px;
    line-height:1.6;
}

.footer-country{
    padding-left:24px;
    margin-top:-10px;
}

.footer-bottom{
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,.2);
    text-align: center;
    font-size: 0.9rem;
}

/* ================= BOTÓN WHATSAPP ================= */

.whatsapp-btn-2026 {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    z-index: 9999;
    
    background: #25D366; 
    border: 1px solid #25D366;
    border-radius: 20px; 
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.15);
    
    transition: 
        transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
        background-color 0.4s ease, 
        box-shadow 0.4s ease, 
        border-color 0.4s ease;
}


.whatsapp-btn-2026 i {
    color: #ffffff; 
    font-size: 32px;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.whatsapp-btn-2026:hover {
    transform: translateY(-6px) scale(1.08); 
    background: #20ba5a; 
    border-color: #20ba5a;
    box-shadow: 
        0 15px 30px rgba(37, 211, 102, 0.3),
        0 0 20px rgba(37, 211, 102, 0.4);
}

.whatsapp-btn-2026:hover i {
    transform: scale(1.1) rotate(8deg);
}

.whatsapp-tooltip {
    position: absolute;
    right: 75px;
    background: #ffffff; /* Sólido puro */
    color: #0062B5; 
    font-weight: 600;
    font-size: 13px;
    padding: 8px 16px;
    border-radius: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    transform: translateX(15px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.whatsapp-btn-2026:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* --- RESPONSIVE / ADAPTACIÓN MÓVIL --- */
@media (max-width: 768px) {
    .whatsapp-btn-2026 {
        bottom: 20px;
        right: 20px;
        width: 54px;
        height: 54px;
    }
    .whatsapp-btn-2026 i {
        font-size: 28px;
    }
    .whatsapp-tooltip {
        display: none;
    }
}

/* ================= RESPONSIVE ================= */
@media(max-width:991px){
    section{ padding: 90px 5%; }
    .header{ padding: 10px 5%; }
    .menu-btn{ display:block; }
    .navbar{
        position:absolute;
        top:100%;
        right:-100%;
        width:280px;
        flex-direction:column;
        background:#fff;
        padding:30px;
        box-shadow:var(--shadow);
        transition: var(--transition);
    }
    .navbar.active{ right:0; }
    .about{ flex-direction:column; }
    .about-image{ flex:none; width:100%; height:450px; clip-path:none; }
    .about-content{ padding:50px 30px; text-align:center; }
    .services-grid{ grid-template-columns: repeat(2, 1fr); }
    .contact-container{ grid-template-columns:1fr; gap: 40px; }
    .footer-container{ grid-template-columns:1fr 1fr; gap:40px; }
}

@media(max-width:768px) {
    .hero h1{ font-size:32px; }
    .hero-buttons{ flex-direction:column; }
    .services-grid{ grid-template-columns:1fr; }
    .footer-container{ grid-template-columns:1fr; text-align:center; }
    .footer-logo, .social-links, .footer-contact p{ justify-content:center; }
    .footer-text{ max-width:100%; }
    .footer-country{ padding-left:0; }
}
