/* =========================================================
   Dra. Kathy De La Guardia · Medicina Estética · v2
   ========================================================= */

/* ── Fuentes locales (sin Google, mejor para RGPD y velocidad) ── */
@font-face { font-family: 'DM Sans'; font-weight: 300; font-style: normal; font-display: swap; src: url(/fonts/dm-sans-300-normal.woff2) format('woff2'); }
@font-face { font-family: 'DM Sans'; font-weight: 400; font-style: normal; font-display: swap; src: url(/fonts/dm-sans-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'DM Sans'; font-weight: 500; font-style: normal; font-display: swap; src: url(/fonts/dm-sans-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'DM Sans'; font-weight: 600; font-style: normal; font-display: swap; src: url(/fonts/dm-sans-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'DM Sans'; font-weight: 300; font-style: italic; font-display: swap; src: url(/fonts/dm-sans-300-italic.woff2) format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-weight: 300; font-style: normal; font-display: swap; src: url(/fonts/cormorant-300-normal.woff2) format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-weight: 400; font-style: normal; font-display: swap; src: url(/fonts/cormorant-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-weight: 500; font-style: normal; font-display: swap; src: url(/fonts/cormorant-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-weight: 300; font-style: italic; font-display: swap; src: url(/fonts/cormorant-300-italic.woff2) format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-weight: 400; font-style: italic; font-display: swap; src: url(/fonts/cormorant-400-italic.woff2) format('woff2'); }

:root {
  --cream: #FBF8F4;
  --sand: #F4EEE6;
  --sand-2: #EDE4D8;
  --blush: #E8D7CA;
  --ink: #241E1A;
  --ink-2: #3A302A;
  --mid: #5E534B;
  --soft: #8A7E75;
  --accent: #9A7B5F;
  --accent-dark: #7B6049;
  --line: rgba(36, 30, 26, .1);
  --white: #fff;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'DM Sans', system-ui, -apple-system, sans-serif;
  --r-sm: 12px;
  --r: 20px;
  --r-lg: 32px;
  --shadow: 0 18px 50px -24px rgba(58, 40, 25, .35);
  --shadow-sm: 0 6px 20px -10px rgba(58, 40, 25, .25);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body { font-family: var(--sans); color: var(--ink); background: var(--cream); line-height: 1.7; font-size: 1.0625rem; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 200; }
.skip:focus { left: 8px; }

.container { width: min(1200px, 100% - 40px); margin-inline: auto; }
.container--narrow { width: min(820px, 100% - 40px); margin-inline: auto; }
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section--sand { background: var(--sand); }
.section--ink { background: var(--ink); color: #F3ECE4; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.08; letter-spacing: -.01em; }
h2 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
h3 { font-size: 1.6rem; }
em.serif, .serif-it { font-family: var(--serif); font-style: italic; font-weight: 300; }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .74rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.eyebrow::before { content: ''; width: 26px; height: 1px; background: currentColor; opacity: .6; }
.eyebrow--light { color: #D9C4AE; }
.lead { font-size: 1.15rem; color: var(--mid); max-width: 60ch; }

/* ── Botones ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 28px; border-radius: 999px; font-size: .92rem; font-weight: 500; letter-spacing: .01em; border: 1.5px solid transparent; cursor: pointer; transition: all .35s var(--ease); white-space: nowrap; }
.btn svg { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn-light { background: rgba(255,255,255,.95); color: var(--ink); }
.btn-light:hover { background: #fff; transform: translateY(-2px); }
.btn-ghost { border-color: rgba(255,255,255,.55); color: #fff; backdrop-filter: blur(6px); background: rgba(255,255,255,.08); }
.btn-ghost:hover { background: rgba(255,255,255,.2); border-color: #fff; }
.btn-outline { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-outline:hover { border-color: var(--ink); }
.btn-full { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: .92rem; color: var(--accent-dark); border-bottom: 1px solid transparent; transition: gap .3s var(--ease), border-color .3s; }
.link-arrow:hover { gap: 12px; border-color: currentColor; }
.link-arrow svg { width: 16px; height: 16px; }

/* ── Cabecera ── */
.header { position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h); display: flex; align-items: center; transition: background .4s var(--ease), box-shadow .4s, color .4s; color: #fff; }
.header.is-solid, .header.scrolled { background: rgba(251, 248, 244, .86); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.header-inner { display: flex; align-items: center; gap: 28px; width: min(1280px, 100% - 40px); margin-inline: auto; }
.logo { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.logo svg { width: 42px; height: 42px; flex: none; }
.logo-text { font-family: var(--serif); font-size: 1.32rem; line-height: 1; letter-spacing: .01em; }
.logo-text small { display: block; font-family: var(--sans); font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; opacity: .7; margin-top: 5px; }
.nav { display: flex; gap: 30px; font-size: .9rem; }
.nav a { position: relative; opacity: .9; padding: 6px 0; }
.nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }
.header .btn { padding: 11px 22px; font-size: .86rem; }
.header:not(.scrolled):not(.is-solid) .btn-primary { background: #fff; color: var(--ink); }
.hamburger { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative; }
.hamburger span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: currentColor; transition: transform .35s var(--ease), opacity .2s; }
.hamburger span:nth-child(1) { top: 16px; } .hamburger span:nth-child(2) { top: 22px; } .hamburger span:nth-child(3) { top: 28px; }
.menu-open .hamburger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .hamburger span:nth-child(2) { opacity: 0; }
.menu-open .hamburger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ── Hero ── */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: #2a221d; }
.hero-media, .hero-media video, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media img { z-index: 0; }
.hero-media video { z-index: 1; }
.hero::after { content: ''; position: absolute; inset: 0; z-index: 2; background: linear-gradient(180deg, rgba(20,15,12,.45) 0%, rgba(20,15,12,.05) 35%, rgba(20,15,12,.15) 55%, rgba(20,15,12,.78) 100%); }
.hero-inner { position: relative; z-index: 3; width: min(1280px, 100% - 40px); margin-inline: auto; padding-bottom: clamp(48px, 9vh, 96px); display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 40px; }
.hero-title { font-size: clamp(3rem, 8.4vw, 7rem); font-weight: 300; line-height: .98; margin-bottom: 22px; }
.hero-title em { font-style: italic; color: #EBD9C7; }
.hero-sub { font-size: clamp(1rem, 1.6vw, 1.18rem); max-width: 46ch; opacity: .92; margin-bottom: 32px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-card { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-radius: var(--r); padding: 22px 24px; max-width: 290px; font-size: .9rem; }
.hero-card strong { display: block; font-family: var(--serif); font-size: 2.4rem; font-weight: 400; line-height: 1; margin-bottom: 6px; }
.hero-card .stars { color: #F2D7A6; letter-spacing: 2px; }

/* ── Cinta de valores ── */
.marquee { background: var(--ink); color: #E9DDD0; overflow: hidden; padding: 18px 0; }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 40s linear infinite; font-family: var(--serif); font-style: italic; font-size: 1.35rem; }
.marquee-track span { display: inline-flex; align-items: center; gap: 48px; white-space: nowrap; }
.marquee-track span::after { content: '✦'; font-style: normal; font-size: .8rem; color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── Sobre mí ── */
.about-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.about-media { position: relative; }
.about-photo { border-radius: 260px 260px var(--r-lg) var(--r-lg); overflow: hidden; aspect-ratio: 4/5; box-shadow: var(--shadow); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.float-card { position: absolute; background: #fff; border-radius: var(--r); padding: 18px 22px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 14px; font-size: .86rem; line-height: 1.35; color: var(--mid); }
.float-card strong { font-family: var(--serif); font-size: 2.3rem; font-weight: 400; color: var(--ink); line-height: 1; }
.float-card--a { left: -28px; bottom: 56px; }
.float-card--b { right: -20px; top: 60px; }
.about-text h2 { margin-bottom: 26px; }
.about-text p { color: var(--mid); margin-bottom: 18px; }
.about-text p strong { color: var(--ink); font-weight: 500; }
.signature { font-family: var(--serif); font-style: italic; font-size: 1.9rem; color: var(--accent-dark); margin: 6px 0 28px; }

/* ── Trayectoria ── */
.cred { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 640px; }
.cred-text { padding: clamp(64px, 9vw, 120px) clamp(24px, 7vw, 100px); display: flex; flex-direction: column; justify-content: center; }
.cred-text h2 { margin-bottom: 24px; }
.cred-text p { color: rgba(243,236,228,.75); margin-bottom: 16px; max-width: 54ch; }
.cred-list { list-style: none; margin-top: 22px; display: grid; gap: 4px; }
.cred-list li { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.1); font-size: .98rem; }
.cred-list svg { width: 20px; height: 20px; color: #CDB094; flex: none; }
.cred-img { position: relative; overflow: hidden; }
.cred-img img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }

/* ── Tratamientos ── */
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 56px; flex-wrap: wrap; }
.section-head .lead { max-width: 46ch; }
.section-head--center { flex-direction: column; align-items: center; text-align: center; }
.treat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.treat-card { position: relative; background: #fff; border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; transition: transform .5s var(--ease), box-shadow .5s var(--ease); border: 1px solid var(--line); }
.treat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.treat-img { aspect-ratio: 16/11; overflow: hidden; position: relative; }
.treat-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.treat-card:hover .treat-img img { transform: scale(1.06); }
.treat-num { position: absolute; top: 14px; left: 14px; background: rgba(255,255,255,.9); backdrop-filter: blur(6px); border-radius: 999px; padding: 4px 12px; font-size: .74rem; font-weight: 500; letter-spacing: .08em; }
.treat-body { padding: 26px 26px 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.treat-tag { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 500; }
.treat-body p { color: var(--mid); font-size: .97rem; flex: 1; }
.treat-cta { margin-top: 48px; text-align: center; color: var(--mid); }
.treat-cta a { color: var(--ink); border-bottom: 1px solid var(--accent); }

/* ── La consulta ── */
.clinic-bento { display: grid; grid-template-columns: 1.5fr 1fr; grid-template-rows: 1fr 1fr; gap: 18px; height: clamp(420px, 56vw, 640px); }
.clinic-bento figure { border-radius: var(--r); overflow: hidden; position: relative; }
.clinic-bento figure:first-child { grid-row: span 2; }
.clinic-bento img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.clinic-bento figure:hover img { transform: scale(1.04); }
.clinic-info { display: flex; gap: 14px 40px; flex-wrap: wrap; margin-top: 28px; color: var(--mid); font-size: .95rem; }
.clinic-info span { display: inline-flex; align-items: center; gap: 10px; }
.clinic-info svg { width: 18px; height: 18px; color: var(--accent); }

/* ── Cita / filosofía ── */
.quote-band { position: relative; min-height: 78vh; display: flex; align-items: center; color: #fff; overflow: hidden; }
.quote-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.quote-band::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(25,19,15,.82), rgba(25,19,15,.25) 70%); }
.quote-band .container { position: relative; z-index: 1; }
.quote-band blockquote { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(2.2rem, 5.2vw, 4.4rem); line-height: 1.08; max-width: 16ch; margin-bottom: 22px; }
.quote-band p { opacity: .85; max-width: 40ch; }

/* ── Testimonios ── */
.rating-badge { display: inline-flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 10px 20px 10px 12px; font-size: .9rem; color: var(--mid); }
.rating-badge strong { background: var(--ink); color: #fff; border-radius: 999px; padding: 6px 12px; font-weight: 500; }
.stars { color: #C9A16E; letter-spacing: 2px; }
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.testi-card { background: #fff; border-radius: var(--r); padding: 34px 30px 28px; display: flex; flex-direction: column; gap: 18px; border: 1px solid var(--line); position: relative; }
.testi-card::before { content: '“'; position: absolute; top: 4px; right: 22px; font-family: var(--serif); font-size: 6rem; line-height: 1; color: var(--blush); }
.testi-card blockquote { font-family: var(--serif); font-size: 1.32rem; line-height: 1.4; color: var(--ink-2); flex: 1; }
.testi-who { display: flex; align-items: center; gap: 12px; font-size: .9rem; }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--blush); color: var(--accent-dark); display: grid; place-items: center; font-weight: 500; font-size: .95rem; flex: none; }
.testi-who small { display: block; color: var(--soft); font-size: .8rem; }
.testi-actions { margin-top: 44px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── Blog (tarjetas) ── */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post-card { display: flex; flex-direction: column; gap: 18px; }
.post-card-img { aspect-ratio: 4/3; border-radius: var(--r); overflow: hidden; background: var(--sand-2); }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.post-card:hover .post-card-img img { transform: scale(1.05); }
.post-meta { display: flex; gap: 10px; align-items: center; font-size: .8rem; color: var(--soft); flex-wrap: wrap; }
.chip { display: inline-block; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; color: var(--accent-dark); background: var(--sand); border-radius: 999px; padding: 5px 12px; }
.post-card h3 { font-size: 1.55rem; line-height: 1.15; }
.post-card h3 a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease); }
.post-card:hover h3 a { background-size: 100% 1px; }
.post-card p { color: var(--mid); font-size: .95rem; }

/* ── FAQ ── */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.faq-grid .sticky { position: sticky; top: calc(var(--header-h) + 30px); }
.faq-list { display: grid; gap: 12px; }
.faq-item { background: #fff; border-radius: var(--r-sm); border: 1px solid var(--line); transition: box-shadow .3s; }
.faq-item[open] { box-shadow: var(--shadow-sm); }
.faq-item summary { list-style: none; cursor: pointer; padding: 22px 64px 22px 26px; position: relative; font-weight: 500; font-size: 1.02rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ''; position: absolute; right: 22px; top: 50%; width: 28px; height: 28px; margin-top: -14px; border-radius: 50%; background: var(--sand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237B6049' stroke-width='2'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center/14px no-repeat; transition: transform .35s var(--ease); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-a { padding: 0 26px 24px; color: var(--mid); }

/* ── Contacto ── */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.contact-list { list-style: none; display: grid; gap: 6px; margin: 30px 0; }
.contact-list a, .contact-list span { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-list .ico { width: 44px; height: 44px; border-radius: 50%; background: #fff; display: grid; place-items: center; flex: none; border: 1px solid var(--line); }
.contact-list svg { width: 18px; height: 18px; color: var(--accent-dark); }
.contact-list small { display: block; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--soft); }
.form-card { background: #fff; border-radius: var(--r-lg); padding: clamp(26px, 4vw, 44px); box-shadow: var(--shadow); }
.form-card h3 { margin-bottom: 6px; }
.form-card > p { color: var(--mid); font-size: .95rem; margin-bottom: 24px; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-size: .8rem; font-weight: 500; color: var(--mid); }
.field input, .field select, .field textarea { width: 100%; border: 1px solid var(--line); background: var(--cream); border-radius: var(--r-sm); padding: 14px 16px; font-size: 1rem; transition: border-color .25s, background .25s, box-shadow .25s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 4px rgba(154,123,95,.14); }
.field textarea { resize: vertical; min-height: 120px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .88rem; color: var(--mid); margin: 6px 0 20px; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--ink); flex: none; }
.check a { text-decoration: underline; text-underline-offset: 3px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .78rem; color: var(--soft); margin-top: 14px; line-height: 1.5; }
.form-msg { display: none; margin-top: 16px; padding: 14px 18px; border-radius: var(--r-sm); font-size: .92rem; }
.form-msg.ok { display: block; background: #EEF3EA; color: #3D5A33; }
.form-msg.err { display: block; background: #F8EAE6; color: #8A3B2A; }
.form-done { text-align: center; padding: 40px 10px; }
.form-done svg { width: 56px; height: 56px; color: var(--accent); margin: 0 auto 16px; }
.rating-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.rating-input input { position: absolute; opacity: 0; pointer-events: none; }
.rating-input label { font-size: 2rem; line-height: 1; color: var(--sand-2); cursor: pointer; transition: color .2s, transform .2s; }
.rating-input label:hover, .rating-input label:hover ~ label, .rating-input input:checked ~ label { color: #C9A16E; }
.rating-input label:hover { transform: scale(1.12); }
.rating-input input:focus-visible + label { outline: 2px solid var(--accent); border-radius: 4px; }

.map { height: 420px; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ── Pie ── */
.footer { background: var(--ink); color: #D8CCC0; padding: 80px 0 34px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer .logo { color: #fff; margin-bottom: 18px; }
.footer h4 { font-family: var(--sans); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: #fff; font-weight: 500; margin-bottom: 18px; }
.footer ul { list-style: none; display: grid; gap: 10px; }
.footer a:hover { color: #fff; }
.footer-bottom { margin-top: 64px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .8rem; color: #A69A8E; }
.footer-bottom a { text-decoration: underline; text-underline-offset: 3px; }
.social { display: flex; gap: 10px; margin-top: 20px; }
.social a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); display: grid; place-items: center; transition: background .3s, border-color .3s; }
.social a:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.social svg { width: 18px; height: 18px; }

.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 30px -8px rgba(37,211,102,.6); transition: transform .3s var(--ease); }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 28px; height: 28px; }

/* ── Páginas interiores ── */
.page-hero { padding: calc(var(--header-h) + 70px) 0 60px; background: var(--sand); position: relative; overflow: hidden; }
.page-hero h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); font-weight: 300; max-width: 18ch; }
.page-hero p { color: var(--mid); margin-top: 18px; max-width: 58ch; font-size: 1.1rem; }
.breadcrumb { display: flex; gap: 8px; font-size: .82rem; color: var(--soft); margin-bottom: 22px; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--ink); }

.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 44px; }
.filters a { padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line); font-size: .86rem; background: #fff; transition: all .25s; }
.filters a:hover { border-color: var(--ink); }
.filters a.on { background: var(--ink); color: #fff; border-color: var(--ink); }

.featured-post { display: grid; grid-template-columns: 1.2fr 1fr; background: #fff; border-radius: var(--r-lg); overflow: hidden; margin-bottom: 64px; border: 1px solid var(--line); }
.featured-post .img { min-height: 420px; position: relative; }
.featured-post .img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.featured-post .body { padding: clamp(30px, 5vw, 60px); display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.featured-post h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
.featured-post p { color: var(--mid); }

/* Artículo */
.article-hero { padding-top: var(--header-h); background: var(--sand); }
.article-head { padding: 56px 0 44px; }
.article-head h1 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); font-weight: 400; line-height: 1.05; margin: 18px 0 28px; max-width: 22ch; }
.author { display: flex; align-items: center; gap: 14px; font-size: .9rem; }
.author img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; object-position: center 20%; }
.author small { display: block; color: var(--soft); }
.article-cover { width: min(1200px, 100% - 40px); margin: 0 auto; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 21/9; transform: translateY(40px); box-shadow: var(--shadow); background: var(--sand-2); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 72px; padding: 110px 0 90px; }
.prose { font-size: 1.1rem; line-height: 1.85; color: var(--ink-2); }
.prose > * + * { margin-top: 1.25em; }
.prose h2 { font-size: clamp(1.8rem, 3vw, 2.3rem); margin-top: 1.8em; color: var(--ink); }
.prose h3 { font-size: 1.5rem; margin-top: 1.5em; color: var(--ink); }
.prose a { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--accent); }
.prose blockquote { font-family: var(--serif); font-style: italic; font-size: 1.6rem; line-height: 1.35; color: var(--accent-dark); border-left: 2px solid var(--accent); padding: 4px 0 4px 26px; margin: 1.8em 0; }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 2.4em 0; }
.prose img { border-radius: var(--r); margin: 1.8em 0; height: auto; }
.prose iframe { width: 100%; aspect-ratio: 16/9; height: auto; border-radius: var(--r); }
.prose .ql-align-center { text-align: center; } .prose .ql-align-right { text-align: right; }
.prose strong { font-weight: 500; color: var(--ink); }
.sidebar { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; display: grid; gap: 24px; }
.side-cta { background: var(--ink); color: #EDE3D8; border-radius: var(--r); padding: 28px; }
.side-cta img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; object-position: center 20%; margin-bottom: 18px; border: 2px solid rgba(255,255,255,.2); }
.side-cta h3 { color: #fff; margin-bottom: 10px; font-size: 1.6rem; }
.side-cta p { font-size: .92rem; opacity: .8; margin-bottom: 20px; }
.side-box { background: #fff; border-radius: var(--r); padding: 26px; border: 1px solid var(--line); }
.side-box h4 { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--soft); margin-bottom: 14px; font-weight: 500; }
.side-box ul { list-style: none; display: grid; gap: 14px; }
.side-box li a { font-family: var(--serif); font-size: 1.2rem; line-height: 1.25; display: block; }
.side-box li a:hover { color: var(--accent-dark); }
.share { display: flex; gap: 8px; flex-wrap: wrap; }
.share a, .share button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 14px; font-size: .82rem; cursor: pointer; }
.share a:hover, .share button:hover { border-color: var(--ink); }
.preview-bar { position: sticky; top: var(--header-h); z-index: 50; background: #FFF4D6; color: #6B5313; text-align: center; padding: 10px; font-size: .9rem; }

/* Legales */
.legal { padding: 70px 0 110px; }
.legal h2 { font-size: 1.8rem; margin: 2em 0 .6em; }
.legal p, .legal li { color: var(--mid); margin-bottom: .9em; }
.legal ul { padding-left: 1.2em; }
.legal table { width: 100%; border-collapse: collapse; margin: 1em 0 1.6em; font-size: .92rem; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal .pending { background: #FFF4D6; color: #6B5313; padding: 2px 8px; border-radius: 6px; }

.empty { text-align: center; color: var(--soft); padding: 40px 0; }
.notfound { min-height: 80vh; display: grid; place-items: center; text-align: center; padding: calc(var(--header-h) + 40px) 20px 80px; background: var(--sand); }
.notfound h1 { font-size: clamp(5rem, 16vw, 11rem); font-weight: 300; color: var(--accent); line-height: 1; }

/* Animaciones de entrada (solo si hay JS y el usuario no pide menos movimiento) */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal-d1 { transition-delay: .1s; } .js .reveal-d2 { transition-delay: .2s; } .js .reveal-d3 { transition-delay: .3s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* ── Responsive ── */
@media (max-width: 1080px) {
  .nav { gap: 22px; }
  .treat-grid, .testi-grid, .post-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .article-wrap { grid-template-columns: 1fr; gap: 48px; }
  .sidebar { position: static; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  :root { --header-h: 68px; }
  .hamburger { display: block; }
  .nav { position: fixed; inset: var(--header-h) 0 auto; background: var(--cream); color: var(--ink); flex-direction: column; gap: 0; padding: 12px 20px 28px; box-shadow: 0 20px 40px -20px rgba(0,0,0,.25); transform: translateY(-12px); opacity: 0; pointer-events: none; transition: all .35s var(--ease); }
  .nav a { padding: 16px 4px; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav a::after { display: none; }
  .menu-open .nav { transform: none; opacity: 1; pointer-events: auto; }
  .menu-open .header { background: var(--cream); color: var(--ink); }
  .header .btn { display: none; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-card { display: none; }
  .about-grid, .cred, .faq-grid, .contact-grid, .featured-post { grid-template-columns: 1fr; }
  .about-media { max-width: 480px; margin: 0 auto; width: 100%; }
  .float-card--a { left: -6px; } .float-card--b { right: -6px; }
  .cred-img { height: 420px; order: -1; }
  .faq-grid .sticky { position: static; }
  .clinic-bento { grid-template-columns: 1fr 1fr; grid-template-rows: auto; height: auto; }
  .clinic-bento figure { aspect-ratio: 4/3; }
  .clinic-bento figure:first-child { grid-column: span 2; grid-row: auto; aspect-ratio: 16/10; }
  .featured-post .img { min-height: 260px; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .treat-grid, .testi-grid, .post-grid, .footer-grid, .field-row { grid-template-columns: 1fr; }
  .sidebar { grid-template-columns: 1fr; }
  .hero-ctas .btn { flex: 1; }
  .float-card { padding: 12px 16px; font-size: .78rem; }
  .float-card strong { font-size: 1.8rem; }
  .article-cover { aspect-ratio: 4/3; }
  .map { height: 320px; }
  .wa-float { width: 54px; height: 54px; right: 14px; bottom: 14px; }
}

/* Mapa con carga bajo demanda (sin cookies de Google hasta que se pulsa) */
.map { position: relative; background: var(--sand-2); }
.map-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; text-align: center; padding: 20px; color: var(--mid);
  background: radial-gradient(circle at 30% 40%, rgba(255,255,255,.6), transparent 60%), repeating-linear-gradient(45deg, var(--sand) 0 2px, transparent 2px 22px), var(--sand-2); }
.map-placeholder > svg { width: 36px; height: 36px; color: var(--accent); }
.map-placeholder small { font-size: .78rem; color: var(--soft); }
.map.loaded { filter: grayscale(.35) sepia(.12); }

/* ── Cookies: banner y configuración ── */
.ck-banner { position: fixed; left: 20px; bottom: 20px; z-index: 120; width: min(440px, calc(100% - 40px)); background: rgba(255,255,255,.97); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 24px 60px -20px rgba(36,30,26,.45); padding: 22px 22px 18px; color: var(--ink); animation: ckIn .5s var(--ease); }
.ck-banner[hidden] { display: none; }
@keyframes ckIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.ck-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.ck-head strong { font-family: var(--serif); font-weight: 500; font-size: 1.35rem; line-height: 1.1; }
.ck-icon { width: 40px; height: 40px; border-radius: 50%; background: var(--sand); color: var(--accent-dark); display: grid; place-items: center; flex: none; }
.ck-icon svg { width: 22px; height: 22px; }
.ck-banner p { font-size: .9rem; color: var(--mid); line-height: 1.55; }
.ck-banner p a, .ck-intro a { text-decoration: underline; text-underline-offset: 3px; color: var(--ink); }
.ck-actions { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.ck-actions .btn { flex: 1; padding: 11px 14px; font-size: .85rem; }
.ck-modal { border: 0; border-radius: var(--r-lg); padding: 0; width: min(560px, calc(100% - 32px)); max-height: calc(100svh - 40px); margin: auto; box-shadow: 0 40px 90px -30px rgba(0,0,0,.5); color: var(--ink); background: var(--cream); }
.ck-modal::backdrop { background: rgba(36,30,26,.5); backdrop-filter: blur(3px); }
.ck-modal-body { padding: 28px; }
.ck-modal-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ck-modal-top h3 { font-size: 1.9rem; }
.ck-x { border: 0; background: var(--sand); width: 38px; height: 38px; border-radius: 50%; font-size: 1.4rem; cursor: pointer; line-height: 1; }
.ck-intro { font-size: .92rem; color: var(--mid); margin: 10px 0 18px; }
.ck-cat { display: flex; justify-content: space-between; align-items: center; gap: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 16px 18px; margin-bottom: 10px; cursor: pointer; }
.ck-cat strong { font-weight: 500; }
.ck-cat p { font-size: .84rem; color: var(--mid); margin-top: 4px; line-height: 1.5; }
.ck-always { font-size: .75rem; font-weight: 500; color: var(--accent-dark); background: var(--sand); border-radius: 999px; padding: 5px 10px; white-space: nowrap; }
.ck-switch { position: relative; width: 46px; height: 26px; flex: none; }
.ck-switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.ck-switch span { position: absolute; inset: 0; background: var(--sand-2); border-radius: 999px; transition: background .25s; }
.ck-switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .25s var(--ease); }
.ck-switch input:checked + span { background: var(--ink); }
.ck-switch input:checked + span::after { transform: translateX(20px); }
.ck-switch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.footer-bottom button.link { background: none; border: 0; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 0; }
@media (max-width: 640px) {
  .ck-banner { left: 12px; right: 12px; bottom: 12px; width: auto; padding: 18px; }
  .ck-actions .btn { flex: 1 1 100%; }
  .ck-actions .btn[data-ck="accept"] { order: -1; }
  .ck-modal-body { padding: 22px 18px; }
}
