:root{
    --turquesa:#25C4C9;
    --turquesa-dark:#1CA8AD;
    --rosado:#F3D7D7;
    --blanco:#FFFFFF;
    --texto:#374151;
    --glass:rgba(255,255,255,0.15);
}

/* =======================
RESET
======================= */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Segoe UI', sans-serif;
}

html{
    scroll-behavior:smooth;
}

body{
    background:#f8fafc;
    color:var(--texto);
    overflow-x:hidden;
}

img{
    display:block;
    max-width:100%;
    background:transparent;
}

/* =======================
NAVBAR
======================= */

.navbar{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    padding:15px 40px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    background:transparent;
    z-index:9999;
    transition:all .4s ease;
}

.navbar.scrolled{
    background:#ffffff;
    box-shadow:0 4px 15px rgba(0,0,0,0.1);
}

.nav-logo{
    height:75px;
    width:auto;
    max-width:300px;
    object-fit:contain;
    transition:all .3s ease;
    filter:drop-shadow(0 3px 8px rgba(0,0,0,.25));
}

.nav-logo:hover{
    transform:scale(1.05);
}
.nav-links{
    display:flex;
    gap:25px;
}

.nav-links a{
    text-decoration:none;
    font-weight:600;
    color:#ffffff;
    transition:.3s;
}

.navbar.scrolled .nav-links a{
    color:#3CC6D4;
}

.nav-links a:hover{
    color:var(--turquesa);
}

.menu-btn{
    display:none;
    font-size:2rem;
    cursor:pointer;
    color:#ffffff;
}

/* =======================
HERO
======================= */

.hero{
    height:100vh;
    position:relative;
    overflow:hidden;
}

.bg-video{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    object-fit:cover;
}

.hero-overlay{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.45);
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    text-align:center;
    padding:20px;
}

.hero-logo{
    width:400px;
    margin-bottom:1px;
    background:transparent;
    animation:floatLogo 4s ease-in-out infinite;
}

.hero h1{
    font-size:4rem;
    color:#ffffff;
    margin-bottom:20px;
}

.hero p{
    font-family:'Montserrat', sans-serif;
    font-size:1.8rem;
    color:#ffffff;
    max-width:1500px;
    margin-bottom:30px;
}

.btn{
    background:var(--turquesa);
    color:#ffffff;
    padding:15px 35px;
    border-radius:50px;
    text-decoration:none;
    font-weight:bold;
    transition:.3s;
}

.btn:hover{
    transform:translateY(-4px);
    background:var(--turquesa-dark);
}

/* =======================
SECCIONES
======================= */

.section{
    padding:100px 8%;
}

.section h2{
    text-align:center;
    font-size:2.5rem;
    margin-bottom:50px;
    color:var(--turquesa-dark);
}

/* =======================
SERVICIOS
======================= */

.services-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:25px;
}

/* =======================
SERVICIOS FLIP CARD
======================= */

.services-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:25px;
}

.flip-card{
    background:transparent;
    height:280px;
    perspective:1000px;
}

.flip-card-inner{
    position:relative;
    width:100%;
    height:100%;
    transition:transform .8s;
    transform-style:preserve-3d;
    cursor:pointer;
}

.flip-card:hover .flip-card-inner{
    transform:rotateY(180deg);
}

.flip-card-front,
.flip-card-back{
    position:absolute;
    width:100%;
    height:100%;
    border-radius:20px;
    backface-visibility:hidden;
    box-shadow:0 8px 20px rgba(0,0,0,.08);
}

.flip-card-front{
    background:#29C7C9;
    color:white;

    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;

    padding:30px;
}

.service-icon{
    font-size:72px;
    margin-bottom:20px;
}

.flip-card-front h3{
    color:white;
    margin:0;
    text-align:center;
    font-size:1.4rem;
    min-height:70px;
    display:flex;
    align-items:center;
    justify-content:center;
}

.flip-card-back{
    background:white;
    color:#334155;
    transform:rotateY(180deg);
    padding:25px;

    display:flex;
    flex-direction:column;
    justify-content:center;
}

.flip-card-back h4{
    margin-bottom:15px;
    text-align:center;
}

.flip-card-back ul{
    list-style:none;
    padding:0;
    margin:0;
}

.flip-card-back li{
    margin-bottom:10px;
    font-size:14px;
}

@media(max-width:768px){

    .services-grid{
        grid-template-columns:1fr;
    }

}
.service-card:hover{
    transform:translateY(-10px);
}

.service-card h3{
    margin:15px 0;
}


/* =======================
PACIENTES
======================= */

.patientsSwiper{
    padding:20px 10px 60px;
}

.swiper-slide{
    display:flex;
    justify-content:center;
}

.patient-card{

    width:100%;
    max-width:350px;

    background:#fff;

    border-radius:25px;

    padding:30px;

    display:flex;
    flex-direction:column;
    align-items:center;

    text-align:center;

    box-shadow:0 8px 20px rgba(0,0,0,.08);

    transition:.3s;
}

.patient-card:hover{
    transform:translateY(-6px);
}

.patient-card img{

    width:140px;
    height:140px;

    border-radius:50%;
    object-fit:cover;

    border:5px solid var(--turquesa);

    margin-bottom:20px;
}

.patient-card h3{

    margin:0 0 10px;

    color:#23395d;
}

.patient-card .service{

    display:inline-block;

    background:var(--turquesa);

    color:white;

    padding:8px 15px;

    border-radius:20px;

    font-size:.85rem;

    margin-bottom:15px;
}

.patient-card .stars{

    color:#f4b400;

    font-size:1.2rem;

    margin-bottom:15px;
}

.patient-card p{

    color:#555;
    line-height:1.6;
    margin:0;
    font-style: italic;
    font-weight: 300;
}

/* PAGINACIÓN */

.swiper-pagination-bullet{

    background:var(--turquesa);
    opacity:.5;
}

.swiper-pagination-bullet-active{

    opacity:1;
}

/* FLECHAS OPCIONALES */

.swiper-button-next,
.swiper-button-prev{

    color:var(--turquesa);
}
/* =======================
GALERÍA
======================= */

.gallery{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:20px;
}

.gallery img{
    width:100%;
    height:280px;
    object-fit:cover;
    border-radius:15px;
    transition:.5s;
    cursor:pointer;
}

.gallery img:hover{
    transform:scale(1.05);
}

.lightbox{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,.9);

    display:flex;
    justify-content:center;
    align-items:center;

    z-index:9999;
    cursor:pointer;
}

.lightbox img{
    max-width:90%;
    max-height:90%;
    object-fit:contain;
    border-radius:15px;
}


/* =======================
VIDEOS
======================= */

.video-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:20px;
}

.video-grid video{
    width:100%;
    border-radius:15px;
}

/* =======================
CONTADOR
======================= */


.stats{
    padding:80px 8%;
    background:linear-gradient(
        135deg,
        #31C0CF,
        #1EAAB3
    );

    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:25px;
}

.stat-card{
    background:rgba(255,255,255,.15);
    border-radius:20px;
    padding:30px;
    text-align:center;
    color:white;
}

.stat-card h3{
    font-size:3rem;
    margin-bottom:10px;
}
/* =======================
COBERTURA
======================= */

.coverage-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
    gap:20px;
}

.coverage-grid div{
    background:var(--turquesa);
    color:#ffffff;
    padding:20px;
    text-align:center;
    border-radius:15px;
    font-weight:bold;
}

/* =======================
CONTACTO
======================= */

#contacto{
    text-align:center;
}

/* =======================
FOOTER
======================= */

footer{
    background:#111827;
    color:#ffffff;
    text-align:center;
    padding:60px 20px;
}

/* =======================
WHATSAPP
======================= */

.whatsapp-float{
    position:fixed;
    right:25px;
    bottom:25px;
    width:70px;
    height:70px;
    background:#25C4C9;
    color:#ffffff;
    border-radius:50%;
    display:flex;
    justify-content:center;
    align-items:center;
    font-size:2rem;
    text-decoration:none;
    z-index:9999;
    box-shadow:0 8px 20px rgba(0,0,0,0.25);
}

.whatsapp-msg{
    position:fixed;
    right:110px;
    bottom:40px;
    background:#ffffff;
    padding:12px 18px;
    border-radius:15px;
    box-shadow:0 4px 12px rgba(0,0,0,0.15);
    max-width:250px;
    z-index:9999;
}

/* =======================
ANIMACIONES
======================= */

@keyframes floatLogo{
    0%{
        transform:translateY(0);
    }

    50%{
        transform:translateY(-15px);
    }

    100%{
        transform:translateY(0);
    }
}

/* =======================
RESPONSIVE
======================= */

@media (max-width:768px){

    .hero h1{
        font-size:2.3rem;
    }

    .nav-links{
        position:fixed;
        top:90px;
        right:-100%;
        width:28%;
        max-width:220px;
        height:30vh;
        background:rgba(255,255,255,0.85);
        flex-direction:column;
        padding:30px;
        transition:.4s;
        overflow:hidden;
    }
    
    .nav-logo{
        height:55px;
        max-width:220px;
    }


    .nav-links.active{
        right:0;
    }

    .nav-links a{
        color:#333333;
    }

    .menu-btn{
        display:block;
        color:#FFFFFF;
        background:transparent;
        border:none;
    }
    .navbar.scrolled .menu-btn{
    color:#1CA8AD;
}
}

/* Click en móviles */

.flip-card-inner.active{
    transform:rotateY(180deg);
}

/* ==========================
REDES SOCIALES
========================== */

.social-banner{
max-width:850px;
margin:60px auto;
padding:25px;
background:#25C4C9;
border-radius:30px;
text-align:center;
}

.social-banner h2{
color:#fff;
margin-bottom:30px;
}

.social-grid{
display:flex;
flex-wrap:wrap;
justify-content:center;
gap:20px;
}

.social-card{
background:#fff;
color:#25C4C9;
text-decoration:none;
padding:18px 30px;
border-radius:50px;
font-weight:700;
display:flex;
align-items:center;
gap:10px;
transition:.3s;
}

.social-card:hover{
transform:translateY(-5px);
}

/* ==========================
FOOTER
========================== */

.footer{
background:#111;
color:#fff;
padding:70px 8% 30px;
}

.footer-container{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
gap:40px;
}

.footer-logo{
height:100px;
margin-bottom:20px;
}

.footer-col h3{
color:#25C4C9;
margin-bottom:20px;
}

.footer-col a{
display:block;
color:#fff;
text-decoration:none;
margin-bottom:10px;
}

.footer-col a:hover

.footer-badge,
.footer-message{
background:#25C4C9;
padding:15px;
border-radius:15px;
margin-top:15px;
}

.footer-socials{
display:flex;
gap:15px;
margin-bottom:20px;
}

.footer-socials a{
width:50px;
height:50px;
background:#25C4C9;
border-radius:50%;
display:flex;
justify-content:center;
align-items:center;
color:#fff;
font-size:1.3rem;
}

.footer-copy{
text-align:center;
margin-top:40px;
padding-top:20px;
border-top:1px solid rgba(255,255,255,.15);
}


/* =======================
LIGHTBOX
======================= */

.lightbox{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,.9);
    display:flex;
    justify-content:center;
    align-items:center;
    z-index:99999;
}

.lightbox img{
    max-width:90%;
    max-height:90%;
    border-radius:15px;
}

.lightbox-close{
    position:absolute;
    top:15px;
    right:25px;
    color:#ffffff;
    font-size:45px;
    font-weight:bold;
    cursor:pointer;
    line-height:1;
    user-select:none;
    -webkit-user-select:none;
}