/* ==========================================================================
   Alba Odontología — demo QuickPixel
   Cálida y luminosa: verde azulado profundo, menta, crema y un acento coral
   (el sol del logo). Fraunces para títulos, Plus Jakarta Sans para texto.
   ========================================================================== */
:root {
  --teal: #0f5257;
  --teal-2: #0b3f43;
  --mint: #dcefe9;
  --mint-2: #c6e6dd;
  --cream: #fbf7f2;
  --sand: #f3ebe0;
  --coral: #ff7a5c;
  --coral-2: #f0623f;
  --ink: #10292b;
  --muted: #5b7476;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Plus Jakarta Sans", system-ui, sans-serif;
  --gutter: clamp(1.1rem, .5rem + 3vw, 3rem);
  --r: 22px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body { background: var(--cream); color: var(--ink); font-family: var(--sans); font-size: 1.02rem; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.hl { color: var(--coral-2); }

/* ---------- Aviso de demo ---------- */
.demo { padding: .5rem var(--gutter); background: var(--ink); color: #cfe3df; font-size: .78rem; text-align: center; }
.demo a { color: #fff; font-weight: 700; text-decoration: none; margin-left: .3rem; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 52px; padding: 0 1.5rem; border-radius: 999px; border: 2px solid transparent; font: 700 .98rem/1 var(--sans); text-decoration: none; cursor: pointer; transition: background .3s, color .3s, border-color .3s, transform .2s; }
.btn:active { transform: scale(.97); }
.btn--coral { background: var(--coral); color: #fff; }
.btn--coral:hover { background: var(--coral-2); }
.btn--teal { background: var(--teal); color: #fff; }
.btn--teal:hover { background: var(--teal-2); }
.btn--ghost { border-color: var(--teal); color: var(--teal); }
.btn--ghost:hover { background: var(--teal); color: #fff; }
.btn--sm { min-height: 44px; padding: 0 1.15rem; font-size: .92rem; }
.btn--block { width: 100%; }

/* ---------- Topbar + nav ---------- */
.topbar { background: var(--teal); color: #d6ebe6; font-size: .82rem; }
.topbar__inner { display: flex; justify-content: space-between; gap: 1rem; padding-block: .5rem; }
.topbar__urg { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; color: #fff; }
.topbar__urg i { width: 8px; height: 8px; border-radius: 50%; background: #6ee7b7; box-shadow: 0 0 0 4px rgba(110, 231, 183, .25); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(110, 231, 183, 0); } }
.nav { position: sticky; top: 0; z-index: 50; background: rgba(251, 247, 242, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.nav.is-scrolled { border-color: #eadfce; }
.nav__inner { display: flex; align-items: center; gap: 1.5rem; height: 76px; }
.nav__logo img { width: 170px; }
.nav__links { display: none; gap: 1.8rem; margin-left: auto; }
.nav__links a { text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--ink); transition: color .2s; }
.nav__links a:hover { color: var(--coral-2); }
.nav__cta { margin-left: auto; }
.nav__toggle { display: grid; gap: 6px; width: 44px; height: 44px; place-content: center; border: 0; background: none; cursor: pointer; }
.nav__toggle span { width: 22px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .3s var(--ease); }
.nav.is-open .nav__toggle span:first-child { transform: translateY(4px) rotate(45deg); }
.nav.is-open .nav__toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }
@media (max-width: 959px) {
  .nav__cta { display: none; }
  .nav__toggle { margin-left: auto; }
  .nav.is-open .nav__links { display: grid; position: absolute; top: 100%; left: 0; right: 0; gap: 0; padding: .5rem var(--gutter) 1.2rem; background: var(--cream); border-bottom: 1px solid #eadfce; }
  .nav.is-open .nav__links a { padding: .85rem 0; font-size: 1.1rem; border-bottom: 1px solid #efe6d8; }
}

/* ---------- Tipografía de secciones ---------- */
.kicker { display: inline-block; margin-bottom: .9rem; font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); }
.kicker--light { color: var(--mint-2); }
.title { font-family: var(--serif); font-size: clamp(2rem, 1.2rem + 3.2vw, 3.4rem); line-height: 1.05; font-weight: 600; letter-spacing: -.02em; color: var(--teal); }
.title--light { color: #fff; }
.lead { margin-top: 1.2rem; font-size: 1.08rem; color: var(--muted); }
.head { max-width: 760px; margin-bottom: clamp(2.2rem, 1.8rem + 2vw, 3.4rem); }
.head--center { margin-inline: auto; text-align: center; }
.section { padding-block: clamp(4.5rem, 3rem + 5vw, 7.5rem); }
.section--mint { background: var(--mint); }
.section--cream { background: var(--sand); }
.section--teal { background: var(--teal); color: #e5f2ef; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem) clamp(4rem, 3rem + 4vw, 6.5rem); }
.hero::before { content: ""; position: absolute; right: -12vw; top: -10vw; width: 62vw; height: 62vw; max-width: 900px; max-height: 900px; border-radius: 50%; background: var(--mint); z-index: -1; }
.hero__grid { display: grid; gap: 3rem; align-items: center; }
.hero__title { font-family: var(--serif); font-size: clamp(2.6rem, min(1.4rem + 4.6vw, 8.6svh), 4.9rem); line-height: 1.02; font-weight: 600; letter-spacing: -.03em; color: var(--teal); }
.hero__lead { max-width: 34rem; margin-top: 1.4rem; font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: var(--muted); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 1rem 2.2rem; margin-top: 2.2rem; padding: 0; list-style: none; color: var(--muted); font-size: .95rem; }
.hero__trust strong { display: block; font-family: var(--serif); font-size: 2rem; line-height: 1; color: var(--teal); }

.hero__visual { position: relative; max-width: 470px; width: 100%; margin-inline: auto; }
.arch { position: relative; z-index: 1; aspect-ratio: 9 / 11; border-radius: 999px 999px 28px 28px; overflow: hidden; background: var(--mint-2); }
.arch img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.4s var(--ease); }
.is-loaded .arch img { transform: none; }
/* El sol del logo asomando detrás del arco */
.sun { position: absolute; z-index: 0; left: -14%; bottom: 18%; width: 44%; aspect-ratio: 1; border-radius: 50%; background: var(--coral); animation: rise 1.6s var(--ease) both .3s; }
@keyframes rise { from { transform: translateY(40%); opacity: 0; } to { transform: none; opacity: 1; } }


/* ---------- Franja de confianza ---------- */
.strip { background: var(--teal); color: #d6ebe6; }
.strip__inner { display: grid; gap: 1.2rem; padding-block: 1.6rem; font-size: .92rem; }
.strip strong { display: block; color: #fff; font-size: 1rem; }

/* ---------- Tratamientos ---------- */
.treat { display: grid; gap: 1.1rem; }
.treat__card { overflow: hidden; border-radius: var(--r); background: #fff; }
.treat__card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .9s var(--ease); }
.treat__card:hover img { transform: scale(1.05); }
.treat__body { padding: 1.4rem 1.5rem 1.6rem; }
.treat__body h3, .treat__more h3 { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; color: var(--teal); }
.treat__body p, .treat__more p { margin-top: .4rem; color: var(--muted); }
.treat__more { display: grid; gap: .8rem; padding: 0; list-style: none; }
.treat__more li { display: flex; gap: 1rem; align-items: flex-start; padding: 1.2rem 1.3rem; border-radius: 18px; background: #fff; }
.treat__more h3 { font-size: 1.2rem; }
.ico { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--mint); color: var(--teal); }
.ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Consultorio ---------- */
.about { display: grid; gap: 3rem; align-items: center; }
.about__photos { position: relative; padding: 0 12% 14% 0; }
.about__a { border-radius: var(--r); aspect-ratio: 9 / 10; object-fit: cover; width: 100%; }
.about__b { position: absolute; right: 0; bottom: 0; width: 48%; aspect-ratio: 6 / 5; object-fit: cover; border-radius: 18px; border: 8px solid var(--mint); }
.checks { display: grid; gap: .8rem; margin-top: 1.6rem; padding: 0; list-style: none; }
.checks li { display: flex; gap: .7rem; align-items: baseline; font-weight: 500; }
.checks li::before { content: "✓"; flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--teal); color: #fff; font-size: .75rem; transform: translateY(3px); }

/* ---------- Pasos ---------- */
.steps { display: grid; gap: 1.2rem; padding: 0; list-style: none; counter-reset: s; }
.steps li { position: relative; padding: 2rem 1.6rem; border-radius: var(--r); background: #fff; text-align: center; }
.steps__n { display: inline-grid; place-items: center; width: 56px; height: 56px; margin-bottom: 1rem; border-radius: 50%; background: var(--coral); color: #fff; font-family: var(--serif); font-size: 1.6rem; font-weight: 600; }
.steps h3 { font-family: var(--serif); font-size: 1.4rem; color: var(--teal); }
.steps p { margin-top: .5rem; color: var(--muted); }

/* ---------- Equipo ---------- */
.team { display: grid; gap: 1.4rem; }
.doc img { width: 100%; aspect-ratio: 5 / 6; object-fit: cover; border-radius: 160px 160px var(--r) var(--r); background: var(--mint-2); }
.doc h3 { margin-top: 1rem; font-family: var(--serif); font-size: 1.4rem; color: var(--teal); }
.doc p { color: var(--muted); font-size: .95rem; }

/* ---------- Opiniones ---------- */
.reviews { display: grid; gap: 1.2rem; }
.review { display: grid; gap: 1rem; align-content: start; padding: 1.8rem; border-radius: var(--r); background: var(--teal-2); }
.stars { color: #ffb4a2; letter-spacing: .15em; }
.review blockquote { font-family: var(--serif); font-size: 1.25rem; line-height: 1.4; color: #fff; }
.review figcaption { display: flex; align-items: center; gap: .8rem; font-weight: 700; color: #fff; }
.review figcaption img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.review figcaption span { display: block; font-weight: 500; font-size: .85rem; color: var(--mint-2); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 1rem; }
.faq__list { display: grid; gap: .7rem; }
.faq details { border-radius: 18px; background: #fff; border: 1.5px solid #efe6d8; transition: border-color .3s; }
.faq details[open] { border-color: var(--mint-2); }
.faq summary { display: flex; justify-content: space-between; gap: 1rem; padding: 1.2rem 1.4rem; cursor: pointer; list-style: none; font-weight: 700; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--mint); color: var(--teal); font-size: 1.2rem; transition: transform .35s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 1.4rem 1.3rem; color: var(--muted); }

/* ---------- Contacto ---------- */
.contact { display: grid; gap: 2.5rem; align-items: center; }
.contact__list { display: grid; gap: 1.1rem; margin: 1.6rem 0 1.8rem; }
.contact__list dt { font-weight: 700; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); }
.contact__list dd { margin: .2rem 0 0; font-size: 1.05rem; }
.contact__map { overflow: hidden; border-radius: var(--r); aspect-ratio: 16 / 10; background: var(--mint-2); }
.contact__map iframe { width: 100%; height: 100%; border: 0; filter: saturate(.6) hue-rotate(-8deg); }

/* ---------- Formulario ---------- */
.form { display: grid; gap: 1rem; padding: clamp(1.5rem, 1rem + 2vw, 2.4rem); border-radius: var(--r); background: #fff; }
.form__title { font-family: var(--serif); font-size: 1.8rem; font-weight: 600; color: var(--teal); line-height: 1.1; }
.form__intro { margin-top: -.5rem; color: var(--muted); }
.form__row { display: grid; gap: 1rem; }
.field { display: grid; gap: .4rem; }
.field > span { font-weight: 600; font-size: .9rem; }
.field small { font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: .85rem 1rem; border-radius: 14px; border: 1.5px solid #dfe8e5; background: var(--cream);
  font: 500 1rem/1.4 var(--sans); color: var(--ink); transition: border-color .2s, background .2s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); background: #fff; }
.field.is-invalid input, .field.is-invalid select { border-color: var(--coral-2); background: #fff4f1; }
.check { display: flex; gap: .6rem; align-items: center; font-weight: 500; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--teal); }
.form__status { min-height: 1.3em; font-weight: 600; font-size: .95rem; }
.form__status.is-ok { color: var(--teal); }
.form__status.is-error { color: var(--coral-2); }

/* ---------- Footer ---------- */
.footer { padding-block: 3rem 2rem; background: var(--ink); color: #a9c2c0; font-size: .92rem; }
.footer__inner { display: grid; gap: 2rem; }
.footer__logo { width: 180px; filter: brightness(0) invert(1); margin-bottom: .8rem; }
.footer nav { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; }
.footer nav a { color: #fff; text-decoration: none; font-weight: 600; }
.footer__demo { font-size: .8rem; color: #7f9c9a; }
.footer__demo a { color: #fff; }

/* ---------- WhatsApp flotante ---------- */
.wa { position: fixed; right: var(--gutter); bottom: var(--gutter); z-index: 60; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: #25d366; color: #fff; box-shadow: 0 12px 30px rgba(37, 211, 102, .4); transition: transform .3s var(--ease); }
.wa:hover { transform: scale(1.08); }
.wa svg { width: 30px; height: 30px; fill: currentColor; }

/* ---------- Aparición al scrollear ---------- */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--rd, 0s); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 639px) {
  .hero__visual { margin-bottom: 2.5rem; }
}
@media (min-width: 640px) {
  .strip__inner { grid-template-columns: repeat(2, 1fr); }
  .treat__more, .steps, .reviews { grid-template-columns: repeat(2, 1fr); }
  .team { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 960px) {
  .nav__links { display: flex; }
  .nav__cta { margin-left: 0; }
  .nav__toggle { display: none; }
  .hero__grid { grid-template-columns: 1.08fr .92fr; gap: 4rem; }
  .strip__inner { grid-template-columns: repeat(4, 1fr); }
  .treat { grid-template-columns: 1.3fr 1fr 1fr; }
  .treat__card--big { grid-row: span 2; }
  .treat__card--big img { aspect-ratio: auto; height: 100%; min-height: 360px; flex: 1; }
  .treat__card--big { display: flex; flex-direction: column; }
  .treat__more { grid-column: 2 / 4; }
  .about { grid-template-columns: 1fr 1fr; gap: 5rem; }
  .steps, .reviews { grid-template-columns: repeat(3, 1fr); }
  .faq { grid-template-columns: .8fr 1.2fr; gap: 4rem; align-items: start; }
  .contact { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
  .form__row { grid-template-columns: 1fr 1fr; }
  .footer__inner { grid-template-columns: 1.4fr 1fr 1.4fr; align-items: start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
