@import url('/fonts/jost/jost.css');

/* ═══════════════════════════════════════════════════════════════
   Armonía Dental — consultorio dental en una sola página
   Secciones oscuras (.dark) que alternan con secciones crema (.light); títulos grandes y livianos, fotos reales.
   Re-tematizar = cambiar los tokens de :root (o elegir una paleta en «Ajustes › Colores de tu web»).
   Los iconos .i-* los genera build.py.
   ═══════════════════════════════════════════════════════════════ */
:root {
  --dark: #0F1B66;
  --dark-2: #18267F;
  --light: #F1EEE4;
  --card: #FFFFFF;
  --ink-d: #FFFFFF;
  --ink-d2: #C9CEEA;
  --ink-l: #0F1B66;
  --ink-l2: #4A5280;
  --acc-d: #9FB4FF;
  --acc-l: #2F45C4;
  --line-d: #3A4AA3;
  --line-l: #D8D4C6;
  --wrap: 1240px;
  --head-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html, body, button, input, select, textarea { font-family: 'Jost', 'Montserrat', system-ui, sans-serif; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 8px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--dark); color: var(--ink-d); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4, p, figure, ul, ol, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--acc-d); outline-offset: 3px; }
.light :focus-visible { outline-color: var(--acc-l); }
.wrap { width: min(var(--wrap), 100%); margin-inline: auto; padding-inline: 16px; }
@media (min-width: 700px) { .wrap { padding-inline: 40px; } }
.skip-link { position: absolute; left: 12px; top: -80px; z-index: 200; padding: 12px 18px; background: var(--card); color: var(--ink-l); }
.skip-link:focus { top: 12px; }
.i { display: inline-block; flex: none; width: 20px; height: 20px; background: currentColor; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }

/* ─── Secciones: oscuras y claras alternadas ─── */
.sec { padding: clamp(64px, 9vw, 128px) 0; }
.sec.dark { background: var(--dark); color: var(--ink-d); }
.sec.light { background: var(--light); color: var(--ink-l); }
.eyebrow { font-size: .74rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-d2); }
.light .eyebrow { color: var(--ink-l2); }
.sec-title { font-size: clamp(2.1rem, 4.4vw, 3.6rem); font-weight: 400; letter-spacing: -.03em; line-height: 1.08; max-width: 18ch; }
.sec-lead { color: var(--ink-d2); font-size: 1.02rem; max-width: 56ch; }
.light .sec-lead { color: var(--ink-l2); }
.sec-head { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); grid-template-areas: 'eb eb' 'tt ld'; gap: 20px clamp(32px, 6vw, 96px); align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.sec-head .eyebrow { grid-area: eb; }
.sec-head-l { grid-area: tt; }
.sec-head > .sec-lead { grid-area: ld; }
@media (max-width: 860px) { .sec-head { grid-template-columns: 1fr; grid-template-areas: 'eb' 'tt' 'ld'; } }

/* ─── Botones ─── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 26px; border: 1px solid transparent; border-radius: 999px; font-size: .95rem; font-weight: 500; text-decoration: none; cursor: pointer; transition: background-color .25s, color .25s, border-color .25s; }
.btn .i { width: 18px; height: 18px; }
.btn-lg { min-height: 54px; padding-inline: 32px; }
.btn-solid { background: var(--card); color: var(--ink-l); }
.btn-solid:hover { background: var(--acc-d); color: var(--dark); }
.btn-line { border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn-line:hover { background: #fff; color: var(--dark); }
.btn-dark { background: var(--dark); color: var(--ink-d); }
.btn-dark:hover { background: var(--dark-2); }
.btn-outline { border-color: var(--ink-l); color: var(--ink-l); }
.btn-outline:hover { background: var(--ink-l); color: var(--light); }

/* ─── Cabecera: transparente sobre el hero, azul al bajar ─── */
.header { position: sticky; top: 0; z-index: 60; height: var(--head-h); background: color-mix(in srgb, var(--dark) 94%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: background-color .35s; }
.header-inner { display: flex; align-items: center; gap: 20px; height: 100%; }
.header.is-over { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.logo { font-size: 1.5rem; font-weight: 500; letter-spacing: -.03em; text-decoration: none; white-space: nowrap; color: #fff; }
.logo img { max-height: 44px; width: auto; }
.main-menu { display: flex; align-items: center; justify-content: center; gap: 2px; margin-inline: auto; }
.main-menu a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 12px; font-size: .92rem; font-weight: 500; text-decoration: none; color: #fff; border-radius: 999px; transition: background-color .2s, color .2s; }
.main-menu a:hover { background: rgba(255, 255, 255, .14); }
.main-menu a[aria-current="true"] { background: rgba(255, 255, 255, .2); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.btn-head { min-height: 44px; padding: 8px 22px; background: var(--card); color: var(--ink-l); font-size: .92rem; }
.btn-head:hover { background: var(--acc-d); color: var(--dark); }
.nav-toggle { display: none; width: 46px; height: 46px; border: 0; background: transparent; cursor: pointer; padding: 0; align-items: center; justify-content: center; flex-direction: column; gap: 6px; }
.nav-toggle span { display: block; width: 24px; height: 1.5px; background: #fff; }
@media (max-width: 1140px) {   /* 7 enlaces: por debajo de 1140 px se parten en dos líneas */
  .main-menu { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 8px 16px 20px; background: var(--dark); border-top: 1px solid var(--line-d); }
  .main-menu.menu-open { display: flex; }
  .main-menu a { min-height: 52px; padding: 12px 4px; font-size: 1rem; border-radius: 0; border-bottom: 1px solid var(--line-d); }
  .main-menu a[aria-current="true"] { background: transparent; color: var(--acc-d); }
  .nav-toggle { display: inline-flex; }
  .header-actions { margin-left: auto; }
}
@media (max-width: 560px) { .btn-head { display: none; } :root { --head-h: 66px; } .header-actions { margin-left: auto; } }

/* ─── Hero: foto a sangre con el texto encima ─── */
.hero { position: relative; height: min(100svh, 920px); min-height: 600px; margin-top: calc(-1 * var(--head-h)); color: #fff; background: #0a1030; overflow: hidden; }
.hero-slides { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease; }
.hero-slide.is-on { opacity: 1; z-index: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.07); transition: transform 8s linear; }
.hero-slide.is-on img { transform: scale(1); }
.hero-cap { position: absolute; right: 40px; bottom: 36px; z-index: 3; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .7); }
.hero-overlay { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: flex-end; pointer-events: none; --shade: .62;
  background: linear-gradient(180deg, color-mix(in srgb, var(--dark) 70%, transparent) 0%, transparent 26%, transparent 34%, color-mix(in srgb, var(--dark) calc(var(--shade) * 100%), transparent) 100%),
              linear-gradient(90deg, color-mix(in srgb, var(--dark) calc(var(--shade) * 90%), transparent) 0%, transparent 70%); }
.hero.is-light .hero-overlay { --shade: .82; }
.hero-overlay :is(p, h1, a, button, span) { pointer-events: auto; }
.hero-inner { padding-bottom: clamp(48px, 9vh, 96px); }
.hero-text { max-width: 880px; text-shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 2px 26px rgba(0, 0, 0, .3); }
.hero-eyebrow { font-size: .78rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; }
.hero-title { margin-top: 16px; font-size: clamp(2.8rem, 7.4vw, 6.2rem); font-weight: 400; line-height: .98; letter-spacing: -.04em; }
.hero-title span { display: block; }
.hero-lead { margin-top: 22px; max-width: 46ch; font-size: 1.15rem; }
.hero-text .btn { text-shadow: none; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-dots { position: absolute; left: 50%; bottom: 14px; z-index: 3; display: flex; gap: 2px; transform: translateX(-50%); }
.hero-dots button { position: relative; width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; }
.hero-dots button::before { content: ''; position: absolute; left: 6px; right: 6px; top: 50%; height: 2px; background: rgba(255, 255, 255, .45); }
.hero-dots button[aria-current="true"]::before { background: #fff; }
.rv-on .hero-text > * { opacity: 0; transform: translateY(24px); animation: heroIn 1s var(--ease) forwards; }
.rv-on .hero-text > :nth-child(2) { animation-delay: .12s; }
.rv-on .hero-text > :nth-child(3) { animation-delay: .24s; }
.rv-on .hero-text > :nth-child(4) { animation-delay: .36s; }
@keyframes heroIn { to { opacity: 1; transform: none; } }
@media (max-width: 700px) {
  .hero { min-height: 640px; }
  .hero-cap, .hero-dots { display: none; }
  .hero-ctas .btn { flex: 1 1 auto; padding-inline: 18px; }
}

/* Editor: las fotos de la portada a la vista */
.hero-edit { display: none; }
body:not(.tm-preview-mode) #tm-template-container .hero-edit { position: absolute; top: calc(var(--head-h) + 16px); right: 16px; z-index: 4; display: grid; gap: 10px; width: min(340px, calc(100% - 32px)); padding: 14px; border-radius: 14px; background: rgba(8, 12, 36, .8); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #fff; pointer-events: auto; font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }
.hero-edit-t { font-size: .9rem; }
.hero-edit-t small { display: block; margin-top: 2px; font-size: .78rem; color: rgba(255, 255, 255, .8); }
.hero-thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-thumbs button { position: relative; width: 64px; height: 48px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: #000; cursor: pointer; }
.hero-thumbs button[aria-current="true"] { border-color: #fff; }
.hero-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.hero-thumbs span { position: absolute; left: 4px; bottom: 2px; font-size: .75rem; font-weight: 700; text-shadow: 0 1px 3px rgba(0, 0, 0, .8); }
.hero-edit-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-edit-del { min-height: 40px; padding: 8px 14px; border: 0; border-radius: 999px; background: transparent; color: #ffb4a8; font-size: .85rem; font-weight: 600; cursor: pointer; }
.hero-edit-del:hover { background: rgba(255, 255, 255, .12); }
.hero-edit-add { min-height: 40px; padding: 8px 14px; border: 1px dashed rgba(255, 255, 255, .7); border-radius: 999px; background: transparent; color: #fff; font-size: .85rem; font-weight: 600; cursor: pointer; }
.hero-edit-add:hover { background: rgba(255, 255, 255, .15); }

/* ─── Aparecer al desplazarte (script.js pone .rv-on solo en la web publicada y la vista previa) ─── */
.rv-on [data-rv] { opacity: 0; transition: opacity 1s var(--ease), transform 1.2s var(--ease); transition-delay: var(--d, 0s); }
.rv-on [data-rv="up"] { transform: translateY(40px); }
.rv-on [data-rv="img"] { transform: translateY(32px) scale(1.04); }
.rv-on [data-rv].rv-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rv-on [data-rv], .rv-on .hero-text > * { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
  .hero-slide img { transition: none; transform: none; }
  html { scroll-behavior: auto; }
}

/* ─── Tira de fotos ─── */
.strip { background: var(--dark); padding: 12px 0; }
.strip-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(190px, 45%), 1fr)); gap: 12px; padding-inline: 12px; }
.strip-photo { overflow: hidden; aspect-ratio: 4 / 3; border-radius: 4px; }
.strip-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.strip-photo:hover img { transform: scale(1.05); }
.strip { overflow: hidden; }
.tel-toast { position: fixed; left: 50%; bottom: 28px; z-index: 90; transform: translate(-50%, 16px); padding: 12px 20px; border-radius: 999px; background: var(--dark); color: #fff; font-size: .95rem; box-shadow: 0 10px 30px rgba(0,0,0,.25); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; }
.tel-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.strip-grid.is-marquee { display: flex; align-items: flex-start; gap: 0; padding-inline: 0; width: max-content; animation: stripRight 60s linear infinite; }
.strip-grid.is-marquee .strip-photo { flex: none; width: clamp(220px, 24vw, 320px); margin-right: 12px; }
.strip-grid.is-marquee:hover { animation-play-state: paused; }
@keyframes stripRight { from { transform: translateX(-50%); } to { transform: translateX(0); } }

/* ─── Nosotros ─── */
.about-head { grid-template-areas: 'eb eb' 'tt tx'; align-items: start; }
.about-text { grid-area: tx; display: grid; gap: 16px; }
@media (max-width: 860px) { .about-head { grid-template-areas: 'eb' 'tt' 'tx'; } }
.about-photos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 16px; }
.about-photos figure { overflow: hidden; aspect-ratio: 3 / 2; border-radius: 4px; }
.about-photos img { width: 100%; height: 100%; object-fit: cover; }

/* ─── Odontólogo ─── */
.doc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: 'card photo' 'banner note'; gap: 20px; align-items: stretch; }
.doc-card { grid-area: card; display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: clamp(24px, 3vw, 40px); background: var(--card); border-radius: 6px; }
.doc-role { font-size: .74rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-l2); }
.doc-bio { font-size: 1.05rem; color: var(--ink-l); max-width: 52ch; }
.doc-photo { grid-area: photo; position: relative; overflow: hidden; border-radius: 6px; min-height: 420px; }
.doc-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.doc-banner { grid-area: banner; position: relative; overflow: hidden; min-height: 320px; border-radius: 6px; background: var(--dark); isolation: isolate; }
.doc-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.doc-banner::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, color-mix(in srgb, var(--dark) 40%, transparent), color-mix(in srgb, var(--dark) 88%, transparent)); }
.doc-banner-t { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(20px, 2.6vw, 32px); color: #fff; }
.doc-banner-eyebrow { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; }
.doc-banner-title { margin-top: 8px; font-size: clamp(1.4rem, 2.2vw, 1.9rem); line-height: 1.15; letter-spacing: -.02em; max-width: 22ch; }
.doc-note { grid-area: note; display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: clamp(24px, 3vw, 40px); background: var(--card); border-radius: 6px; }
.doc-note-eyebrow { font-size: .74rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-l2); }
.doc-note-title { font-size: clamp(1.4rem, 2.2vw, 1.9rem); line-height: 1.15; letter-spacing: -.02em; color: var(--ink-l); max-width: 26ch; }
@media (max-width: 860px) { .doc-grid { grid-template-columns: 1fr; grid-template-areas: 'photo' 'card' 'banner' 'note'; } .doc-photo { min-height: 0; aspect-ratio: 4 / 4.6; } }

/* ─── Opiniones ─── */
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 16px; }
.rev { display: flex; flex-direction: column; gap: 18px; padding: clamp(22px, 2.6vw, 32px); border: 1px solid var(--line-d); border-radius: 6px; background: var(--dark-2); }
.stars { display: block; width: 100px; height: 20px; background: linear-gradient(90deg, var(--acc-d) calc(var(--r, 5) / 5 * 100%), var(--line-d) 0); -webkit-mask: var(--i-stars) left center / 100px 20px no-repeat; mask: var(--i-stars) left center / 100px 20px no-repeat; }
.rev-q { font-size: 1.1rem; line-height: 1.5; }
.rev-by { display: flex; flex-wrap: wrap; gap: 2px 10px; margin-top: auto; font-size: .88rem; color: var(--ink-d2); }
.rev-n { color: var(--ink-d); font-weight: 500; }
.rev-foot { margin-top: 28px; color: var(--ink-d2); font-size: .98rem; }

/* ─── Servicios ─── */
.srv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 16px; }
.srv { display: flex; flex-direction: column; overflow: hidden; background: var(--card); color: var(--ink-l); border-radius: 6px; }
.srv-img { overflow: hidden; aspect-ratio: 16 / 10; }
.srv-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.srv:hover .srv-img img { transform: scale(1.05); }
.srv-body { display: flex; flex-direction: column; flex: 1; gap: 8px; padding: 20px 22px 22px; }
.srv-name { font-size: 1.3rem; font-weight: 500; letter-spacing: -.02em; line-height: 1.2; }
.srv-line { color: var(--ink-l2); font-size: .98rem; }
.srv-link { display: inline-flex; align-items: center; align-self: flex-start; min-height: 44px; margin-top: auto; padding-top: 8px; font-weight: 500; text-decoration: none; color: var(--acc-l); }
.srv-link::after { content: '→'; margin-left: 8px; transition: transform .25s var(--ease); }
.srv-link:hover::after { transform: translateX(4px); }

/* ─── Tu primera visita ─── */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 16px; }
.plan { display: flex; flex-direction: column; gap: 14px; padding: clamp(24px, 3vw, 40px); background: var(--card); border-radius: 6px; color: var(--ink-l); }
.plan-tag { font-size: .74rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--acc-l); }
.plan-name { font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 400; letter-spacing: -.03em; line-height: 1.1; }
.plan-for { color: var(--ink-l2); }
.plan-list { display: grid; gap: 4px; margin: 8px 0 14px; }
.plan-item { display: flex; align-items: flex-start; gap: 12px; padding: 6px 0; }
.plan-item .i { margin-top: 4px; color: var(--acc-l); }
.plan .btn { align-self: flex-start; margin-top: auto; }

/* ─── Ubicación ─── */
.loc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.loc-text { display: grid; gap: 18px; justify-items: start; }
.c-info { display: grid; gap: 2px; width: 100%; margin-top: 8px; }
.c-info li { display: flex; align-items: center; gap: 14px; min-height: 44px; color: var(--ink-d2); }
.c-info a { display: inline-flex; align-items: center; gap: 14px; min-height: 44px; text-decoration: none; }
.c-info a:hover { color: var(--acc-d); }
.c-info .i { color: var(--acc-d); }
.tm-map-wrapper { position: relative; width: 100%; aspect-ratio: 4 / 3.4; overflow: hidden; border-radius: 6px; background: #E9E6DB; }
/* The editor gives .tm-map-wrapper a fixed 350px height; with the aspect-ratio that forces a 412px width on phones */
.map-block .tm-map-wrapper { height: auto; }
.tm-map-wrapper iframe { width: 100%; height: 100%; border: 0; display: block; pointer-events: none; }
.tm-map-wrapper img { width: 100%; height: 100%; object-fit: cover; }
.tm-map-trigger { position: absolute; inset: 0; z-index: 5; }
.districts { display: grid; justify-items: center; gap: 14px; margin-top: clamp(40px, 6vw, 72px); text-align: center; }
.dist-label { font-size: .95rem; color: var(--ink-d2); }
.dist-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.dist-item { padding: 10px 26px; border: 1px solid var(--line-d); border-radius: 999px; font-size: .95rem; }
@media (max-width: 860px) { .loc-grid { grid-template-columns: 1fr; } }

/* ─── Cierre ─── */
.cta { padding-block: clamp(72px, 10vw, 150px); border-top: 1px solid var(--line-d); }
.cta-in { display: grid; justify-items: center; gap: 22px; text-align: center; }
.cta-title { max-width: 20ch; font-size: clamp(2.2rem, 5vw, 4.2rem); font-weight: 400; letter-spacing: -.03em; line-height: 1.06; }
.cta-lead { max-width: 54ch; color: var(--ink-d2); }
.cta .hero-ctas { justify-content: center; }

/* ─── Pie ─── */
.footer { background: var(--dark); border-top: 1px solid var(--line-d); padding: clamp(48px, 7vw, 88px) 0 24px; color: var(--ink-d); }
.ft-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px; padding-bottom: 40px; }
.ft-logo { font-size: 1.8rem; font-weight: 400; letter-spacing: -.03em; margin-bottom: 8px; }
.ft-title { margin: 14px 0 4px; font-size: .74rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-d2); }
.ft-text { display: block; max-width: 40ch; color: var(--ink-d); font-size: .98rem; text-decoration: none; }
.ft-nav, .ft-contact { display: flex; flex-direction: column; align-items: flex-start; }
.ft-nav .ft-title, .ft-contact .ft-title { margin-top: 0; }
.ft-nav a, .ft-contact a { display: inline-flex; align-items: center; min-height: 40px; text-decoration: none; color: var(--ink-d); font-size: .95rem; }
.ft-nav a:hover, .ft-contact a:hover { color: var(--acc-d); }
.ft-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; border-top: 1px solid var(--line-d); font-size: .85rem; color: var(--ink-d2); }
.ft-legal { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-d2); }
@media (max-width: 760px) { .ft-grid { grid-template-columns: 1fr; } }

/* ─── Barra móvil ─── */
.mbar { display: none; }
@media (max-width: 760px) {
  .mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 6px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: var(--dark); border-top: 1px solid var(--line-d); }
  .mbar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; font-size: .88rem; text-decoration: none; color: #fff; }
  .mbar .i { width: 18px; height: 18px; }
  .mbar .mbar-wa { background: var(--card); color: var(--ink-l); border-radius: 999px; font-weight: 500; }
  .footer { padding-bottom: 96px; }
}
body:not(.tm-preview-mode) #tm-template-container .footer { padding-bottom: 110px; }

/* ─── Iconos de interfaz: generados por build.py (máscaras CSS, no son <svg> editables) ─── */
:root {
  --i-wa: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413z'/%3E%3C/svg%3E");
  --i-mail: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='3'/%3E%3Cpath d='M3 7l9 6 9-6'/%3E%3C/svg%3E");
  --i-pin: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12S4 16 4 10a8 8 0 0 1 16 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
  --i-clock: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E");
  --i-phone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2A19.800 19.800 0 0 1 11.200 19a19.500 19.500 0 0 1-6-6A19.800 19.800 0 0 1 2.100 4.200 2 2 0 0 1 4.100 2h3a2 2 0 0 1 2 1.700c.1 1 .4 1.900.7 2.800a2 2 0 0 1-.5 2.100L8.100 9.900a16 16 0 0 0 6 6l1.300-1.300a2 2 0 0 1 2.100-.5c.9.300 1.900.6 2.800.7a2 2 0 0 1 1.700 2z'/%3E%3C/svg%3E");
  --i-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.500l4.500 4.500L19 7.500'/%3E%3C/svg%3E");
  --i-stars: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 20'%3E%3Cpath transform='translate%280 0%29' d='M10 1.500l2.600 5.400 5.900.8-4.300 4.100 1 5.900L10 14.900 4.800 17.700l1-5.900L1.500 7.700l5.900-.8z'/%3E%3Cpath transform='translate%2820 0%29' d='M10 1.500l2.600 5.400 5.900.8-4.300 4.100 1 5.900L10 14.900 4.800 17.700l1-5.900L1.500 7.700l5.900-.8z'/%3E%3Cpath transform='translate%2840 0%29' d='M10 1.500l2.600 5.400 5.900.8-4.300 4.100 1 5.900L10 14.900 4.800 17.700l1-5.900L1.500 7.700l5.900-.8z'/%3E%3Cpath transform='translate%2860 0%29' d='M10 1.500l2.600 5.400 5.900.8-4.300 4.100 1 5.900L10 14.900 4.800 17.700l1-5.900L1.500 7.700l5.900-.8z'/%3E%3Cpath transform='translate%2880 0%29' d='M10 1.500l2.600 5.400 5.900.8-4.300 4.100 1 5.900L10 14.900 4.800 17.700l1-5.900L1.500 7.700l5.900-.8z'/%3E%3C/svg%3E");
}
.i-wa { --i: var(--i-wa); }
.i-mail { --i: var(--i-mail); }
.i-pin { --i: var(--i-pin); }
.i-clock { --i: var(--i-clock); }
.i-phone { --i: var(--i-phone); }
.i-check { --i: var(--i-check); }
