:root{
  --bg:#f4f7fb;
  --bg-alt:#eef4ff;
  --surface:rgba(255,255,255,.82);
  --text:#1d2939;
  --muted:#667085;
  --primary:#2356a5;
  --primary-dark:#173a73;
  --accent:#ff6b5a;
  --accent-2:#25d366;
  --border:rgba(35,86,165,.12);
  --shadow:0 18px 45px rgba(17, 24, 39, .10);
  --radius:24px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:'Poppins',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height:1.65;
}
img{max-width:100%;display:block}
a{text-decoration:none;color:inherit}
button,input,textarea{font:inherit}

.container{
  width:min(1180px, calc(100% - 32px));
  margin:0 auto;
}

.hidden{display:none !important}

.navbar{
  position:fixed;
  inset:0 0 auto 0;
  z-index:1000;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:12px 18px;
  background:rgba(255,255,255,.86);
  backdrop-filter:blur(16px);
  border-bottom:1px solid rgba(255,255,255,.6);
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
}
.brand-logo{
  width:40px;
  height:40px;
  border-radius:12px;
  object-fit:cover;
  box-shadow:0 6px 15px rgba(0,0,0,.15);
  flex:0 0 auto;
}
.brand-text{
  font-weight:800;
  color:var(--primary-dark);
  letter-spacing:.2px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  font-size:1rem;
}
.nav-links{
  display:flex;
  align-items:center;
  gap:18px;
}
.nav-links a{
  font-size:14px;
  color:var(--muted);
  font-weight:600;
  transition:.2s ease;
}
.nav-links a:hover{color:var(--primary)}

.lang-switch{
  display:flex;
  align-items:center;
  gap:8px;
}
.lang-btn,
.menu-toggle{
  border:0;
  cursor:pointer;
}
.lang-btn{
  background:#edf2ff;
  color:var(--primary);
  padding:9px 12px;
  border-radius:999px;
  font-weight:700;
  font-size:13px;
  transition:.2s ease;
}
.lang-btn.active,
.lang-btn:hover{background:var(--primary);color:#fff}
.menu-toggle{
  display:none;
  width:42px;height:42px;
  border-radius:14px;
  background:#edf2ff;
  color:var(--primary);
}

.hero{
  position:relative;
  min-height:100svh;
  display:grid;
  place-items:center;
  padding:110px 20px 40px;
  overflow:hidden;
}
.hero-bg,
.hero-overlay{
  position:absolute;
  inset:0;
}
.hero-bg{
  background-size:cover;
  background-position:center;
  opacity:0;
  transform:scale(1.05);
  transition:opacity 1.2s ease;
}
.hero-bg.active{opacity:1}
.hero-overlay{
  background:
    linear-gradient(180deg, rgba(5,17,36,.56), rgba(5,17,36,.48)),
    radial-gradient(circle at top, rgba(35,86,165,.14), transparent 42%);
}
.hero-content{
  position:relative;
  z-index:1;
  text-align:center;
  color:#fff;
  width:min(920px,100%);
}
.hero-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 16px;
  border-radius:999px;
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.2);
  backdrop-filter:blur(10px);
  font-size:13px;
  font-weight:600;
  letter-spacing:.2px;
}
.hero-icon{
  width:96px;
  height:96px;
  object-fit:cover;
  border-radius:28px;
  margin:22px auto 18px;
  border:4px solid rgba(255,255,255,.7);
  box-shadow:0 18px 45px rgba(0,0,0,.25);
}
.hero h1{
  margin:0;
  font-size:clamp(2.35rem, 6vw, 5.2rem);
  line-height:1.02;
  letter-spacing:.4px;
  font-weight:800;
}
.hero-subtitle{
  margin:14px 0 0;
  font-size:clamp(1.1rem, 2.4vw, 1.55rem);
  font-weight:700;
  color:#ffd9d5;
}
.hero-timing{
  margin:10px auto 0;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:8px 14px;
  border-radius:999px;
  background:rgba(255,255,255,.16);
  border:1px solid rgba(255,255,255,.18);
  color:#fff;
  font-size:.95rem;
  font-weight:700;
}
.hero-description{
  margin:16px auto 0;
  width:min(760px,100%);
  color:rgba(255,255,255,.88);
  font-size:clamp(.98rem, 1.8vw, 1.08rem);
}
.hero-actions{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:14px;
  flex-wrap:wrap;
  margin-top:26px;
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  min-height:48px;
  padding:0 20px;
  border-radius:999px;
  font-weight:700;
  border:1px solid transparent;
  transition:.2s ease;
  box-shadow:0 12px 30px rgba(0,0,0,.10);
}
.btn:hover{transform:translateY(-2px)}
.btn-primary{background:var(--accent);color:#fff}
.btn-primary:hover{filter:brightness(1.02)}
.btn-secondary{background:rgba(255,255,255,.12);color:#fff;border-color:rgba(255,255,255,.22)}
.btn-secondary:hover{background:rgba(255,255,255,.18)}
.btn-full{width:100%}

.section{
  padding:90px 0;
}
.section-alt{
  background:linear-gradient(180deg,var(--bg),#f9fbff);
}

.about-section{
  position:relative;
  overflow:hidden;
}
.about-section::before{
  content:"";
  position:absolute;
  inset:0;
  background-image:url('images/about-bg.jpg');
  background-size:cover;
  background-position:center;
  opacity:.42;
  transform:scale(1.02);
}
.about-section::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg, rgba(244,247,251,.52), rgba(249,251,255,.70));
}
.about-section > .container{
  position:relative;
  z-index:1;
}

.section-head{
  text-align:center;
  width:min(860px,100%);
  margin:0 auto 34px;
}
.eyebrow{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:8px 14px;
  border-radius:999px;
  background:#edf2ff;
  color:var(--primary);
  font-size:13px;
  font-weight:700;
  margin-bottom:12px;
}
.section-head h2{
  margin:0;
  font-size:clamp(1.7rem, 3.8vw, 3rem);
  line-height:1.12;
  color:var(--primary-dark);
}
.section-head p{
  margin:14px auto 0;
  color:var(--muted);
  font-size:1rem;
  width:min(760px,100%);
}

.about-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
}
.glass-card,
.timeline-item,
.review-item,
.doctor-photo,
.doctor-content,
.map-card,
.contact-card,
.admin-card{
  background:var(--surface);
  border:1px solid var(--border);
  backdrop-filter:blur(16px);
  box-shadow:var(--shadow);
}
.glass-card{
  border-radius:var(--radius);
  padding:24px;
}
.glass-card h3{
  margin:0 0 12px;
  color:var(--primary-dark);
  font-size:1.2rem;
}
.glass-card p{margin:0;color:var(--text)}
.glass-card p + p{margin-top:12px}

.timeline{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:16px;
}
.timeline-item{
  border-radius:22px;
  padding:22px 18px;
}
.timeline-icon{
  width:52px;height:52px;
  border-radius:18px;
  display:grid;place-items:center;
  color:#fff;
  background:linear-gradient(135deg,var(--primary),#6b8dff);
  margin-bottom:14px;
  box-shadow:0 12px 25px rgba(35,86,165,.20);
}
.timeline-item h3{margin:0 0 10px;color:var(--primary-dark);font-size:1.02rem}
.timeline-item p{margin:0;color:var(--muted);font-size:.95rem}

.service-showcase{
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  gap:16px;
  align-items:center;
}
.service-arrow{
  width:54px;
  height:54px;
  border:0;
  border-radius:16px;
  background:#fff;
  color:var(--primary);
  box-shadow:var(--shadow);
  cursor:pointer;
  display:grid;
  place-items:center;
  transition:.2s ease;
}
.service-arrow:hover{
  transform:translateY(-2px);
  background:var(--primary);
  color:#fff;
}
.service-spotlight{
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:0;
  border-radius:30px;
  overflow:hidden;
  background:#fff;
  box-shadow:var(--shadow);
  border:1px solid var(--border);
  min-height:420px;
}
.service-spotlight.flash{
  animation:serviceFlash .45s ease;
}
@keyframes serviceFlash{
  0%{opacity:.6; transform:scale(.985)}
  100%{opacity:1; transform:scale(1)}
}
.service-media{
  min-height:420px;
  background:#dfe8ff;
}
.service-media img{
  width:100%;
  height:100%;
  min-height:420px;
  object-fit:cover;
}
.service-copy{
  padding:32px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  background:linear-gradient(180deg,#ffffff,#f8fbff);
}
.service-meta{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:14px;
}
.service-index{
  width:42px;
  height:42px;
  border-radius:14px;
  display:grid;
  place-items:center;
  background:var(--primary);
  color:#fff;
  font-weight:800;
}
.service-chip{
  padding:8px 12px;
  border-radius:999px;
  background:#edf2ff;
  color:var(--primary);
  font-size:13px;
  font-weight:700;
}
.service-copy h3{
  margin:0;
  color:var(--primary-dark);
  font-size:clamp(1.4rem, 2.5vw, 2.2rem);
}
.service-copy p{
  margin:14px 0 0;
  color:var(--muted);
  font-size:1rem;
  line-height:1.8;
}
.service-bars{
  display:flex;
  gap:8px;
  margin-top:24px;
  flex-wrap:wrap;
}
.service-bar{
  width:34px;
  height:6px;
  border-radius:999px;
  background:#d7e3ff;
  cursor:pointer;
  transition:.2s ease;
}
.service-bar.active{
  width:54px;
  background:var(--primary);
}

.doctor-wrap{
  display:grid;
  grid-template-columns:320px minmax(0,1fr);
  gap:20px;
  align-items:center;
}
.doctor-photo{
  border-radius:28px;
  overflow:hidden;
}
.doctor-photo img{
  width:100%;
  aspect-ratio:3 / 4;
  object-fit:cover;
}
.doctor-content{
  border-radius:28px;
  padding:28px;
}
.doctor-content h3{
  margin:0;
  font-size:clamp(1.5rem, 2.5vw, 2.2rem);
  color:var(--primary-dark);
}
.doctor-role{margin:8px 0 14px;color:var(--accent);font-weight:700}
.doctor-content p{margin:0;color:var(--text)}
.doctor-content p + p{margin-top:12px}

.astro-callout{
  margin-top:20px;
  padding:18px;
  border-radius:22px;
  background:linear-gradient(135deg, rgba(35,86,165,.08), rgba(255,107,90,.06));
  border:1px solid rgba(35,86,165,.12);
}
.astro-callout p{
  margin:0 0 14px;
  color:var(--muted);
}
.astro-btn{
  width:100%;
  background:#173a73;
  color:#fff;
}
.astro-btn:hover{
  background:#2356a5;
  color:#fff;
}

.reviews-grid{
  display:grid;
  grid-template-columns:380px minmax(0,1fr);
  gap:20px;
}
.review-tools{
  display:grid;
  gap:18px;
}
.review-form{
  border-radius:28px;
}
.review-form h3{margin:0 0 14px;color:var(--primary-dark)}
.review-form input,
.review-form textarea,
.admin-auth input{
  width:100%;
  border:1px solid rgba(35,86,165,.16);
  background:#fff;
  border-radius:16px;
  padding:14px 16px;
  margin-bottom:12px;
  outline:none;
  transition:border-color .2s ease, box-shadow .2s ease;
}
.review-form input:focus,
.review-form textarea:focus,
.admin-auth input:focus{
  border-color:var(--primary);
  box-shadow:0 0 0 4px rgba(35,86,165,.10);
}
.star-input{
  display:flex;
  gap:8px;
  align-items:center;
  margin:8px 0 14px;
}
.star-input button{
  border:0;
  background:transparent;
  font-size:1.8rem;
  color:#c7d2e5;
  cursor:pointer;
  line-height:1;
  padding:0;
}
.star-input button.active{
  color:#f5a623;
}
.review-list{
  display:grid;
  gap:14px;
}
.review-item{
  border-radius:22px;
  padding:18px 20px;
}
.review-top{
  display:flex;
  gap:12px;
  align-items:center;
  margin-bottom:10px;
}
.review-avatar{
  width:54px;
  height:54px;
  border-radius:50%;
  overflow:hidden;
  background:#edf2ff;
  display:grid;
  place-items:center;
  flex:0 0 auto;
}
.review-avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.review-avatar-placeholder{
  color:var(--primary);
  font-size:1.2rem;
}
.review-meta{
  flex:1;
  min-width:0;
}
.review-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-bottom:4px;
}
.review-head strong{color:var(--primary-dark)}
.review-date{
  font-size:.82rem;
  color:var(--muted);
}
.stars{color:#f5a623;letter-spacing:2px}
.review-item p{margin:0;color:var(--text)}
.review-item .review-actions{
  display:flex;
  justify-content:flex-end;
  margin-top:12px;
}
.delete-btn{
  border:0;
  background:#fee4e2;
  color:#b42318;
  padding:8px 12px;
  border-radius:999px;
  font-weight:700;
  cursor:pointer;
}

.admin-card{
  border-radius:28px;
  padding:24px;
}
.admin-card h3{margin:0 0 12px;color:var(--primary-dark)}
.admin-status p{
  margin:0 0 12px;
  color:var(--muted);
}
.admin-login-note{
  margin-top:8px;
  font-size:.85rem;
  color:var(--muted);
}

.contact-grid{
  display:grid;
  grid-template-columns:1fr 1.1fr;
  gap:20px;
  align-items:stretch;
}
.contact-card,
.map-card{
  border-radius:28px;
  padding:24px;
}
.contact-card h3{margin:0 0 16px;color:var(--primary-dark)}
.contact-row{
  display:flex;
  gap:12px;
  align-items:flex-start;
  padding:12px 0;
  color:var(--text);
}
.contact-row i{
  color:var(--primary);
  margin-top:4px;
  width:18px;
}
.contact-row a{color:var(--primary-dark);font-weight:600}
.contact-actions{
  justify-content:flex-start;
  margin-top:18px;
  flex-wrap:wrap;
}
.contact-actions .btn{
  min-width:160px;
}

.contact-whatsapp{
  background:#eaf7ef !important;
  color:#16794c !important;
  border:1px solid rgba(22,121,76,.16) !important;
}
.contact-whatsapp:hover{
  background:#ddf4e5 !important;
  color:#146b44 !important;
}

.map-card{
  padding:0;
  overflow:hidden;
}
.map-card iframe{
  width:100%;
  height:100%;
  min-height:360px;
  border:0;
  display:block;
}

.floating-whatsapp{
  position:fixed;
  right:16px;
  bottom:16px;
  width:58px;
  height:58px;
  border-radius:18px;
  display:grid;
  place-items:center;
  background:var(--accent-2);
  color:#fff;
  box-shadow:0 16px 35px rgba(37,211,102,.35);
  z-index:999;
  font-size:1.55rem;
}

.footer{
  background:#0f172a;
  color:#dbe3ff;
  padding:22px 0;
}
.footer-inner{
  display:flex;
  justify-content:center;
  text-align:center;
}
.footer p{margin:0}

.reveal{
  opacity:0;
  transform:translateY(22px);
  transition:opacity .75s ease, transform .75s ease;
}
.reveal.active{
  opacity:1;
  transform:none;
}

@media (max-width: 1024px){
  .timeline{grid-template-columns:repeat(2,minmax(0,1fr))}
  .doctor-wrap,.reviews-grid,.contact-grid,.about-grid{grid-template-columns:1fr}
  .hero-stats{grid-template-columns:1fr}
  .service-showcase{grid-template-columns:1fr}
  .service-arrow{display:none}
}

@media (max-width: 860px){
  .menu-toggle{display:inline-grid;place-items:center}
  .nav-links{
    position:fixed;
    top:74px;
    left:16px;
    right:16px;
    display:none;
    flex-direction:column;
    gap:14px;
    padding:16px;
    border-radius:20px;
    background:rgba(255,255,255,.96);
    backdrop-filter:blur(14px);
    box-shadow:var(--shadow);
  }
  .nav-links.open{display:flex}
}

@media (max-width: 640px){
  .navbar{padding:12px 14px}
  .brand-text{font-size:.96rem}
  .lang-switch{gap:6px}
  .lang-btn{padding:8px 10px}
  .hero{padding:100px 16px 34px}
  .hero-icon{width:84px;height:84px;border-radius:22px}
  .hero-actions{flex-direction:column;align-items:stretch}
  .btn{width:100%;justify-content:center}
  .section{padding:74px 0}
  .timeline{grid-template-columns:1fr}
  .service-spotlight{
    grid-template-columns:1fr;
    min-height:auto;
  }
  .service-media,
  .service-media img{
    min-height:240px;
  }
  .service-copy{
    padding:22px;
  }
  .review-form,
  .doctor-content,
  .contact-card,
  .glass-card,
  .timeline-item,
  .review-item,
  .admin-card{padding:18px}
  .map-card iframe{min-height:300px}
  .contact-actions .btn{
    min-width:0;
  }
}