/* =========================================================
   Dra. María Paola Cárdenas — Medicina estética y antienvejecimiento
   Hoja de estilos basada en el manual de marca
   ========================================================= */

/* ---------- Tipografías de marca ---------- */
@font-face { font-family: "Loubrisa"; src: url("../fonts/loubrisa-regular.woff2") format("woff2"), url("../fonts/loubrisa-regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Loubrisa"; src: url("../fonts/loubrisa-bold.woff2") format("woff2"), url("../fonts/loubrisa-bold.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "SlimKing"; src: url("../fonts/slimking.woff2") format("woff2"), url("../fonts/slimking.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  /* Paleta oficial del manual */
  --taupe: #BEA994;
  --crema: #F5EFE8;
  --negro: #080808;
  --caramelo: #E0B68B;
  --cafe: #907667;
  /* Derivados para contraste y superficies */
  --cafe-deep: #5C4A40;
  --ink: #2A211C;
  --ink-soft: #5E5048;
  --white: #FFFFFF;
  --sand: #EDE3D8;
  --line: rgba(144, 118, 103, .28);
  --wa: #25D366;
  --wa-dark: #128C4B;

  --f-display: "Loubrisa", "Didot", Georgia, serif;
  --f-accent: "SlimKing", "Figtree", system-ui, sans-serif;
  --f-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: 2.2rem;
  --step-4: clamp(2.3rem, 4vw, 3.3rem);

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
  --arch: 999px 999px 18px 18px;
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--crema); color: var(--ink); font-family: var(--f-body); font-size: var(--step-0); line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
picture { display: contents; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 400; line-height: 1.1; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--cafe); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: 12px; top: -60px; background: var(--cafe-deep); color: var(--white); padding: 10px 16px; border-radius: 8px; z-index: 200; }
.skip:focus { top: 12px; }

/* Texto acento de marca: SlimKing espaciada */
.accent { font-family: var(--f-accent); letter-spacing: .14em; text-transform: uppercase; font-size: 1rem; line-height: 1.4; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 52px; padding: 0 1.6rem; border-radius: 999px; font: 600 1rem/1 var(--f-body); text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: background-color .2s, color .2s, border-color .2s; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--wa { background: var(--wa-dark); color: var(--white); }
.btn--wa:hover { background: #0E7A40; }
.btn--ink { background: var(--cafe-deep); color: var(--white); }
.btn--ink:hover { background: var(--negro); }
.btn--ghost { border-color: var(--cafe-deep); color: var(--cafe-deep); background: transparent; }
.btn--ghost:hover { background: var(--cafe-deep); color: var(--white); }
.btn--light { border-color: rgba(255,255,255,.85); color: var(--white); background: transparent; }
.btn--light:hover { background: var(--white); color: var(--cafe-deep); }
.link { color: var(--cafe-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.link:hover { color: var(--negro); }

/* ---------- Encabezado ---------- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(245, 239, 232, .92); backdrop-filter: saturate(1.3) blur(12px); -webkit-backdrop-filter: saturate(1.3) blur(12px); border-bottom: 1px solid transparent; transition: border-color .25s; }
.header.is-scrolled { border-bottom-color: var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }
.brand { display: block; color: var(--cafe); text-decoration: none; flex: none; }
.brand svg { display: block; height: 50px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav__list { display: flex; gap: 24px; list-style: none; }
.nav__list a { font-family: var(--f-accent); text-transform: uppercase; letter-spacing: .12em; font-size: .92rem; text-decoration: none; color: var(--cafe-deep); padding: 6px 0; border-bottom: 1px solid transparent; }
.nav__list a:hover { color: var(--negro); border-bottom-color: var(--caramelo); }
.nav .btn { min-height: 44px; padding: 0 1.2rem; font-size: .95rem; }
.nav-toggle { display: none; background: none; border: 0; width: 46px; height: 46px; cursor: pointer; color: var(--cafe-deep); }
.nav-toggle svg { width: 26px; height: 26px; }
@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav { position: fixed; inset: var(--header-h) 0 0 0; background: var(--crema); flex-direction: column; align-items: stretch; justify-content: flex-start; padding: 24px var(--gutter) 40px; gap: 28px; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s; }
  .nav.is-open { opacity: 1; transform: none; visibility: visible; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__list a { display: block; font-size: 1.15rem; color: var(--ink); padding: 16px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { min-height: 54px; }
  body.nav-open { overflow: hidden; }
}
@media (max-width: 480px) { :root { --header-h: 72px; } .brand svg { height: 40px; } }

/* ---------- Hero con fotografía de marca ---------- */
.hero { position: relative; min-height: min(86vh, 780px); display: flex; align-items: center; overflow: hidden; background: var(--taupe); color: var(--white); isolation: isolate; }
.hero__photo, .hero__photo img { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero__photo img { object-fit: cover; object-position: 30% 30%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(190,169,148,0) 30%, rgba(190,169,148,.55) 55%, rgba(144,118,103,.92) 100%), linear-gradient(0deg, rgba(144,118,103,.35), rgba(144,118,103,0) 40%); }
.hero__mark { position: absolute; z-index: -1; color: var(--white); opacity: .16; height: 135%; width: auto; left: 18%; top: -12%; pointer-events: none; }
.hero__content { margin-left: auto; width: min(100%, 560px); padding: 80px 0; }
.hero__kicker { margin-bottom: 1.1rem; }
.hero h1 { font-weight: 700; text-transform: uppercase; font-size: clamp(2.9rem, 6.2vw, 5.4rem); line-height: .95; letter-spacing: .01em; margin-bottom: .3em; }
.hero h1 small { display: block; font-family: var(--f-accent); font-weight: 400; font-size: clamp(1rem, 1.6vw, 1.3rem); letter-spacing: .16em; line-height: 1.4; margin-top: .9em; }
.hero__lead { font-size: var(--step-1); max-width: 36ch; line-height: 1.55; margin-bottom: 2rem; color: rgba(255,255,255,.95); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
@media (prefers-reduced-motion: no-preference) {
  .hero [data-in] { opacity: 0; transform: translateY(14px); animation: rise .9s cubic-bezier(.2,.7,.2,1) forwards; }
  .hero [data-in="2"] { animation-delay: .12s; } .hero [data-in="3"] { animation-delay: .24s; } .hero [data-in="4"] { animation-delay: .36s; }
  .hero__photo img { animation: settle 1.8s cubic-bezier(.2,.7,.2,1) both; }
  @keyframes rise { to { opacity: 1; transform: none; } }
  @keyframes settle { from { transform: scale(1.06); } to { transform: scale(1); } }
}
@media (max-width: 860px) {
  .hero { min-height: 0; flex-direction: column; align-items: stretch; background: var(--cafe); }
  .hero__photo { position: relative; height: 62vw; min-height: 260px; z-index: 0; }
  .hero__photo img { position: absolute; object-position: 25% 30%; }
  .hero::before { background: linear-gradient(180deg, rgba(144,118,103,0) 25%, rgba(144,118,103,.6) 50%, var(--cafe) 62%); }
  .hero__mark { height: 80%; left: auto; right: -14%; top: auto; bottom: 4%; }
  .hero__content { margin: -60px 0 0; padding: 0 var(--gutter) 48px; position: relative; width: 100%; }
}

/* ---------- Accesos rápidos (círculos del manual) ---------- */
.quick { padding: clamp(40px, 6vw, 72px) 0; }
.quick__list { list-style: none; display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.quick a { display: flex; flex-direction: column; align-items: center; gap: 16px; text-decoration: none; color: var(--ink); text-align: center; }
.quick__circle { width: clamp(84px, 9vw, 120px); aspect-ratio: 1; border-radius: 50%; background: var(--caramelo); color: var(--crema); display: grid; place-items: center; box-shadow: 0 0 0 7px rgba(224,182,139,.22); transition: background-color .25s, box-shadow .25s; }
.quick__circle svg { width: 40%; height: 40%; }
.quick a:hover .quick__circle, .quick a:focus-visible .quick__circle { background: var(--cafe); box-shadow: 0 0 0 7px rgba(144,118,103,.2); }
.quick .accent { font-size: .95rem; }
@media (max-width: 760px) { .quick__list { grid-template-columns: repeat(3, 1fr); row-gap: 28px; } }

/* ---------- Secciones ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section--white { background: var(--white); }
.section--sand { background: var(--sand); }
.section--cafe { background: var(--cafe-deep); color: var(--crema); }
.section__head { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 64px; align-items: end; margin-bottom: clamp(36px, 5vw, 60px); }
.section__head .accent { color: var(--cafe); margin-bottom: 12px; display: block; }
.section--cafe .section__head .accent { color: var(--caramelo); }
.section__head h2 { font-size: var(--step-4); margin: 0; max-width: 16ch; }
.section__head p { color: var(--ink-soft); margin: 0; max-width: 46ch; }
.section--cafe .section__head p { color: rgba(245,239,232,.82); }
@media (max-width: 800px) { .section__head { grid-template-columns: 1fr; } }
.deco { position: absolute; color: var(--taupe); pointer-events: none; opacity: .7; }

/* ---------- Paneles de campaña (resultados naturales) ---------- */
.panels { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 0; border-radius: 22px; overflow: hidden; min-height: 860px; }
.panel { position: relative; overflow: hidden; display: flex; align-items: flex-end; color: var(--white); text-decoration: none; isolation: isolate; background: var(--taupe); }
.panel--tall { grid-row: 1 / span 2; grid-column: 2; align-items: center; justify-content: center; text-align: center; }
.panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.panel::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(190,169,148,.95) 0%, rgba(190,169,148,.55) 32%, rgba(190,169,148,0) 60%); }
.panel--tall::before { background: linear-gradient(0deg, rgba(190,169,148,.96) 0%, rgba(190,169,148,.7) 40%, rgba(190,169,148,.15) 75%); }
.panel:hover img { transform: scale(1.04); }
.panel__body { padding: clamp(24px, 3.4vw, 44px); position: relative; width: 100%; }
.panel--tall .panel__body { margin-top: 38%; }
.panel h3 { font-weight: 700; text-transform: uppercase; font-size: clamp(2rem, 3.6vw, 3.4rem); line-height: .95; margin: 0 0 .3em; }
.panel h3 span { display: block; font-size: 1.45em; }
.panel--tall h3 { text-transform: none; font-size: clamp(3rem, 6vw, 5.6rem); }
.panel p { font-family: var(--f-accent); font-size: clamp(1rem, 1.5vw, 1.25rem); letter-spacing: .04em; margin: 0; line-height: 1.35; }
.panel--tall .panel__kicker { font-family: var(--f-accent); font-size: clamp(1.3rem, 2.4vw, 2rem); margin: 0; }
.panel__mark { position: absolute; right: clamp(20px, 3vw, 40px); bottom: clamp(20px, 3vw, 40px); width: 40px; color: var(--crema); }
.panel--tall .panel__mark { position: static; display: inline-block; width: 30px; margin-left: 6px; vertical-align: top; }
@media (max-width: 860px) {
  .panels { grid-template-columns: 1fr; grid-template-rows: none; min-height: 0; }
  .panel { min-height: 440px; }
  .panel--tall { grid-row: auto; grid-column: auto; min-height: 560px; align-items: flex-end; }
  .panel--tall .panel__body { margin-top: 0; }
}

/* ---------- Tratamientos ---------- */
.treat { display: grid; grid-template-columns: 360px 1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.treat__preview { position: sticky; top: calc(var(--header-h) + 32px); }
.treat__preview .arch { aspect-ratio: 3 / 4; }
.treat__preview img { position: absolute; inset: 0; opacity: 0; transition: opacity .45s ease; }
.treat__preview img.is-active { opacity: 1; }
.treat__caption { margin-top: 16px; font-size: .92rem; color: var(--ink-soft); min-height: 3em; }
.treat__list { list-style: none; border-top: 1px solid var(--line); }
.treat__item { border-bottom: 1px solid var(--line); }
.treat__link { display: grid; grid-template-columns: 1fr auto; gap: 6px 24px; padding: 26px 4px; text-decoration: none; align-items: center; }
.treat__name { font-family: var(--f-display); font-size: clamp(1.55rem, 2.6vw, 2.1rem); line-height: 1.1; transition: color .2s; }
.treat__desc { grid-column: 1; color: var(--ink-soft); font-size: .98rem; max-width: 56ch; margin: 0; }
.treat__meta { grid-column: 2; grid-row: 1 / span 2; text-align: right; font-size: .86rem; color: var(--ink-soft); line-height: 1.5; white-space: nowrap; }
.treat__meta b { color: var(--ink); font-weight: 600; }
.treat__thumb { display: none; }
.treat__link:hover .treat__name, .treat__link:focus-visible .treat__name, .treat__item.is-active .treat__name { color: var(--cafe); }
@media (max-width: 900px) {
  .treat { grid-template-columns: 1fr; }
  .treat__preview { display: none; }
  .treat__link { grid-template-columns: 84px 1fr; gap: 4px 18px; }
  .treat__thumb { display: block; grid-row: 1 / span 3; width: 84px; height: 104px; border-radius: 999px 999px 10px 10px; object-fit: cover; background: var(--sand); }
  .treat__name, .treat__desc, .treat__meta { grid-column: 2; }
  .treat__meta { grid-row: auto; text-align: left; white-space: normal; }
}

.arch { border-radius: var(--arch); overflow: hidden; background: linear-gradient(160deg, var(--sand), var(--taupe)); position: relative; }
.arch img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Banner "Medicina estética avanzada" ---------- */
.banner { position: relative; min-height: 520px; display: flex; align-items: center; overflow: hidden; color: var(--white); isolation: isolate; background: var(--taupe); }
.banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 30%; z-index: -2; }
.banner::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(190,169,148,0) 35%, rgba(190,169,148,.7) 62%, rgba(176,146,118,.95) 100%); }

/* ---------- Proceso ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; }
.steps li { padding: 0 28px 0 0; }
.steps li + li { padding-left: 28px; border-left: 1px solid rgba(245,239,232,.2); }
.steps__n { font-family: var(--f-display); font-weight: 700; font-size: 3.6rem; line-height: 1; color: var(--caramelo); display: block; margin-bottom: 18px; }
.steps h3 { font-size: 1.5rem; margin-bottom: .4em; }
.steps p { color: rgba(245,239,232,.8); font-size: .98rem; margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; gap: 40px 0; } .steps li:nth-child(3) { padding-left: 0; border-left: 0; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; gap: 32px; } .steps li, .steps li + li { padding: 0 0 0 20px; border-left: 1px solid rgba(245,239,232,.28); } }

/* ---------- Doctora ---------- */
.doctor { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.doctor__photo { position: relative; max-width: 420px; }
.doctor__photo .arch { aspect-ratio: 4 / 5; }
.doctor__photo .deco { width: 70px; right: -40px; top: 10%; opacity: 1; color: var(--cafe); }
.doctor__logo { color: var(--cafe); width: min(100%, 460px); margin-bottom: 24px; }
.doctor__logo svg { width: 100%; height: auto; display: block; }
.doctor__quote { font-family: var(--f-accent); font-size: var(--step-2); line-height: 1.3; border-left: 2px solid var(--caramelo); padding-left: 22px; margin: 28px 0; max-width: 30ch; color: var(--cafe-deep); }
.creds { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 32px; margin: 28px 0 32px; }
.creds li { border-top: 1px solid var(--line); padding-top: 12px; font-size: .95rem; color: var(--ink-soft); }
.creds b { display: block; color: var(--ink); font-weight: 600; }
@media (max-width: 860px) { .doctor { grid-template-columns: 1fr; } .creds { grid-template-columns: 1fr; } .doctor__photo { max-width: 340px; } .doctor__photo .deco { right: -20px; } }

/* ---------- Cuidados ---------- */
.care { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.care__card { background: var(--white); border-radius: 22px; padding: clamp(24px, 4vw, 40px); border: 1px solid var(--line); }
.care__card h3 { font-size: 1.8rem; display: flex; align-items: center; gap: 14px; }
.care__card h3 svg { width: 34px; height: 34px; color: var(--caramelo); flex: none; }
.ticks { list-style: none; display: grid; gap: 12px; margin: 0 0 1.4em; }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; color: var(--ink-soft); }
.ticks li::before { content: ""; width: 9px; height: 9px; margin-top: .55em; border-radius: 50%; background: var(--caramelo); justify-self: center; }
.care .ticks { margin: 0; }
@media (max-width: 800px) { .care { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; font-family: var(--f-display); font-size: clamp(1.2rem, 2vw, 1.45rem); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 14px; height: 14px; border-right: 1.5px solid var(--cafe); border-bottom: 1.5px solid var(--cafe); transform: rotate(45deg) translateY(-4px); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.faq details p { color: var(--ink-soft); padding: 0 40px 24px 0; margin: 0; max-width: 70ch; }

/* ---------- Contacto ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); }
.contact h2 { font-size: var(--step-4); }
.info { list-style: none; margin: 28px 0; display: grid; gap: 18px; }
.info li { display: grid; grid-template-columns: 26px 1fr; gap: 14px; align-items: start; }
.info svg { width: 22px; height: 22px; color: var(--caramelo); margin-top: 3px; }
.info b { display: block; font-weight: 600; }
.info span, .info a { color: rgba(245,239,232,.85); }
.form { background: var(--crema); color: var(--ink); border-radius: 22px; padding: clamp(24px, 4vw, 40px); }
.form h3 { font-size: 1.8rem; margin-bottom: .25em; }
.form > p { color: var(--ink-soft); font-size: .95rem; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-size: .92rem; font-weight: 600; }
.field input, .field select, .field textarea { font: inherit; font-size: 1rem; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px; width: 100%; }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--cafe); outline-offset: 1px; border-color: transparent; }
.field__error { color: #A3263B; font-size: .86rem; min-height: 1.2em; }
.form .btn { width: 100%; margin-top: 6px; }
.form__legal { font-size: .82rem; color: var(--ink-soft); margin: 14px 0 0; }
.map { margin-top: 28px; border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 9; background: rgba(255,255,255,.06); }
.map iframe { width: 100%; height: 100%; border: 0; filter: sepia(.25) saturate(.8); }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }

/* ---------- Pie de página ---------- */
.footer { background: var(--cafe); color: rgba(255,255,255,.9); padding: 64px 0 28px; font-size: .95rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.footer h4 { font-family: var(--f-accent); text-transform: uppercase; letter-spacing: .14em; font-weight: 400; font-size: .95rem; color: var(--white); margin-bottom: 14px; }
.footer ul { list-style: none; display: grid; gap: 9px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.footer .brand { color: var(--white); margin-bottom: 18px; }
.footer .brand svg { height: auto; width: min(100%, 300px); }
.footer__legal { border-top: 1px solid rgba(255,255,255,.22); margin-top: 48px; padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .85rem; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.45); display: grid; place-items: center; }
.socials a:hover { border-color: var(--white); background: rgba(255,255,255,.1); }
.socials svg { width: 18px; height: 18px; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- WhatsApp flotante ---------- */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: flex; align-items: center; gap: 10px; }
.wa-float__btn { position: relative; width: 62px; height: 62px; border-radius: 50%; background: var(--wa); color: var(--white); display: grid; place-items: center; box-shadow: 0 12px 28px -8px rgba(18,140,75,.65); transition: transform .2s; }
.wa-float__btn:hover { transform: scale(1.06); }
.wa-float__btn svg { width: 32px; height: 32px; }
.wa-float__bubble { background: var(--white); color: var(--ink); padding: 10px 14px; border-radius: 14px 14px 4px 14px; font-size: .9rem; line-height: 1.35; box-shadow: 0 10px 30px -12px rgba(42,33,28,.4); max-width: 220px; margin: 0; opacity: 0; transform: translateX(8px); pointer-events: none; transition: opacity .3s, transform .3s; }
.wa-float__bubble.is-visible { opacity: 1; transform: none; pointer-events: auto; }
@media (prefers-reduced-motion: no-preference) {
  .wa-float__btn::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa); animation: ring 2.4s ease-out 3; pointer-events: none; }
  @keyframes ring { from { transform: scale(1); opacity: .7; } to { transform: scale(1.5); opacity: 0; } }
}
@media (max-width: 560px) { .wa-float { right: 14px; bottom: 14px; } .wa-float__bubble { display: none; } }

/* ---------- Página de tratamiento ---------- */
.crumbs { font-size: .88rem; color: var(--ink-soft); padding-top: 24px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--caramelo); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.svc-hero { padding: 28px 0 clamp(48px, 7vw, 90px); position: relative; overflow: hidden; }
.svc-hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.svc-hero .accent { color: var(--cafe); display: block; margin-bottom: 14px; }
.svc-hero h1 { font-size: clamp(2.5rem, 5.2vw, 4.3rem); font-weight: 700; text-transform: uppercase; line-height: .98; }
.svc-hero h1 small { display: block; font-family: var(--f-accent); font-weight: 400; text-transform: uppercase; letter-spacing: .16em; font-size: clamp(1rem, 1.5vw, 1.2rem); margin-top: .8em; color: var(--cafe); }
.svc-hero__lead { font-size: var(--step-1); color: var(--ink-soft); max-width: 40ch; line-height: 1.55; }
.svc-hero__media { position: relative; justify-self: end; width: 100%; max-width: 460px; }
.svc-hero__media .arch { aspect-ratio: 4 / 5; }
.svc-hero__media .mark { position: absolute; width: 64px; left: -24px; bottom: 28px; color: var(--caramelo); }
.svc-hero .hero__ctas { margin-top: 8px; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); margin: 28px 0 32px; border-top: 1px solid var(--line); }
.facts div { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: .85rem; color: var(--ink-soft); }
.facts dd { margin: 2px 0 0; font-weight: 600; }
.svc-body { display: grid; grid-template-columns: 1fr 340px; gap: clamp(32px, 6vw, 90px); align-items: start; }
.prose h2 { font-size: var(--step-3); margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.45rem; margin: 1.4em 0 .35em; color: var(--cafe-deep); }
.prose h2 + h3 { margin-top: .6em; }
.prose p { color: var(--ink-soft); max-width: 68ch; }
.olist { list-style: none; counter-reset: s; display: grid; gap: 18px; margin-bottom: 1.4em; }
.olist li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; gap: 14px; color: var(--ink-soft); }
.olist li::before { content: counter(s); font-family: var(--f-display); font-weight: 700; font-size: 1.7rem; line-height: 1; color: var(--cafe); }
.olist b { color: var(--ink); display: block; }
.aside { position: sticky; top: calc(var(--header-h) + 28px); background: var(--cafe-deep); color: var(--crema); border-radius: 22px; padding: 30px; overflow: hidden; }
.aside .mark { position: absolute; right: -18px; top: -10px; width: 90px; color: var(--white); opacity: .12; }
.aside h3 { font-size: 1.7rem; }
.aside p { color: rgba(245,239,232,.82); font-size: .96rem; }
.aside .btn { width: 100%; }
.aside small { display: block; margin-top: 14px; color: rgba(245,239,232,.7); font-size: .82rem; line-height: 1.45; }
.notice { background: var(--white); border-radius: 14px; padding: 18px 20px; font-size: .92rem; color: var(--ink-soft); margin-top: 28px; }
.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; list-style: none; }
.related a { text-decoration: none; display: block; }
.related .ph { border-radius: 200px 200px 14px 14px; overflow: hidden; aspect-ratio: 4 / 4.4; background: var(--sand); margin-bottom: 14px; }
.related img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.related a:hover img { transform: scale(1.04); }
.related h3 { font-size: 1.45rem; margin-bottom: .2em; }
.related p { color: var(--ink-soft); font-size: .94rem; margin: 0; }
@media (max-width: 900px) {
  .svc-hero__grid, .svc-body { grid-template-columns: 1fr; }
  .svc-hero__media { justify-self: center; max-width: 380px; }
  .aside { position: static; }
  .related { grid-template-columns: 1fr; }
}
@media (max-width: 480px) { .hero__ctas .btn { flex: 1 1 100%; } }

/* ---------- Páginas simples ---------- */
.page { padding: 48px 0 96px; }
.page h1 { font-size: var(--step-4); }
.page .prose { max-width: 760px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Ajustes de revisión ---------- */
.nav__list a, .nav .btn { white-space: nowrap; }
@media (max-width: 1280px) and (min-width: 1081px) { .nav { gap: 20px; } .nav__list { gap: 16px; } .nav__list a { font-size: .84rem; letter-spacing: .1em; } .brand svg, .brand img { height: 44px; width: auto; } }
.brand img { display: block; height: 50px; width: auto; }
.footer .brand img { height: auto; width: min(100%, 300px); }
@media (max-width: 480px) { .brand img { height: 40px; } }
.hero__mark { opacity: .12; }
@media (max-width: 860px) {
  .hero::before { display: none; }
  .hero__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(144,118,103,0) 45%, rgba(144,118,103,.75) 80%, var(--cafe) 100%); }
  .hero__content { margin-top: -40px; }
}
@media (max-width: 760px) { .quick .accent { font-size: .78rem; letter-spacing: .08em; } .quick__list { gap: 10px; } }
