*{
margin:0;
padding:0;
box-sizing:border-box;
font-family:'Poppins',sans-serif;
scroll-behavior:smooth;
}

body{
background:#f8fafc;
color:#1e293b;
overflow-x:hidden;
}

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

section{
padding:90px 8%;
}

h2{
font-size:2.5rem;
margin-bottom:40px;
text-align:center;
}

/* HEADER */

header{
position:fixed;
top:0;
left:0;
width:100%;
z-index:1000;
transition:all .3s ease;

background:rgba(20,20,20,.35);
backdrop-filter:blur(12px);
-webkit-backdrop-filter:blur(12px);

border-bottom:1px solid rgba(255,255,255,.15);
}

header.scrolled{
background:rgba(255,255,255,.88);
backdrop-filter:blur(14px);
-webkit-backdrop-filter:blur(14px);

box-shadow:0 5px 20px rgba(0,0,0,.08);
}

.nav{
display:flex;
justify-content:space-between;
align-items:center;
padding:20px 8%;
}

.logo{
font-size:1.5rem;
font-weight:700;
color:white;
transition:.3s;
}

header.scrolled .logo{
color:#2563eb;
}

nav{
display:flex;
gap:25px;
}

nav a{
text-decoration:none;
color:white;
font-weight:500;
transition:.3s;
}

nav a:hover{
opacity:.75;
}

header.scrolled nav a{
color:#1e293b;
}

.btn-nav{
background:#2563eb;
color:white;
padding:12px 20px;
border-radius:12px;
text-decoration:none;
font-weight:600;
transition:.3s;
}

.btn-nav:hover{
transform:translateY(-2px);
box-shadow:0 8px 20px rgba(37,99,235,.35);
}

/* HERO */

.hero{
height:100vh;
background:url('images/hero.jpg') center center/cover;
position:relative;
display:flex;
align-items:center;
justify-content:center;
text-align:center;
}

.overlay{
position:absolute;
inset:0;
background:rgba(0,0,0,.55);
}

.hero-content{
position:relative;
z-index:2;
max-width:800px;
padding:20px;
color:white;
}

.badge{
display:inline-block;
padding:10px 18px;
border-radius:999px;
background:rgba(255,255,255,.15);
backdrop-filter:blur(8px);
margin-bottom:20px;
}

.hero h1{
font-size:4rem;
line-height:1.1;
margin-bottom:20px;
}

.hero p{
font-size:1.2rem;
margin-bottom:30px;
}

.hero-buttons{
display:flex;
justify-content:center;
gap:15px;
flex-wrap:wrap;
}

.btn-primary{
background:#2563eb;
color:white;
padding:15px 30px;
border-radius:12px;
text-decoration:none;
font-weight:600;
transition:.3s;
}

.btn-primary:hover{
transform:translateY(-3px);
}

.btn-secondary{
background:white;
color:#1e293b;
padding:15px 30px;
border-radius:12px;
text-decoration:none;
font-weight:600;
transition:.3s;
}

.btn-secondary:hover{
transform:translateY(-3px);
}

/* STATS */

.stats{
display:grid;
grid-template-columns:repeat(3,1fr);
gap:20px;
padding:60px 8%;
background:white;
}

.stat{
text-align:center;
}

.stat h2{
color:#2563eb;
margin-bottom:10px;
}

/* SERVICIOS */

.services-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
gap:25px;
}

.service-card{
background:white;
padding:35px;
border-radius:20px;
text-align:center;
box-shadow:0 10px 25px rgba(0,0,0,.06);
transition:.3s;
}

.service-card:hover{
transform:translateY(-10px);
}

.service-card i{
font-size:3rem;
color:#2563eb;
margin-bottom:15px;
}

/* DOCTORA */

.doctor{
background:white;
}

.doctor-content{
max-width:1200px;
margin:auto;
display:grid;
grid-template-columns:1fr 1fr;
gap:50px;
align-items:center;
}

.doctor img{
border-radius:25px;
box-shadow:0 15px 30px rgba(0,0,0,.1);
}

.doctor h2{
text-align:left;
margin-bottom:20px;
}

.doctor p{
font-size:1.1rem;
line-height:1.8;
}

/* GALERIA */

.gallery-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
gap:20px;
}

.gallery-grid img{
height:300px;
width:100%;
object-fit:cover;
border-radius:20px;
transition:.3s;
}

.gallery-grid img:hover{
transform:scale(1.03);
}

/* CONTACTO */

.contact{
text-align:center;
background:#2563eb;
color:white;
}

.contact p{
font-size:1.2rem;
margin-bottom:30px;
}

.contact .btn-primary{
background:white;
color:#2563eb;
}

/* WHATSAPP */

.whatsapp{
position:fixed;
right:25px;
bottom:25px;
width:65px;
height:65px;
border-radius:50%;
background:#25D366;
display:flex;
align-items:center;
justify-content:center;
font-size:32px;
color:white;
text-decoration:none;
box-shadow:0 10px 20px rgba(0,0,0,.2);
z-index:999;
}

/* BOTON VOLVER ARRIBA */

#backToTop{
position:fixed;
right:25px;
bottom:105px;

width:65px;
height:65px;

border-radius:50%;

background:#2563eb;

display:flex;
align-items:center;
justify-content:center;

font-size:32px;
color:white;

text-decoration:none;

box-shadow:0 10px 20px rgba(0,0,0,.2);

z-index:999;

opacity:1;
visibility:visible;

transition:all .3s ease;
}

#backToTop:hover{
transform:translateY(-5px);
background:#1d4ed8;
}




/* RESPONSIVE */

@media(max-width:900px){

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

.stats{
grid-template-columns:1fr;
}

.doctor-content{
grid-template-columns:1fr;
}

nav{
display:none;
}

.btn-nav{
display:none;
}

}