/* =============================================================================
   HOLADOOR — sitio comercial (holadoor.com)
   Misma identidad «Etiqueta» que la app (frontend/css/styles.css): negro de
   esmoquin, marfil de invitación, champán para los detalles, botones cápsula,
   Gilda Display para los títulos y Parisienne para la cursiva de acento.
   Sin JavaScript: el menú del celular y el selector de idioma son <details>.
   ============================================================================= */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/s/fuentes/inter.woff2?v=f11d729bb0") format("woff2"); }
@font-face { font-family: "Gilda Display"; font-style: normal; font-weight: 400; font-display: swap; src: url("/s/fuentes/gilda-display.woff2?v=a43dd7d02b") format("woff2"); }
@font-face { font-family: "Parisienne"; font-style: normal; font-weight: 400; font-display: swap; src: url("/s/fuentes/parisienne.woff2?v=d3e437dc95") format("woff2"); }

:root {
  --ink: #15131a;
  --ink-2: #221f28;
  --ivory: #f7f3ec;
  --paper: #fffdf9;
  --champagne: #c9a86a;
  --gold-ink: #7d6235;       /* champán legible sobre marfil (contraste 5,5:1) */
  --text: #15131a;
  --text-2: #5e574d;
  --on-ink: #f7f3ec;
  --on-ink-2: #d9d1c4;
  --line: rgba(40, 32, 20, 0.14);
  --line-ink: rgba(247, 243, 236, 0.16);
  --fill: rgba(60, 48, 30, 0.06);
  --ok: #1d6b3d;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Gilda Display", "Didot", Georgia, serif;
  --font-script: "Parisienne", "Snell Roundhand", cursive;
  --r: 14px; --r-lg: 20px; --r-pill: 999px;
  --shadow: 0 1px 2px rgba(21, 19, 26, 0.05), 0 10px 30px rgba(21, 19, 26, 0.07);
  --wrap: 1160px;
  color-scheme: light;
}

/* ---------- Base ----------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { margin: 0; background: var(--ivory); color: var(--text); font: 400 1rem/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 3px; }
h1, h2, h3 { margin: 0; line-height: 1.15; text-wrap: balance; font-weight: 400; }
h1, h2 { font-family: var(--font-display); letter-spacing: 0.005em; }
h1 { font-size: clamp(2.2rem, 1.4rem + 3.4vw, 3.9rem); }
h2 { font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.6rem); }
h3 { font-size: 1.08rem; font-weight: 650; line-height: 1.3; }
p { margin: 0; }
ul, ol { margin: 0; }
:focus-visible { outline: 3px solid var(--champagne); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--on-ink); padding: 10px 16px; border-radius: var(--r-pill); }
.skip:focus { top: 12px; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.eyebrow { font-size: 0.74rem; font-weight: 650; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-ink); }
.script { font-family: var(--font-script); font-weight: 400; color: var(--champagne); line-height: 1; font-size: clamp(2rem, 1.5rem + 1.8vw, 3rem); }
.lead { font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem); color: var(--text-2); max-width: 60ch; }
.muted { color: var(--text-2); }
.small { font-size: 0.9rem; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.stack { display: grid; gap: 14px; }
.stack-lg { display: grid; gap: 22px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* ---------- Botones «Etiqueta» -------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 26px; border-radius: var(--r-pill);
  border: 1px solid var(--ink); background: transparent; color: var(--ink); font: 650 0.78rem/1 var(--font); letter-spacing: 0.13em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap; transition: background-color .15s, color .15s, border-color .15s; }
.btn:hover { background: rgba(21, 19, 26, 0.08); }
.btn.primary { background: var(--ink); color: var(--on-ink); }
.btn.primary:hover { background: #2b2731; }
.btn.gold { background: var(--champagne); border-color: var(--champagne); color: var(--ink); }
.btn.gold:hover { background: #d6b87e; border-color: #d6b87e; }
.btn.light { border-color: var(--champagne); color: var(--on-ink); }
.btn.light:hover { background: rgba(201, 168, 106, 0.16); }
.btn.sm { min-height: 40px; padding: 0 18px; font-size: 0.72rem; letter-spacing: 0.11em; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.center .btn-row { justify-content: center; }
.note { font-size: 0.88rem; color: var(--text-2); }
.dark .note { color: var(--on-ink-2); }

/* ---------- Encabezado ----------------------------------------------------- */
.top { position: sticky; top: 0; z-index: 20; background: rgba(247, 243, 236, 0.94); border-bottom: 1px solid var(--line); }
@supports (backdrop-filter: blur(8px)) { .top { background: rgba(247, 243, 236, 0.82); backdrop-filter: blur(10px); } }
.top .wrap { display: flex; align-items: center; gap: 18px; min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.logo-word { font-family: var(--font-display); font-size: 1.6rem; line-height: 1; letter-spacing: 0.01em; }
.logo img { width: auto; height: 34px; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a { text-decoration: none; padding: 8px 10px; border-radius: 8px; font-size: 0.93rem; color: var(--text-2); }
.nav > a, .drop > summary { white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"], .drop > summary:hover, .drop > summary[aria-current="page"] { color: var(--ink); background: var(--fill); }
.drop { position: relative; }
.drop > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; padding: 8px 10px; border-radius: 8px; font-size: 0.93rem; color: var(--text-2); }
.drop > summary::-webkit-details-marker { display: none; }
.drop > summary svg { width: 15px; height: 15px; }
.drop-list { position: absolute; left: 0; top: calc(100% + 6px); min-width: 230px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 6px; display: grid; z-index: 30; }
.drop-list a { padding: 10px 12px; }
.top-cta { display: flex; gap: 8px; align-items: center; }
.menu, .lang { position: relative; }
.menu > summary, .lang > summary { list-style: none; cursor: pointer; }
.menu > summary::-webkit-details-marker, .lang > summary::-webkit-details-marker { display: none; }
.menu { display: none; margin-left: auto; }
.menu > summary { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: var(--r-pill); border: 1px solid var(--line); }
.menu > summary svg { width: 22px; height: 22px; }
.menu-panel { position: absolute; right: 0; top: calc(100% + 8px); width: min(320px, calc(100vw - 32px)); background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 12px; display: grid; gap: 2px; }
.menu-panel a:not(.btn) { text-decoration: none; padding: 12px; border-radius: 10px; }
.menu-panel a:not(.btn):hover { background: var(--fill); }
.menu-panel .btn { margin-top: 8px; }
.lang > summary { display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 8px; font-size: 0.85rem; font-weight: 650; letter-spacing: 0.08em; color: var(--text-2); }
.lang > summary:hover { background: var(--fill); }
.lang > summary svg { width: 16px; height: 16px; }
.lang-list { position: absolute; right: 0; top: calc(100% + 6px); min-width: 170px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 6px; display: grid; z-index: 30; }
.lang-list a { text-decoration: none; padding: 10px 12px; border-radius: 8px; }
.lang-list a:hover { background: var(--fill); }
.lang-list a[aria-current="true"] { font-weight: 650; }
@media (max-width: 940px) {
  .nav, .top-cta .hide-m { display: none; }
  .menu { display: block; }
  .top-cta { margin-left: 0; }
}
@media (max-width: 520px) { .top-cta .btn { display: none; } .logo-word { font-size: 1.45rem; } }

/* ---------- Secciones ------------------------------------------------------ */
.section { padding: clamp(56px, 4rem + 3vw, 112px) 0; }
.section.tight { padding: clamp(40px, 2.5rem + 2vw, 72px) 0; }
.section.paper { background: var(--paper); border-block: 1px solid var(--line); }
.dark { background: var(--ink); color: var(--on-ink); }
.dark .lead, .dark .muted { color: var(--on-ink-2); }
.dark .eyebrow { color: var(--champagne); }
.head { display: grid; gap: 14px; max-width: 760px; margin-bottom: clamp(30px, 2rem + 1vw, 52px); }
.head.center { margin-inline: auto; }

/* Portada */
.hero { padding: clamp(48px, 3rem + 4vw, 110px) 0 clamp(56px, 3rem + 4vw, 104px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 4vw, 64px); align-items: center; }
.hero h1 { color: var(--on-ink); }
.hero .script { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; }
.hero .script::after { content: ""; height: 1px; width: 64px; background: currentColor; opacity: .7; }
.hero .lead { margin-top: 18px; }
.hero .btn-row { margin-top: 30px; }
.hero .note { margin-top: 14px; }
.ticks { list-style: none; padding: 0; display: grid; gap: 8px; margin-top: 26px; color: var(--on-ink-2); font-size: 0.95rem; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--champagne); }
.hero-shot { position: relative; }
.hero-shot .desk { border-radius: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45); border: 1px solid var(--line-ink); }
.hero-shot .phone { position: absolute; right: -4%; bottom: -10%; width: 34%; }
.page-hero { padding: clamp(44px, 3rem + 3vw, 96px) 0; }
.page-hero h1 { max-width: 20ch; }
.page-hero .lead { margin-top: 18px; }
.page-hero .btn-row { margin-top: 28px; }
.crumbs { font-size: 0.85rem; margin-bottom: 18px; color: var(--on-ink-2); }
.crumbs ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.crumbs a { color: var(--on-ink-2); }
.light-crumbs .crumbs, .light-crumbs .crumbs a { color: var(--text-2); }

/* Marco de celular para las capturas de puerta y mail */
.phone { border-radius: 30px; padding: 7px; background: #0b0a0d; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4); border: 1px solid rgba(255, 255, 255, 0.12); }
.phone img { border-radius: 24px; }

/* Pasos */
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: paso; }
.step { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; display: grid; gap: 10px; align-content: start; counter-increment: paso; }
.step::before { content: counter(paso); font-family: var(--font-display); font-size: 2.6rem; line-height: 1; color: var(--gold-ink); }
.step p { color: var(--text-2); }
.step img { border-radius: 10px; border: 1px solid var(--line); margin-top: 8px; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; background: var(--ink); }
.step img.crop-bottom { object-position: bottom; }

/* Tarjetas */
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid.four { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; display: grid; gap: 10px; align-content: start; }
.card p { color: var(--text-2); }
.card .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--ink); color: var(--champagne); display: grid; place-items: center; }
.card .ico svg { width: 22px; height: 22px; }
.dark .card { background: var(--ink-2); border-color: var(--line-ink); }
.dark .card p { color: var(--on-ink-2); }
a.card { text-decoration: none; transition: border-color .15s, transform .15s; }
a.card:hover { border-color: var(--gold-ink); }
.card .more { margin-top: 6px; font-size: 0.78rem; font-weight: 650; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-ink); }

/* Bloques de función: texto + captura */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.feature + .feature { margin-top: clamp(56px, 4rem + 2vw, 104px); }
.feature.flip > :first-child { order: 2; }
.feature .shot { border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--paper); }
.feature .phone { width: min(300px, 70%); margin-inline: auto; }
.feature ul { padding-left: 0; list-style: none; display: grid; gap: 10px; margin-top: 6px; }
.feature li { display: flex; gap: 10px; color: var(--text-2); }
.feature li svg { width: 18px; height: 18px; flex: none; margin-top: 4px; color: var(--gold-ink); }
.feature h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); }

/* Precios */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); gap: 20px; max-width: 900px; margin-inline: auto; }
.plan { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px; display: grid; gap: 16px; align-content: start; }
.plan.featured { border: 2px solid var(--ink); }
.plan .price { font-family: var(--font-display); font-size: 2.6rem; line-height: 1; }
.plan ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.plan li { display: flex; gap: 10px; }
.plan li svg { width: 18px; height: 18px; flex: none; margin-top: 4px; color: var(--ok); }
.plan .btn { width: 100%; }
.plans.four { grid-template-columns: repeat(auto-fit, minmax(min(100%, 235px), 1fr)); max-width: none; gap: 16px; }
.plans.four .plan { padding: 26px 22px; position: relative; display: flex; flex-direction: column; gap: 14px; }
.plans.four .plan .btn { margin-top: auto; }
.plan { grid-template-rows: auto; }
.plan h2 { font-size: 1.5rem; }
.plan .price { font-size: 2.3rem; }
.plan .period { font-size: 0.88rem; color: var(--text-2); margin-top: -10px; min-height: 2.6em; }
.plan-badge { position: absolute; top: -13px; left: 22px; background: var(--champagne); color: var(--ink); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; padding: 5px 12px; border-radius: var(--r-pill); }
/* Selector anual / mensual sin JavaScript: dos radios y CSS */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.pricing { border: 0; margin: 0; padding: 0; min-width: 0; }
.billing-switch { display: flex; width: max-content; max-width: 100%; margin: 0 auto 34px; padding: 4px; border-radius: var(--r-pill); background: var(--paper); border: 1px solid var(--line); }
.billing-switch label { cursor: pointer; padding: 10px 20px; border-radius: var(--r-pill); font-weight: 650; font-size: 0.92rem; color: var(--text-2); }
.billing-switch label small { font-weight: 650; color: var(--gold-ink); margin-left: 4px; }
#fact-anual:checked ~ .billing-switch label[for="fact-anual"], #fact-mensual:checked ~ .billing-switch label[for="fact-mensual"] { background: var(--ink); color: var(--on-ink); }
#fact-anual:checked ~ .billing-switch label[for="fact-anual"] small { color: var(--champagne); }
#fact-anual:focus-visible ~ .billing-switch label[for="fact-anual"], #fact-mensual:focus-visible ~ .billing-switch label[for="fact-mensual"] { outline: 3px solid var(--champagne); outline-offset: 2px; }
.p-mensual { display: none; }
#fact-mensual:checked ~ .plans .p-mensual { display: inline; }
#fact-mensual:checked ~ .plans .p-anual { display: none; }

/* Preguntas frecuentes */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq.center-block { margin-inline: auto; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 54px 18px 20px; font-weight: 650; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--gold-ink); border-bottom: 2px solid var(--gold-ink); transform: translateY(-70%) rotate(45deg); transition: transform .15s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .answer { padding: 0 20px 20px; color: var(--text-2); display: grid; gap: 10px; }

/* Llamado final */
.cta-band { text-align: center; }
.cta-band .bunny { width: 54px; margin: 0 auto 18px; }
.cta-band h2 { color: var(--on-ink); max-width: 22ch; margin-inline: auto; }
.cta-band .lead { margin: 16px auto 0; }
.cta-band .btn-row { margin-top: 28px; justify-content: center; }

/* Texto largo: blog y páginas legales */
.prose { max-width: 72ch; font-size: 1.05rem; }
.prose > * + * { margin-top: 1.05em; }
.prose h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 1.95rem); margin-top: 1.8em; }
.prose h3 { margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.3em; display: grid; gap: 0.45em; }
.prose a { color: var(--gold-ink); }
.prose strong { font-weight: 650; }
.prose figure { margin: 1.6em 0; }
.prose figure img { border-radius: 12px; border: 1px solid var(--line); }
.prose figcaption { font-size: 0.88rem; color: var(--text-2); margin-top: 8px; }
.prose .callout { background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--champagne); border-radius: 0 var(--r) var(--r) 0; padding: 16px 20px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-weight: 650; }
.review { background: #fff4d6; border: 1px solid #e6c97a; color: #5c4400; border-radius: var(--r); padding: 14px 18px; font-weight: 600; }
.meta { font-size: 0.9rem; color: var(--text-2); }
.post-list { display: grid; gap: 18px; }
.post-card h2 { font-size: 1.5rem; }
.post-card h2 a { text-decoration: none; }
.post-card h2 a:hover { text-decoration: underline; }

/* ---------- Pie ------------------------------------------------------------ */
.foot { background: var(--ink); color: var(--on-ink-2); padding: 56px 0 30px; font-size: 0.93rem; }
.foot-grid { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 28px; }
.foot .logo { color: var(--on-ink); }
.foot h2 { font-family: var(--font); font-size: 0.74rem; font-weight: 650; letter-spacing: 0.14em; text-transform: uppercase; color: var(--champagne); margin-bottom: 12px; }
.foot ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--on-ink); text-decoration: underline; }
.foot-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line-ink); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
.foot-langs { display: flex; flex-wrap: wrap; gap: 6px 14px; }

/* ---------- Celular -------------------------------------------------------- */
@media (max-width: 900px) {
  .hero-grid, .feature { grid-template-columns: minmax(0, 1fr); }
  .feature.flip > :first-child { order: 0; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .hero-shot { margin: 8px 0 40px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .btn-row .btn { width: 100%; }
  .foot-grid { grid-template-columns: 1fr; }
  .hero-shot .phone { right: -2%; bottom: -14%; width: 38%; }
}
