/* Clínica Dental Sonría — cielo, calma, confianza */
:root {
  --nube: #F4FAFD;
  --blanco: #FFFFFF;
  --tinta: #123447;
  --tinta-dim: #577487;
  --cielo: #2E9BD6;
  --cielo-hondo: #1B7AB0;
  --menta: #D8F0F7;
  --line: #D5E6EE;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--nube);
  color: var(--tinta);
  font-family: "Satoshi", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--cielo-hondo); outline-offset: 4px; }
h1, h2, h3 { font-family: "Pally", sans-serif; font-weight: 700; }

/* header */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 30px;
  padding: 16px 5vw;
  background: rgba(244, 250, 253, 0.9); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { font-family: "Pally", sans-serif; font-weight: 700; font-size: 24px; color: var(--cielo-hondo); }
.top nav { display: flex; gap: 24px; margin-left: auto; font-size: 15px; color: var(--tinta-dim); }
.top nav a:hover { color: var(--tinta); }

.btn-main {
  display: inline-block; background: var(--cielo-hondo); color: #fff;
  border-radius: 999px; padding: 11px 22px; font-weight: 700; font-size: 15px;
  box-shadow: 0 6px 18px rgba(46, 155, 214, 0.35);
  transition: transform 0.2s ease, background 0.2s ease;
}
.btn-main:hover { background: #145F89; transform: translateY(-2px); }
.btn-soft {
  display: inline-block; background: var(--menta); color: var(--cielo-hondo);
  border-radius: 999px; padding: 11px 22px; font-weight: 700; font-size: 15px;
  transition: transform 0.2s ease;
}
.btn-soft:hover { transform: translateY(-2px); }
.big { padding: 16px 32px; font-size: 16px; }

/* hero */
.hero {
  display: grid; grid-template-columns: 1.05fr 1fr;
  gap: clamp(30px, 5vw, 70px);
  align-items: center; padding: clamp(50px, 8vh, 90px) 5vw;
  max-width: 1280px; margin: 0 auto;
}
.pill {
  display: inline-block; background: var(--menta); color: var(--cielo-hondo);
  border-radius: 999px; padding: 7px 16px; font-size: 13.5px; font-weight: 700;
  margin-bottom: 22px;
}
.hero h1 { font-size: clamp(40px, 4.6vw, 68px); line-height: 1.05; letter-spacing: -0.01em; }
.lede { margin: 20px 0 30px; font-size: 18px; color: var(--tinta-dim); max-width: 46ch; }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.mini-trust {
  list-style: none; display: flex; gap: 22px; margin-top: 34px;
  font-size: 14px; color: var(--tinta-dim); font-weight: 500; flex-wrap: wrap;
}
.mini-trust li:first-child { color: var(--cielo-hondo); }

.hero-media { position: relative; }
.hero-media .main {
  width: 100%; height: clamp(400px, 60vh, 560px); object-fit: cover;
  border-radius: 28px;
}
.hero-media .chip {
  position: absolute; left: -34px; bottom: -30px;
  width: 168px; height: 168px; object-fit: cover;
  border-radius: 24px; border: 6px solid var(--nube);
}

/* services */
.services { padding: 90px 5vw; max-width: 1280px; margin: 0 auto; }
.services h2 { font-size: clamp(32px, 3.6vw, 52px); margin-bottom: 40px; max-width: 22ch; }
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.svc-grid article {
  background: var(--blanco); border: 1px solid var(--line); border-radius: 22px;
  padding: 28px 24px; display: flex; flex-direction: column; gap: 10px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.svc-grid article:hover { transform: translateY(-5px); box-shadow: 0 16px 34px rgba(18, 52, 71, 0.09); }
.ico {
  width: 46px; height: 46px; border-radius: 14px; background: var(--menta);
  display: grid; place-items: center; font-size: 20px; color: var(--cielo-hondo);
}
.svc-grid h3 { font-size: 21px; }
.svc-grid p { font-size: 14.5px; color: var(--tinta-dim); flex: 1; }
.svc-grid strong { font-family: "Pally", sans-serif; font-size: 22px; color: var(--cielo-hondo); }

/* doctor */
.doc {
  display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(30px, 5vw, 80px);
  align-items: center; padding: 60px 5vw 90px; max-width: 1280px; margin: 0 auto;
}
.doc img { width: 100%; height: 520px; object-fit: cover; border-radius: 28px; }
.doc h2 { font-size: clamp(30px, 3.4vw, 46px); margin-bottom: 16px; }
.doc p { color: var(--tinta-dim); max-width: 54ch; font-size: 17px; }
.doc-facts { list-style: none; margin-top: 26px; display: flex; flex-direction: column; gap: 10px; }
.doc-facts li { padding-left: 26px; position: relative; font-weight: 500; }
.doc-facts li::before { content: "✓"; position: absolute; left: 0; color: var(--cielo); font-weight: 700; }

/* reviews */
.reviews { background: var(--blanco); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 90px 5vw; }
.reviews h2 { text-align: center; font-size: clamp(30px, 3.4vw, 46px); margin-bottom: 44px; }
.rev-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 1180px; margin: 0 auto; }
.rev-row figure { background: var(--nube); border: 1px solid var(--line); border-radius: 22px; padding: 28px; }
.rev-row blockquote { font-size: 17px; font-weight: 500; line-height: 1.5; }
.rev-row figcaption { margin-top: 16px; font-size: 14px; color: var(--tinta-dim); }

/* faq */
.faq { padding: 90px 5vw; max-width: 780px; margin: 0 auto; }
.faq h2 { font-size: clamp(30px, 3.4vw, 46px); margin-bottom: 30px; }
.faq details { background: var(--blanco); border: 1px solid var(--line); border-radius: 16px; padding: 20px 24px; margin-bottom: 12px; }
.faq summary { font-weight: 700; cursor: pointer; font-size: 17px; list-style: none; position: relative; padding-right: 30px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: -2px; color: var(--cielo); font-size: 22px; font-weight: 400; transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 12px; color: var(--tinta-dim); }

/* cta */
.cta {
  margin: 0 5vw 90px; padding: clamp(50px, 7vw, 90px) 5vw; text-align: center;
  background: linear-gradient(160deg, var(--cielo-hondo), #145F89);
  border-radius: 32px; color: #fff; max-width: 1180px; margin-left: auto; margin-right: auto;
}
.cta h2 { font-size: clamp(34px, 4.4vw, 60px); margin-bottom: 12px; }
.cta > p { margin-bottom: 30px; }
.btn-invert {
  display: inline-block; background: #fff; color: var(--cielo-hondo);
  border-radius: 999px; padding: 16px 34px; font-weight: 700; font-size: 16px;
  transition: transform 0.2s ease;
}
.btn-invert:hover { transform: translateY(-2px); }
.cta .small { margin-top: 24px; font-size: 14px; margin-bottom: 0; }

/* footer */
footer {
  padding: 26px 5vw 40px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 14px; color: var(--tinta-dim);
}
.credit a { text-decoration: underline; text-underline-offset: 3px; }
.credit a:hover { color: var(--cielo-hondo); }

/* reveals */
.rv { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.rv.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 980px) {
  .top nav { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-media .chip { left: 12px; bottom: -24px; width: 130px; height: 130px; }
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .doc { grid-template-columns: 1fr; }
  .doc img { height: 400px; }
  .rev-row { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .svc-grid { grid-template-columns: 1fr; }
}
