/* ==========================================================================
   PAGINAS S — Estilos
   Identidad: lujo editorial cálido. Capas orgánicas en tonos tierra,
   tipografía serif expresiva, mucho espacio y líneas finas.
   ========================================================================== */

/* ---------- Fuentes (autoalojadas: sin peticiones a terceros) ---------- */
@font-face { font-family: "Geist"; src: url("../fonts/geist.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../fonts/instrument-serif.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../fonts/instrument-serif-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  /* Paleta de marca */
  --cacao: #713C29;
  --terra: #A76F48;
  --sand: #BC8F62;
  --camel: #CDA17B;
  --beige: #E0BEA3;
  --ivory: #F7E5D8;

  /* Derivados para fondos y texto */
  --cream: #FBF5EF;
  --cream-2: #F5EBE1;
  --deep: #2E1B13;
  --deep-2: #3B2318;
  --ink: #2B1A12;
  --ink-2: #4A3226;
  --muted: #76594B;
  --muted-dark: #D8BCA6;
  --line: rgba(59, 33, 23, .14);
  --line-strong: rgba(59, 33, 23, .24);
  --line-dark: rgba(247, 229, 216, .14);
  --line-dark-strong: rgba(247, 229, 216, .28);
  --white: #FFFDFB;
  --danger: #A3342A;
  --danger-dark: #F2A99F;

  --f-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;

  --container: 1280px;
  --gutter: clamp(20px, 4.4vw, 56px);
  --section-y: clamp(96px, 12vw, 176px);
  --radius: 2px;
  --radius-lg: 6px;
  --ease: cubic-bezier(.22, .61, .21, 1);
  --header-h: 80px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
  margin: 0;
  font-family: var(--f-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--cacao); outline-offset: 3px; border-radius: 2px; }
.section-dark :focus-visible, .section-night :focus-visible { outline-color: var(--beige); }
::selection { background: var(--beige); color: var(--deep); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--deep); color: var(--ivory); padding: 10px 16px; font-weight: 500; text-decoration: none; border-radius: var(--radius); transition: top .2s; }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
/* Etiquetas pequeñas: versalitas espaciadas (sustituye al antiguo estilo monoespaciado) */
.mono { font-family: var(--f-sans); font-size: 11.5px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }

/* ---------- Tipografía ---------- */
.display {
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: clamp(3.1rem, 7.6vw, 6.6rem);
  line-height: .96;
  letter-spacing: -.02em;
  color: var(--ink);
}
.display em, .h2 em, .display-2 em { font-style: italic; color: var(--terra); }
.h2 {
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: clamp(2.5rem, 5vw, 4.3rem);
  line-height: 1;
  letter-spacing: -.015em;
  max-width: 16ch;
}
.section-dark .h2 em, .section-night .h2 em, .display-2 em { color: var(--camel); }
.display-2 { font-family: var(--f-serif); font-weight: 400; font-size: clamp(2.7rem, 6vw, 5.2rem); line-height: .98; letter-spacing: -.015em; }
.h3 { font-size: 1.3rem; font-weight: 500; letter-spacing: -.01em; line-height: 1.25; }
.lead { font-size: clamp(1.05rem, 1.35vw, 1.17rem); line-height: 1.7; color: var(--muted); max-width: 52ch; }
.section-dark .lead, .section-night .lead { color: var(--muted-dark); }
.fine { font-size: 13px; color: var(--muted); }
.text-link { color: var(--cacao); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; transition: color .2s; }
.text-link:hover { color: var(--terra); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 11.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  color: var(--cacao); margin-bottom: 28px;
}
.eyebrow::before { content: ""; width: 32px; height: 1px; background: currentColor; opacity: .7; }
.eyebrow-dark { color: var(--camel); }

/* ---------- Botones ---------- */
.btn {
  --bh: 54px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: var(--bh); padding: 0 30px;
  font-family: var(--f-sans); font-size: 14.5px; font-weight: 500; letter-spacing: .02em;
  text-decoration: none; border: 1px solid transparent; border-radius: 100px;
  cursor: pointer; overflow: hidden; isolation: isolate;
  transition: color .4s var(--ease), border-color .4s var(--ease), background-color .4s var(--ease), transform .3s var(--ease);
  white-space: nowrap;
}
/* Relleno que sube desde abajo al pasar el cursor */
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; transform: translateY(101%); transition: transform .5s var(--ease); }
.btn:hover::before { transform: translateY(0); }
.btn svg { width: 15px; height: 15px; transition: transform .4s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: scale(.985); }
.btn-sm { --bh: 44px; padding: 0 22px; font-size: 13.5px; }
.btn-block { width: 100%; }
/* Principal: espresso → cacao */
.btn-accent, .btn-dark { background: var(--deep); color: var(--ivory); }
.btn-accent::before, .btn-dark::before { background: var(--cacao); }
/* Secundario sobre claro */
.btn-ghost-dark, .btn-outline { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-ghost-dark::before, .btn-outline::before { background: var(--deep); }
.btn-ghost-dark:hover, .btn-outline:hover { color: var(--ivory); border-color: var(--deep); }
/* Variantes sobre fondo oscuro */
.section-dark .btn-accent, .section-night .btn-accent, .plan-featured .btn-accent { background: var(--ivory); color: var(--deep); }
.section-dark .btn-accent::before, .section-night .btn-accent::before, .plan-featured .btn-accent::before { background: var(--camel); }
.section-dark .btn-ghost-dark, .section-night .btn-ghost-dark { border-color: var(--line-dark-strong); color: var(--ivory); }
.section-dark .btn-ghost-dark::before, .section-night .btn-ghost-dark::before { background: var(--ivory); }
.section-dark .btn-ghost-dark:hover, .section-night .btn-ghost-dark:hover { color: var(--deep); border-color: var(--ivory); }

/* ---------- Secciones ---------- */
.section { padding: var(--section-y) 0; position: relative; }
.section-light { background: var(--cream); }
.section-paper { background: var(--ivory); }
.section-dark { background: var(--deep); color: var(--ivory); }
.section-night { background: var(--cacao); color: var(--ivory); }
.section-head { margin-bottom: clamp(56px, 7vw, 96px); }
.section-head .lead { margin-top: 28px; }
.section-head-center { text-align: center; }
.section-head-center .eyebrow { justify-content: center; }
/* En cabeceras centradas, una línea a cada lado para que la palabra quede en el centro exacto */
.section-head-center .eyebrow::after { content: ""; width: 32px; height: 1px; background: currentColor; opacity: .7; margin-left: -.2em; }
.section-head-center .h2, .section-head-center .lead { margin-left: auto; margin-right: auto; }
.section-head-split { display: grid; gap: 28px; align-items: end; }
@media (min-width: 900px) { .section-head-split { grid-template-columns: 1.3fr 1fr; gap: 80px; } .section-head-split .lead { margin-top: 0; } }

/* ---------- Reveal (seguro: el contenido es visible si falla JS) ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }

/* ==========================================================================
   CABECERA
   ========================================================================== */
.site-header { position: fixed; inset: 0 0 auto; z-index: 100; color: var(--ink); transition: background-color .4s var(--ease), border-color .4s var(--ease); border-bottom: 1px solid transparent; }
.site-header.is-scrolled { background: rgba(251, 245, 239, .9); -webkit-backdrop-filter: saturate(140%) blur(12px); backdrop-filter: saturate(140%) blur(12px); border-bottom-color: var(--line); }
.site-header.menu-open { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--cream); border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; flex: none; }
.brand-mark { width: 34px; height: 34px; color: var(--cacao); --mark-back: var(--terra); --mark-ink: var(--ivory); overflow: visible; }
.brand-mark .pm-back { opacity: .65; transition: transform .5s var(--ease), opacity .5s; }
.brand-mark .pm-front { transition: transform .5s var(--ease); }
.brand:hover .pm-back { transform: translate(2px, -2px); opacity: 1; }
.brand:hover .pm-front { transform: translate(-1px, 1px); }
.brand-word { display: inline-flex; align-items: baseline; gap: .3em; font-weight: 500; font-size: 15px; letter-spacing: .24em; line-height: 1; }
.brand-word b { font-family: var(--f-serif); font-style: italic; font-weight: 400; font-size: 1.8em; letter-spacing: 0; color: var(--terra); line-height: .6; }
.section-dark .brand-mark { color: var(--camel); --mark-back: var(--beige); --mark-ink: var(--deep); }
.section-dark .brand-word b { color: var(--camel); }

.main-nav { margin-left: auto; display: none; }
.main-nav ul { display: flex; gap: 6px; }
.main-nav a { position: relative; display: block; padding: 10px 14px; font-size: 14.5px; color: var(--ink-2); text-decoration: none; transition: color .3s; }
.main-nav a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 5px; height: 1px; background: var(--terra); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.main-nav a:hover, .main-nav a.is-active { color: var(--ink); }
.main-nav a:hover::after, .main-nav a.is-active::after { transform: scaleX(1); transform-origin: left; }
.header-cta { display: none; }
.menu-toggle { margin-left: auto; width: 48px; height: 48px; display: grid; place-items: center; background: transparent; border: 1px solid var(--line-strong); border-radius: 100px; cursor: pointer; }
.menu-lines, .menu-lines::before, .menu-lines::after { display: block; width: 18px; height: 1.2px; background: var(--ink); transition: transform .35s var(--ease), opacity .2s; }
.menu-lines { position: relative; }
.menu-lines::before, .menu-lines::after { content: ""; position: absolute; left: 0; }
.menu-lines::before { top: -5px; } .menu-lines::after { top: 5px; }
.menu-toggle[aria-expanded="true"] .menu-lines { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-lines::before { transform: translateY(5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-lines::after { transform: translateY(-5px) rotate(-45deg); }

.mobile-menu { position: fixed; inset: var(--header-h) 0 0; background: var(--cream); padding: 24px var(--gutter) 40px; overflow-y: auto; }
.mobile-menu[hidden] { display: none; }
.mobile-menu ul { border-top: 1px solid var(--line); margin-bottom: 36px; }
.mobile-menu li a { display: flex; align-items: baseline; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); font-family: var(--f-serif); font-size: 2.2rem; line-height: 1.05; text-decoration: none; color: var(--ink); }
.mobile-menu li a .mono { color: var(--terra); font-size: 10.5px; }
.mobile-menu-foot { margin-top: 28px; color: var(--muted); }
.mobile-menu.is-open li { animation: menuIn .5s var(--ease) both; }
.mobile-menu.is-open li:nth-child(2) { animation-delay: .05s; } .mobile-menu.is-open li:nth-child(3) { animation-delay: .1s; }
.mobile-menu.is-open li:nth-child(4) { animation-delay: .15s; } .mobile-menu.is-open li:nth-child(5) { animation-delay: .2s; }
@keyframes menuIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

@media (min-width: 1080px) {
  .main-nav { display: block; }
  .header-cta { display: inline-flex; }
  .menu-toggle, .mobile-menu { display: none !important; }
}

/* ==========================================================================
   PORTADA
   ========================================================================== */
.hero { position: relative; overflow: hidden; padding: calc(var(--header-h) + clamp(40px, 6vw, 80px)) 0 0; background:
  radial-gradient(70% 60% at 100% 0%, rgba(224,190,163,.35), transparent 70%), var(--cream); }
.hero-inner { position: relative; display: grid; gap: 64px; align-items: center; }
.hero-copy { max-width: 640px; }
.hero .display { margin-bottom: 32px; }
.hero-lead { font-size: clamp(1.08rem, 1.45vw, 1.22rem); color: var(--muted); max-width: 46ch; line-height: 1.7; }

/* Titular editorial: «Tu marca / merece algo / extraordinario.» */
.hero-title { color: var(--cacao); font-size: clamp(3rem, 9.6vw, 6.4rem); line-height: .94; letter-spacing: -.022em; margin-bottom: clamp(30px, 3.4vw, 44px) !important; }
.hero-title .ht-line { display: block; }
.hero-title .ht-indent { padding-left: .62em; }
.hero-title .ht-accent { position: relative; display: inline-block; margin-top: .06em; font-style: italic; font-size: 1.07em; letter-spacing: -.01em; color: var(--terra); white-space: nowrap; }
/* Trazo orgánico muy fino bajo «extraordinario.» */
.hero-title .ht-accent::after { content: ""; position: absolute; left: .04em; right: .5em; bottom: -.1em; height: .14em; opacity: .55; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 14' preserveAspectRatio='none'%3E%3Cpath d='M2 9C70 3 130 12 200 7S330 2 398 6' fill='none' stroke='%23BC8F62' stroke-width='1.6' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.hero-title + .hero-lead { max-width: 40ch; }
@media (min-width: 980px) {
  .hero-title { font-size: clamp(4.2rem, 6.2vw, 5.6rem); }
}
@media (max-width: 420px) {
  .hero-title { font-size: clamp(2.6rem, 13.2vw, 3.4rem); }
  .hero-title .ht-indent { padding-left: .4em; }
}
/* Entrada suave por líneas (solo opacidad y desplazamiento: sin saltos de maquetación) */
.js .hero-title .ht-line { opacity: 0; transform: translateY(.18em); animation: htIn .9s var(--ease) forwards; }
.js .hero-title .ht-line:nth-child(2) { animation-delay: .08s; }
.js .hero-title .ht-line:nth-child(3) { animation-delay: .16s; }
@keyframes htIn { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .js .hero-title .ht-line { opacity: 1; transform: none; animation: none; } }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 44px; }
.hero-location { display: flex; align-items: center; gap: 12px; margin-top: 44px; font-size: 13px; letter-spacing: .04em; color: var(--muted); }
.loc-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--terra); box-shadow: 0 0 0 4px rgba(167,111,72,.15); }
.hero-foot { position: relative; margin-top: clamp(64px, 8vw, 112px); }
.hero-tags { display: flex; flex-wrap: wrap; border-top: 1px solid var(--line); }
.hero-tags li { flex: 1 1 auto; padding: 24px 18px 30px 0; font-size: 11.5px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 12px; }
.hero-tags li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--sand); }

/* Composición: arco con capas orgánicas + maquetas */
.hero-visual { position: relative; width: 100%; max-width: 620px; aspect-ratio: 1 / 1.02; margin: 0 auto; }
.hv-frame { position: absolute; right: 0; top: 0; width: 70%; height: 90%; border-radius: 999px 999px 4px 4px; overflow: hidden; background: var(--beige); }
.hv-layers { width: 100%; height: 100%; }
.hv-layers .ly { transform-box: fill-box; animation: drift 16s ease-in-out infinite alternate; }
.hv-layers .ly2 { animation-duration: 19s; animation-delay: -4s; }
.hv-layers .ly3 { animation-duration: 22s; animation-delay: -8s; }
.hv-layers .ly4 { animation-duration: 18s; animation-delay: -2s; }
.hv-layers .ly5 { animation-duration: 24s; animation-delay: -10s; }
@keyframes drift { from { transform: translateX(-18px); } to { transform: translateX(18px); } }

.hv-browser {
  position: absolute; left: 0; bottom: 5%; width: 74%; aspect-ratio: 16 / 11.8; z-index: 2;
  display: flex; flex-direction: column;
  background: #FDF8F3; border-radius: 9px; overflow: hidden; container-type: inline-size;
  box-shadow: 0 0 0 1px rgba(59,33,23,.08), 0 40px 80px -36px rgba(59,33,23,.55);
}
.hv-bar { flex: none; display: flex; align-items: center; gap: 1.3cqi; height: 6.6cqi; padding: 0 2.6cqi; background: #EFECE6; border-bottom: 1px solid rgba(0,0,0,.06); }
.hv-bar i { width: 1.7cqi; height: 1.7cqi; border-radius: 50%; background: #D6D2CA; }
.hv-url { display: flex; align-items: center; justify-content: center; gap: .8cqi; margin: 0 auto; width: 44%; height: 4.2cqi; background: #FDF8F3; border-radius: 1cqi; font-size: 1.9cqi; color: #8A8780; text-transform: none; letter-spacing: .02em; transform: translateX(-3cqi); }
.hv-url svg { width: 1.9cqi; height: 1.9cqi; fill: none; stroke: #8A8780; stroke-width: 1; }

.hv-page { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 0 5.4cqi 4cqi; font-family: var(--f-sans); color: #3B2117; }
.hv-nav { display: flex; align-items: center; gap: 3cqi; height: 10cqi; border-bottom: 1px solid rgba(28,26,23,.08); font-size: 1.9cqi; }
.hv-logo { font-family: var(--f-serif); font-size: 3.1cqi; letter-spacing: -.01em; white-space: nowrap; }
.hv-logo i { color: #A76F48; }
.hv-links { display: flex; gap: 3.2cqi; margin-left: auto; color: #7A6155; }
.hv-pill { padding: 1.2cqi 2.4cqi; border-radius: 10cqi; background: #3B2117; color: #FDF8F3; font-weight: 500; }

.hv-hero { flex: 1; min-height: 0; display: grid; grid-template-columns: 1.08fr 1fr; gap: 5cqi; align-items: center; padding: 3.4cqi 0; }
.hv-text { display: flex; flex-direction: column; align-items: flex-start; gap: 2.2cqi; }
.hv-kicker { font-family: var(--f-mono); font-size: 1.55cqi; letter-spacing: .14em; text-transform: uppercase; color: #A76F48; }
.hv-select { position: relative; padding: 1cqi 1.4cqi; margin: 0 -1.4cqi; outline: 1px dashed rgba(167,111,72,.85); }
.hv-h { display: block; font-family: var(--f-serif); font-size: 5.6cqi; line-height: 1; letter-spacing: -.015em; }
.hv-h i { color: #A76F48; }
.hv-tag { position: absolute; top: -3.6cqi; right: -1px; padding: .5cqi 1.1cqi; font-size: 1.5cqi; background: #713C29; color: #fff; letter-spacing: .04em; text-transform: none; border-radius: .5cqi .5cqi 0 0; }
.hv-handle { position: absolute; width: 1.2cqi; height: 1.2cqi; min-width: 4px; min-height: 4px; background: #fff; border: 1px solid #713C29; }
.h-tl { left: -3px; top: -3px; } .h-tr { right: -3px; top: -3px; } .h-bl { left: -3px; bottom: -3px; } .h-br { right: -3px; bottom: -3px; }
.hv-p { font-size: 1.95cqi; line-height: 1.5; color: #7A6155; max-width: 34ch; }
.hv-btns { display: flex; gap: 1.4cqi; margin-top: .6cqi; }
.hv-btn { padding: 1.5cqi 2.6cqi; border-radius: 10cqi; background: #3B2117; color: #FDF8F3; font-size: 1.8cqi; font-weight: 500; white-space: nowrap; }
.hv-btn-ghost { background: transparent; color: #3B2117; box-shadow: inset 0 0 0 1px rgba(28,26,23,.25); }

/* Foto de la maqueta (villa de demostración, licencia CC0) */
.hv-img { position: relative; align-self: stretch; min-height: 0; border-radius: 1.6cqi; overflow: hidden; background: #D9CBB8; }
.hv-img img, .hp-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 66% 50%; }
.hv-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.18)); pointer-events: none; }
.hv-caption { z-index: 1; position: absolute; left: 2.4cqi; bottom: 2.4cqi; display: flex; flex-direction: column; padding: 1.2cqi 1.8cqi; background: rgba(251,250,247,.94); border-radius: 1cqi; font-size: 1.7cqi; line-height: 1.3; }
.hv-caption small { font-size: 1.4cqi; color: #7A6155; }

.hv-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.4cqi; }
.hv-cards span { display: flex; flex-direction: column; gap: .4cqi; padding: 2cqi 2.2cqi; border-top: 1px solid rgba(28,26,23,.14); font-size: 2cqi; font-weight: 500; }
.hv-cards b { font-family: var(--f-mono); font-weight: 400; font-size: 1.4cqi; color: #A76F48; }
.hv-cards small { font-size: 1.6cqi; font-weight: 400; color: #7A6155; }

.hv-phone { position: absolute; right: 3%; bottom: 0; width: 23%; z-index: 3; aspect-ratio: 9 / 18.5; padding: 2.4%; background: #2A1810; border-radius: 18px; box-shadow: 0 30px 60px -28px rgba(59,33,23,.55); }
.hv-phone-screen { position: relative; height: 100%; border-radius: 13px; background: #FDF8F3; padding: 22% 8% 9%; display: flex; flex-direction: column; gap: 4.5%; overflow: hidden; container-type: inline-size; color: #3B2117; }
.hp-notch { position: absolute; top: 4%; left: 50%; width: 32%; height: 3.6%; transform: translateX(-50%); background: #2A1810; border-radius: 6px; }
.hp-nav { display: flex; justify-content: space-between; align-items: center; font-family: var(--f-serif); font-size: 9cqi; white-space: nowrap; }
.hp-nav i { color: #A76F48; }
.hp-burger { width: 10cqi; height: 1.2px; background: #3B2117; box-shadow: 0 3.2cqi 0 #3B2117, 0 -3.2cqi 0 #3B2117; }
.hp-img { position: relative; flex: 0 0 34%; border-radius: 4cqi; overflow: hidden; background: linear-gradient(180deg, #E9D6BF 0%, #DDBF9C 100%); }
.hp-kicker { font-family: var(--f-mono); font-size: 4.6cqi; letter-spacing: .1em; text-transform: uppercase; color: #A76F48; margin-top: 2%; }
.hp-h { font-family: var(--f-serif); font-size: 13cqi; line-height: 1; letter-spacing: -.01em; }
.hp-h i { color: #A76F48; }
.hp-btn { margin-top: auto; padding: 5.5cqi 0; border-radius: 20cqi; background: #3B2117; color: #FDF8F3; font-size: 6.4cqi; font-weight: 500; text-align: center; }

/* Montaje progresivo de la maqueta */
.js .hero-visual .b { opacity: 0; transform: translateY(6px); animation: assemble .8s var(--ease) forwards; animation-delay: calc(.5s + var(--d, 0) * .14s); }
@keyframes assemble { to { opacity: 1; transform: none; } }
.js .hv-frame { animation: frameIn 1.4s var(--ease) both; }
@keyframes frameIn { from { clip-path: inset(100% 0 0 0 round 999px 999px 4px 4px); } to { clip-path: inset(0 0 0 0 round 999px 999px 4px 4px); } }

/* ---------- Escena 3D de la portada: pantallas en capas con profundidad ---------- */
.hero-visual { perspective: 1800px; perspective-origin: 55% 35%; }
.hero-visual::after { content: ""; position: absolute; left: 6%; right: 2%; bottom: -5%; height: 12%; border-radius: 50%; background: radial-gradient(closest-side, rgba(59,33,23,.22), transparent); pointer-events: none; }
.hv-scene { --rx: 6deg; --ry: -10deg; position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(var(--rx)) rotateY(var(--ry)); }
.hv-frame { --z: -110px; --fy: -6px; --fd: 13s; }
.hv-back { --z: -40px; --fy: -9px; --fd: 10s; }
.hv-browser { --z: 40px; --fy: -8px; --fd: 9s; }
.hv-phone { --z: 120px; --fy: -12px; --fd: 8s; }
.hv-card { --z: 180px; --fy: -14px; --fd: 7s; }
.hv-scene > * { transform: translateZ(var(--z)); }
.js .hv-scene > .hv-back, .js .hv-scene > .hv-browser, .js .hv-scene > .hv-phone, .js .hv-scene > .hv-card { animation: hvFloat var(--fd) ease-in-out infinite alternate; }
.js .hv-scene > .hv-back { animation-delay: -3s; } .js .hv-scene > .hv-phone { animation-delay: -5s; } .js .hv-scene > .hv-card { animation-delay: -2s; }
.js .hv-scene > .hv-frame { animation: frameIn 1.4s var(--ease) both, hvFloat var(--fd) ease-in-out 1.4s infinite alternate; }
@keyframes hvFloat { from { transform: translateZ(var(--z)) translateY(0); } to { transform: translateZ(var(--z)) translateY(var(--fy)); } }

/* Segunda web, al fondo (hotel de ejemplo) */
.hv-back { position: absolute; left: 2%; top: 4%; width: 56%; aspect-ratio: 16 / 10.6; z-index: 1; display: flex; flex-direction: column; border-radius: 9px; overflow: hidden; background: #F6F1E8; container-type: inline-size; box-shadow: 0 0 0 1px rgba(59,33,23,.08), 0 40px 70px -40px rgba(59,33,23,.55); }
.hvb-page { position: relative; flex: 1; overflow: hidden; }
.hvb-page img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hvb-page::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(35,38,28,.35), rgba(35,38,28,.05) 40%, rgba(35,38,28,.55)); }
.hvb-nav { position: absolute; z-index: 1; left: 5cqi; right: 5cqi; top: 4cqi; display: flex; align-items: center; gap: 3cqi; color: #F6F1E8; }
.hvb-nav b { margin-right: auto; font: 500 2.6cqi/1 var(--f-serif); letter-spacing: .3em; }
.hvb-nav span { width: 7cqi; height: .7cqi; border-radius: 1cqi; background: rgba(246,241,232,.7); }
.hvb-nav em { font-style: normal; font-size: 1.8cqi; letter-spacing: .14em; text-transform: uppercase; padding: 1.2cqi 2.2cqi; border: 1px solid rgba(246,241,232,.7); }
.hvb-title { position: absolute; z-index: 1; left: 5cqi; bottom: 17cqi; max-width: 60%; font: 400 6.4cqi/1 var(--f-serif); color: #F6F1E8; }
.hvb-title i { font-style: italic; }
.hvb-book { position: absolute; z-index: 1; left: 5cqi; bottom: 5cqi; width: 68%; height: 8cqi; display: grid; grid-template-columns: 1fr 1fr 1fr 1.1fr; background: #F6F1E8; }
.hvb-book span { margin: 2.4cqi 2cqi; border-radius: 1cqi; background: rgba(35,38,28,.18); }
.hvb-book em { background: #55603F; }

/* Tarjeta flotante: sistema de diseño (paleta y tipografía) */
.hv-card { position: absolute; right: -3%; top: 26%; width: 30%; z-index: 4; display: flex; flex-direction: column; gap: 10px; padding: clamp(12px, 1.8vw, 20px); border-radius: 12px; background: rgba(253,248,243,.96); container-type: inline-size; box-shadow: 0 0 0 1px rgba(59,33,23,.06), 0 40px 60px -30px rgba(59,33,23,.55); }
.hvc-label { font-size: 6cqi; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.hvc-type { display: flex; flex-direction: column; font: 400 26cqi/1 var(--f-serif); color: var(--cacao); }
.hvc-type small { margin-top: 2cqi; font: 400 6cqi/1.3 var(--f-sans); color: var(--muted); }
.hvc-swatches { display: flex; gap: 3cqi; }
.hvc-swatches i { width: 14cqi; aspect-ratio: 1; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(59,33,23,.12); }

@media (max-width: 979px) {
  .hv-scene { --rx: 4deg; --ry: -7deg; }
  .hv-card { right: 0; }
}
@media (max-width: 599px) {
  .js .hv-scene > * { animation: none !important; }
  .hv-scene > * { transform: translateZ(calc(var(--z) * .5)); }
  .hv-card { width: 34%; top: 22%; padding: 10px; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .hv-scene > * { animation: none !important; }
  .js .hv-scene > .hv-frame { clip-path: none; }
}

@media (min-width: 980px) {
  .hero-inner { grid-template-columns: 1fr 1.02fr; gap: 48px; }
}
@media (max-width: 599px) {
  .hero-actions .btn, .cta .btn { width: 100%; }
  .hero-tags li { flex: 1 1 45%; padding: 16px 12px 18px 0; letter-spacing: .14em; }
  }

/* ==========================================================================
   PROBLEMA
   ========================================================================== */
.problem.section { padding: clamp(80px, 9vw, 128px) 0; }
.problem-grid { display: grid; gap: 48px; }
.problem-intro .h2 { max-width: 15.5ch; }
.problem-lead { margin-top: 26px; max-width: 38ch; }
.problem-list { border-top: 1px solid var(--line-strong); }
.problem-list li { display: grid; grid-template-columns: 56px 1fr; align-items: baseline; padding: 30px 0 32px; border-bottom: 1px solid var(--line); transition: padding .6s var(--ease); }
.problem-list li:hover { padding-left: 8px; }
.pl-n { font-family: var(--f-serif); font-style: italic; font-size: 1.05rem; line-height: 1; color: var(--terra); }
.problem-list h3 { font-family: var(--f-serif); font-weight: 400; font-size: clamp(1.5rem, 2.2vw, 1.95rem); line-height: 1.12; letter-spacing: -.005em; color: var(--ink); }
.problem-list p { margin-top: 8px; color: var(--muted); font-size: 1rem; max-width: 42ch; }
@media (min-width: 900px) {
  .problem-grid { grid-template-columns: 1fr 1.05fr; column-gap: clamp(64px, 8vw, 120px); align-items: center; }
}
@media (max-width: 599px) {
  .problem-list li { grid-template-columns: 40px 1fr; padding: 24px 0 26px; }
}
@media (prefers-reduced-motion: reduce) { .problem-list li { transition: none; } .problem-list li:hover { padding-left: 0; } }

/* ==========================================================================
   SERVICIOS
   ========================================================================== */
.services { background: var(--ivory); }
.services.section { padding: clamp(84px, 9.5vw, 136px) 0; }
.services .section-head { margin-bottom: clamp(44px, 5.5vw, 72px); }
/* Cada servicio: número + icono en una misma línea, título y descripción debajo.
   Una línea fina abre cada bloque y se enciende en terracota al pasar el cursor. */
.service-grid { display: grid; grid-template-columns: 1fr; column-gap: clamp(40px, 5vw, 72px); }
.service { position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto 1fr; align-content: start; column-gap: 16px; padding: 28px 0 34px; border-top: 1px solid var(--line-strong); }
.service::before { content: ""; position: absolute; left: 0; top: -1px; width: 100%; height: 1px; background: var(--terra); transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease); }
.service:hover::before { transform: scaleX(1); }
.service-n { grid-column: 1; grid-row: 1; align-self: center; display: inline-flex; align-items: center; gap: 14px; font-family: var(--f-serif); font-style: italic; font-size: 1.05rem; line-height: 1; letter-spacing: 0; text-transform: none; color: var(--terra); }
.service-n::after { content: ""; width: 22px; height: 1px; background: var(--line-strong); }
.service-icon { grid-column: 2; grid-row: 1; align-self: center; width: 30px; height: 30px; fill: none; stroke: var(--cacao); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .7s var(--ease), stroke .5s; }
.service:hover .service-icon { transform: translateY(-2px); stroke: var(--terra); }
.service h3 { grid-column: 1 / -1; grid-row: 2; margin-top: 22px; font-family: var(--f-serif); font-weight: 400; font-size: clamp(1.6rem, 2.1vw, 1.9rem); line-height: 1.12; max-width: none; text-wrap: balance; color: var(--ink); transition: color .5s; }
.service:hover h3 { color: var(--cacao); }
.service p { grid-column: 1 / -1; grid-row: 3; margin-top: 12px; color: var(--muted); font-size: 1rem; line-height: 1.65; max-width: 34ch; }
@media (min-width: 720px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1080px) {
  .service-grid { grid-template-columns: repeat(3, 1fr); row-gap: 20px; }
  .service { padding: 30px 0 36px; }
}
@media (prefers-reduced-motion: reduce) {
  .service::before, .service-icon, .service h3 { transition: none; }
}

/* ==========================================================================
   SECTORES
   ========================================================================== */
.sectors-grid { display: grid; gap: 56px; }
.sectors-head .lead { margin-top: 28px; }
.sectors-head .fine { margin-top: 22px; display: inline-flex; gap: 10px; align-items: center; }
.sectors-head .fine::before { content: ""; width: 18px; height: 1px; background: var(--muted); }
.sector-board { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line-strong); }
.sector { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 26px 16px 28px 0; border-bottom: 1px solid var(--line-strong); cursor: default; transition: color .4s; outline-offset: -2px; }
.sector::before { content: ""; position: absolute; inset: 0 -12px; background: var(--ivory); border-radius: var(--radius-lg); opacity: 0; transform: scale(.97); transition: opacity .5s var(--ease), transform .5s var(--ease); z-index: 0; }
.sector > * { position: relative; z-index: 1; }
.sector svg { width: 30px; height: 30px; margin-bottom: 16px; fill: none; stroke: var(--cacao); stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; }
.sector-name { font-family: var(--f-serif); font-size: 1.35rem; line-height: 1.15; }
.sector-need { font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.sector:hover::before, .sector:focus-visible::before { opacity: 1; transform: none; }
@media (min-width: 720px) { .sector-board { grid-template-columns: repeat(3, 1fr); column-gap: 32px; } .sector { padding: 32px 12px 34px 0; } }
@media (min-width: 1080px) {
  .sectors-grid { grid-template-columns: .85fr 1.4fr; gap: 96px; align-items: start; }
  .sectors-head { position: sticky; top: calc(var(--header-h) + 48px); }
}

/* ==========================================================================
   PORTFOLIO — webs de ejemplo en vivo dentro de un navegador con perspectiva
   ========================================================================== */
.work { overflow: hidden; }
.work .eyebrow { color: var(--camel); }
.project-list { display: grid; gap: clamp(110px, 14vw, 190px); position: relative; }
.project { display: grid; gap: 56px; align-items: center; }

.project-media { position: relative; perspective: 1600px; padding-bottom: 28px; }
.device-link { display: block; text-decoration: none; color: inherit; }
.device {
  position: relative; transform-style: preserve-3d;
  transform: rotateY(-7deg) rotateX(5deg);
  transition: transform 1s var(--ease), box-shadow 1s var(--ease);
  border-radius: 12px; background: #F3E6DA;
  box-shadow: 0 0 0 1px rgba(247,229,216,.18), 0 60px 90px -50px rgba(0,0,0,.85);
}
.project:nth-child(even) .device { transform: rotateY(7deg) rotateX(5deg); }
.device-bar { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; border-radius: 12px 12px 0 0; background: #EADBCD; }
.device-bar i { width: 9px; height: 9px; border-radius: 50%; background: #CDB4A0; }
.device-url { flex: 1; max-width: 56%; margin: 0 auto; transform: translateX(-24px); height: 20px; display: grid; place-items: center; padding: 0 12px; border-radius: 6px; background: #F8EEE5; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.device-screen { --s: .5; position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 0 0 12px 12px; background: var(--ivory); }
.device-frame { position: absolute; left: 0; top: 0; width: 1280px; height: 800px; border: 0; transform: scale(var(--s)); transform-origin: 0 0; pointer-events: none; background: var(--ivory); opacity: 0; transition: opacity .8s var(--ease); }
.device-img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.is-loaded .device-frame { opacity: 1; }
/* Indicador de carga discreto */
.device-loading { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; transition: opacity .6s; }
.device-loading::after { content: ""; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid rgba(113,60,41,.2); border-top-color: var(--terra); animation: spin 1s linear infinite; }
.is-loaded .device-loading { opacity: 0; }
/* Etiqueta flotante con profundidad */
.device-chip { position: absolute; left: 22px; bottom: -16px; padding: 9px 16px; border-radius: 100px; background: var(--terra); color: var(--ivory); font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; transform: translateZ(60px); box-shadow: 0 16px 30px -14px rgba(0,0,0,.6); }
.project:nth-child(even) .device-chip { left: auto; right: 22px; }
.device-floor { position: absolute; left: 8%; right: 8%; bottom: -6px; height: 40px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,.45), transparent); filter: blur(6px); pointer-events: none; }
.project-media:hover .device { box-shadow: 0 0 0 1px rgba(247,229,216,.25), 0 70px 100px -50px rgba(0,0,0,.9); }

/* Aparición: el navegador se «levanta» al entrar en pantalla */
.js .project.reveal .device { opacity: 0; transform: rotateX(22deg) rotateY(0) translateY(40px) scale(.96); }
.js .project.reveal.is-in .device { opacity: 1; transform: rotateY(-7deg) rotateX(5deg); transition: transform 1.4s var(--ease), opacity 1s var(--ease), box-shadow 1s var(--ease); }
.js .project.reveal.is-in:nth-child(even) .device { transform: rotateY(7deg) rotateX(5deg); }

.project-idx { display: flex; align-items: center; gap: 16px; }
.project-idx > span:first-child { font-family: var(--f-serif); font-size: 2.4rem; line-height: 1; color: var(--camel); }
.project-tag { padding: 6px 12px; border: 1px solid var(--line-dark-strong); border-radius: 100px; font-size: 10.5px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--beige); }
.project-info h3 { font-family: var(--f-serif); font-weight: 400; font-size: clamp(2.6rem, 4.4vw, 3.8rem); line-height: 1; margin: 22px 0 10px; }
.project-sector { font-size: 11.5px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--muted-dark); }
.project-desc { color: #E9D3C2; margin: 24px 0 26px; max-width: 44ch; }
.project-services { display: flex; flex-wrap: wrap; gap: 8px; }
.project-services li { font-size: 13px; padding: 7px 14px; border: 1px solid var(--line-dark-strong); border-radius: 100px; color: #EBD8CA; }
.project-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
@media (min-width: 960px) {
  .project { grid-template-columns: 1.55fr 1fr; gap: 88px; }
  .project:nth-child(even) { grid-template-columns: 1fr 1.55fr; }
  .project:nth-child(even) .project-media { order: 2; }
}
@media (max-width: 599px) {
  .device, .project:nth-child(even) .device,
  .js .project.reveal.is-in .device, .js .project.reveal.is-in:nth-child(even) .device { transform: none; }
  .device-bar { height: 26px; } .device-bar i { width: 7px; height: 7px; }
  .device-url { font-size: 9.5px; height: 16px; }
  .device-chip { font-size: 9.5px; padding: 7px 12px; bottom: -14px; }
  .project-actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .device, .project:nth-child(even) .device, .js .project.reveal .device, .js .project.reveal.is-in .device { transform: none !important; transition: none; opacity: 1; }
}

/* ==========================================================================
   PROCESO
   ========================================================================== */
.steps { position: relative; display: grid; gap: 0; }
.steps::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 1px; background: var(--line-strong); }
.steps::after { content: ""; position: absolute; left: 7px; top: 8px; width: 1px; height: calc((100% - 16px) * var(--p, 0)); background: var(--terra); transition: height 1.6s var(--ease); }
.step { position: relative; padding: 0 0 52px 52px; }
.step:last-child { padding-bottom: 0; }
.step-node { position: absolute; left: 0; top: 4px; width: 15px; height: 15px; border-radius: 50%; background: var(--cream); border: 1px solid var(--line-strong); z-index: 1; transition: border-color .5s; }
.step-node::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--terra); transform: scale(0); transition: transform .5s var(--ease); }
.step.is-in .step-node { border-color: var(--terra); }
.step.is-in .step-node::after { transform: scale(1); }
.step-n { display: block; font-family: var(--f-serif); font-size: clamp(3rem, 5vw, 4.4rem); line-height: 1; letter-spacing: -.02em; color: var(--camel); text-transform: none; }
.step h3 { font-family: var(--f-serif); font-weight: 400; font-size: clamp(1.7rem, 2.3vw, 2.05rem); line-height: 1.1; margin: 14px 0 12px; }
.step p { color: var(--muted); max-width: 30ch; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 40px; }
  .steps::before { left: 8px; right: 8px; top: 7px; bottom: auto; width: auto; height: 1px; }
  .steps::after { left: 8px; top: 7px; height: 1px; width: calc((100% - 16px) * var(--p, 0)); transition: width 1.8s var(--ease); }
  .step { padding: 56px 0 0; }
  .step-node { top: 0; }
}

/* ==========================================================================
   PRECIOS
   ========================================================================== */
.pricing { background: var(--ivory); }
.plans { display: grid; gap: 20px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 40px 32px 34px; background: var(--cream); border: 1px solid transparent; border-radius: var(--radius-lg); transition: border-color .5s var(--ease), transform .6s var(--ease); }
.plan:hover { border-color: var(--camel); transform: translateY(-4px); }
.plan-featured { background: var(--deep); color: var(--ivory); }
.plan-featured:hover { border-color: var(--terra); }
.plan-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--muted); }
.plan-featured .plan-head { color: var(--muted-dark); }
.plan-name { font-family: var(--f-serif); font-weight: 400; font-size: 2.1rem; line-height: 1; color: var(--ink); margin-top: 28px; }
.plan-featured .plan-name { color: var(--ivory); }
.plan-audience { color: var(--muted); font-size: .97rem; margin-top: 10px; min-height: 3.3em; }
.plan-featured .plan-audience { color: var(--muted-dark); }
.plan-price { display: flex; align-items: baseline; gap: 10px; margin: 28px 0; padding: 26px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.plan-featured .plan-price { border-color: var(--line-dark); }
.plan-from { font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .18em; color: var(--muted); }
.plan-featured .plan-from { color: var(--muted-dark); }
.plan-amount { font-family: var(--f-serif); font-size: clamp(3.8rem, 5.4vw, 4.8rem); line-height: .9; letter-spacing: -.03em; color: var(--cacao); }
.plan-featured .plan-amount { color: var(--camel); }
.plan-cur { font-family: var(--f-serif); font-size: 2rem; color: var(--cacao); }
.plan-featured .plan-cur { color: var(--camel); }
.plan-intro { font-size: 13.5px; color: var(--muted); margin-bottom: 10px; }
.plan-featured .plan-intro { color: var(--muted-dark); }
.plan ul { margin-bottom: 34px; flex: 1; }
.plan li { display: flex; gap: 12px; padding: 8px 0; font-size: .97rem; color: var(--ink-2); }
.plan-featured li { color: #EBD8CA; }
.plan li svg { flex: none; width: 15px; height: 15px; margin-top: 5px; color: var(--terra); }
.plan-featured li svg { color: var(--camel); }
.plan .btn { width: 100%; }
@media (min-width: 960px) { .plans { grid-template-columns: repeat(3, 1fr); gap: 24px; } .plan { padding: 48px 38px 38px; } .plan-featured { transform: translateY(-16px); } .plan-featured:hover { transform: translateY(-20px); } }

/* Escala entre planes */
.plan-scale { display: grid; gap: 32px; margin-bottom: clamp(48px, 6vw, 72px); padding: clamp(28px, 4vw, 48px); background: var(--cream); border-radius: var(--radius-lg); }
.plan-scale-title { font-family: var(--f-serif); font-weight: 400; font-size: clamp(1.9rem, 3vw, 2.5rem); line-height: 1.05; }
.plan-scale-title em { color: var(--terra); }
.plan-scale-intro p { margin-top: 14px; color: var(--muted); max-width: 40ch; }
.scale-axes { display: grid; gap: 0; counter-reset: none; }
.scale-axes li { display: grid; grid-template-columns: 44px 1fr; gap: 4px 12px; padding: 18px 0; border-top: 1px solid var(--line); }
.scale-n { grid-row: span 2; font-family: var(--f-serif); font-size: 1.15rem; color: var(--terra); }
.scale-axes h4 { margin: 0; font-family: var(--f-serif); font-weight: 400; font-size: 1.4rem; line-height: 1.15; }
.scale-axes p { color: var(--muted); font-size: .95rem; }
@media (min-width: 960px) {
  .plan-scale { grid-template-columns: .9fr 2fr; gap: 56px; align-items: start; }
  .scale-axes { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .scale-axes li { grid-template-columns: 1fr; padding: 22px 0 0; }
  .scale-n { grid-row: auto; }
}
.plan-tagline { margin-top: 12px; min-height: 2.5em; font-family: var(--f-serif); font-style: italic; font-size: 1.3rem; line-height: 1.25; color: var(--terra); }
.plan-featured .plan-tagline { color: var(--camel); }
/* Páginas y rondas de revisión de cada plan */
.plan-specs { display: grid; grid-template-columns: 1.25fr 1fr; margin: -8px 0 28px; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.plan-featured .plan-specs { border-color: var(--line-dark-strong); }
.plan-spec { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; }
.plan-spec + .plan-spec { border-left: 1px solid var(--line); }
.plan-featured .plan-spec + .plan-spec { border-left-color: var(--line-dark-strong); }
.spec-k { font-size: 10.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.plan-featured .spec-k { color: var(--muted-dark); }
.spec-v { font-family: var(--f-serif); font-size: 1.6rem; line-height: 1; color: var(--ink); }
.spec-v small { font-family: var(--f-sans); font-size: 12.5px; letter-spacing: .02em; color: var(--muted); }
.plan-featured .spec-v { color: var(--ivory); }
.plan-featured .spec-v small { color: var(--muted-dark); }
.plan-spec-pages .spec-v { font-size: 2.6rem; color: var(--cacao); }
.spec-note { font-size: 12px; line-height: 1.35; color: var(--muted); }
.plan-featured .spec-note { color: var(--muted-dark); }
.plan-featured .plan-spec-pages .spec-v { color: var(--camel); }

.pricing-notes { display: grid; gap: 14px; margin-top: 64px; padding-top: 36px; border-top: 1px solid var(--line-strong); }
.pricing-notes li { display: flex; gap: 16px; font-size: 14.5px; color: var(--muted); }
.pricing-notes .mono { flex: none; width: 22px; height: 22px; display: grid; place-items: center; border: 1px solid var(--terra); border-radius: 50%; font-family: var(--f-serif); font-style: italic; font-size: 13px; letter-spacing: 0; text-transform: none; color: var(--terra); margin-top: 1px; }
@media (min-width: 860px) { .pricing-notes { grid-template-columns: 1fr 1fr; gap: 18px 56px; } }

/* ==========================================================================
   MANTENIMIENTO
   ========================================================================== */
.maintenance { overflow: hidden; }
.maintenance::before { content: ""; position: absolute; right: -10%; top: -20%; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(205,161,123,.22), transparent 65%); pointer-events: none; }
.maint-top { position: relative; display: grid; gap: 56px; align-items: end; margin-bottom: clamp(72px, 9vw, 120px); }
.maint-intro .lead { margin-top: 28px; color: #EBD3C2; }
.maint-price { position: relative; padding: 40px 36px; border-radius: var(--radius-lg); background: var(--ivory); color: var(--ink); }
.tag { display: inline-block; padding: 6px 14px; font-size: 10.5px; color: var(--cacao); border: 1px solid rgba(113,60,41,.35); border-radius: 100px; }
.price-big { display: flex; align-items: baseline; gap: 12px; margin: 22px 0 14px; }
.price-num { font-family: var(--f-serif); font-size: clamp(5rem, 9vw, 7rem); line-height: .85; letter-spacing: -.03em; color: var(--cacao); }
.price-unit { font-size: 15px; letter-spacing: .06em; color: var(--muted); }
.maint-price-note { color: var(--muted); font-size: .98rem; margin-bottom: 28px; }
.maint-price-note strong { color: var(--ink); font-weight: 600; }
.maint-price .btn-accent { background: var(--deep); color: var(--ivory); }
.maint-price .btn-accent::before { background: var(--cacao); }
@media (min-width: 960px) { .maint-top { grid-template-columns: 1.4fr 1fr; gap: 96px; } }

.maint-sub { color: var(--beige); margin-bottom: 22px; }
.maint-included { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line-dark-strong); }
.maint-included li { display: grid; grid-template-columns: 44px 1fr; gap: 0 14px; padding: 28px 0; border-bottom: 1px solid var(--line-dark); }
.maint-included .mono { font-family: var(--f-serif); font-size: 1.15rem; letter-spacing: 0; color: var(--beige); padding-top: 0; }
.maint-included h4 { margin: 0 0 6px; font-family: var(--f-serif); font-weight: 400; font-size: 1.45rem; line-height: 1.15; }
.maint-included p { color: #E6CBB7; font-size: .95rem; }
@media (min-width: 720px) { .maint-included { grid-template-columns: 1fr 1fr; column-gap: 48px; } }
@media (min-width: 1080px) { .maint-included { grid-template-columns: repeat(3, 1fr); column-gap: 56px; } }

.requests { display: grid; gap: 40px; margin-top: clamp(72px, 9vw, 112px); padding: clamp(32px, 4.5vw, 64px); border-radius: var(--radius-lg); background: var(--deep); }
.req-visual { display: flex; flex-direction: column; gap: 18px; }
.req-slots { display: flex; gap: 14px; }
.req-slot { position: relative; width: 66px; height: 66px; border: 1px solid var(--camel); border-radius: 50%; display: grid; place-items: center; font-family: var(--f-serif); font-size: 2.1rem; color: var(--camel); }
.req-caption { color: var(--muted-dark); }
.req-copy .h3 { font-family: var(--f-serif); font-weight: 400; font-size: clamp(2rem, 3.2vw, 2.8rem); line-height: 1.05; margin-bottom: 18px; }
.req-copy > p { color: #E6CBB7; max-width: 60ch; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 30px; }
.chips li { font-size: 13.5px; padding: 7px 14px; border-radius: 100px; border: 1px solid var(--line-dark-strong); color: #EBD8CA; }
.req-rules li { display: flex; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line-dark); color: #E6CBB7; font-size: .97rem; }
.req-rules li strong { color: var(--ivory); font-weight: 600; }
.req-rules svg { flex: none; width: 15px; height: 15px; margin-top: 5px; color: var(--camel); }
@media (min-width: 900px) { .requests { grid-template-columns: 240px 1fr; gap: 64px; } }

.maint-excluded { display: grid; gap: 30px; margin-top: clamp(64px, 8vw, 96px); padding-top: 44px; border-top: 1px solid var(--line-dark-strong); }
.maint-excluded .h3 { font-family: var(--f-serif); font-weight: 400; font-size: 2.2rem; }
.maint-excluded p { color: #E6CBB7; margin-top: 14px; max-width: 42ch; }
.x-list { display: grid; gap: 0 48px; }
.x-list li { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line-dark); color: #EBD8CA; font-size: .97rem; }
.x-list svg { flex: none; width: 13px; height: 13px; margin-top: 6px; color: var(--beige); opacity: .8; }
@media (min-width: 900px) { .maint-excluded { grid-template-columns: .8fr 1.6fr; gap: 72px; } .x-list { grid-template-columns: 1fr 1fr; } }

/* ==========================================================================
   POR QUÉ
   ========================================================================== */
.why-grid { display: grid; gap: 64px; align-items: start; }
.why-photo { position: relative; border-radius: 999px 999px var(--radius-lg) var(--radius-lg); overflow: hidden; background: var(--beige); }
.why-photo img { width: 100%; aspect-ratio: 4 / 5.2; object-fit: cover; object-position: 50% 62%; transition: transform 1.6s var(--ease); }
.why-photo:hover img { transform: scale(1.03); }
.why-photo figcaption { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); white-space: nowrap; padding: 9px 16px; background: rgba(251,245,239,.92); color: var(--ink); border-radius: 100px; font-size: 10.5px; }
.why-copy .h2 { margin-bottom: 44px; }
.why-list li { display: grid; grid-template-columns: 56px 1fr; padding: 24px 0; border-top: 1px solid var(--line-strong); }
.why-list li:last-child { border-bottom: 1px solid var(--line-strong); }
.why-list .mono { font-family: var(--f-serif); font-size: 1.15rem; letter-spacing: 0; color: var(--terra); padding-top: 2px; }
.why-list h3 { font-family: var(--f-serif); font-weight: 400; font-size: 1.6rem; line-height: 1.15; margin-bottom: 6px; }
.why-list p { color: var(--muted); font-size: .98rem; }
@media (min-width: 960px) {
  .why-grid { grid-template-columns: .85fr 1.15fr; gap: 112px; }
  .why-photo { position: sticky; top: calc(var(--header-h) + 40px); }
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { background: var(--ivory); }
.faq-grid { display: grid; gap: 56px; }
.faq-head .lead { margin-top: 28px; }
.faq-list { border-top: 1px solid var(--line-strong); }
.faq-list details { border-bottom: 1px solid var(--line-strong); }
.faq-list summary { position: relative; list-style: none; cursor: pointer; padding: 26px 60px 26px 0; font-family: var(--f-serif); font-size: clamp(1.3rem, 1.9vw, 1.6rem); line-height: 1.25; transition: color .3s; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::before { content: ""; position: absolute; right: 0; top: 50%; width: 36px; height: 36px; margin-top: -18px; border: 1px solid var(--line-strong); border-radius: 50%; transition: border-color .3s, background-color .3s; }
.faq-list summary::after { content: "+"; position: absolute; right: 0; top: 50%; width: 36px; margin-top: -.6em; text-align: center; font-family: var(--f-sans); font-size: 18px; font-weight: 300; line-height: 1.2; color: var(--cacao); transition: transform .45s var(--ease); }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list summary:hover { color: var(--cacao); }
.faq-list summary:hover::before { border-color: var(--terra); }
.faq-a { padding: 0 60px 28px 0; color: var(--muted); max-width: 66ch; }
.faq-list details[open] .faq-a { animation: faqIn .5s var(--ease); }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (min-width: 960px) { .faq-grid { grid-template-columns: .8fr 1.4fr; gap: 104px; } .faq-head { position: sticky; top: calc(var(--header-h) + 48px); align-self: start; } }

/* ==========================================================================
   CTA FINAL
   ========================================================================== */
.cta { position: relative; overflow: hidden; padding: clamp(104px, 13vw, 180px) 0; }
/* Capas orgánicas sutiles en la base de la sección */
.cta::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 42%; pointer-events: none; opacity: .5;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 300' preserveAspectRatio='none'%3E%3Cpath fill='%23713C29' d='M0 120C240 60 420 170 720 120S1200 50 1440 100V300H0Z'/%3E%3Cpath fill='%23A76F48' fill-opacity='.55' d='M0 190C260 140 470 240 760 190S1210 130 1440 170V300H0Z'/%3E%3Cpath fill='%23BC8F62' fill-opacity='.35' d='M0 250C300 215 520 290 800 250S1230 210 1440 240V300H0Z'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat; }
.cta-inner { position: relative; z-index: 1; display: grid; gap: 64px; align-items: center; }
.cta-mark { width: 52px; height: 52px; color: var(--camel); --mark-back: var(--beige); --mark-ink: var(--deep); margin-bottom: 36px; }
.cta .lead { margin-top: 28px; color: #E6CBB7; }
.cta-photo { position: relative; border-radius: 999px 999px var(--radius-lg) var(--radius-lg); overflow: hidden; max-width: 440px; justify-self: center; width: 100%; }
.cta-photo img { width: 100%; aspect-ratio: 4 / 5.2; object-fit: cover; object-position: 45% 60%; }
@media (min-width: 960px) { .cta-inner { grid-template-columns: 1.4fr 1fr; gap: 104px; } .cta-photo { justify-self: end; } }

/* ==========================================================================
   CONTACTO
   ========================================================================== */
.contact-grid { display: grid; gap: 64px; align-items: start; }
.contact-intro .lead { margin-top: 28px; }
.contact-direct { margin-top: 40px; border-top: 1px solid var(--line-strong); }
.contact-direct:empty { display: none; }
.contact-direct li a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line-strong); text-decoration: none; transition: color .3s, padding .5s var(--ease); }
.contact-direct li a:hover { color: var(--cacao); padding-left: 8px; }
.contact-direct li a svg { width: 15px; height: 15px; }
.contact-direct .mono { color: var(--muted); font-size: 10.5px; }
.contact-direct strong { font-family: var(--f-serif); font-weight: 400; font-size: 1.4rem; overflow-wrap: anywhere; }
.contact-loc { margin-top: 36px; color: var(--muted); }

.form { position: relative; padding: clamp(28px, 4.5vw, 56px); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.form-row { display: grid; gap: 0 24px; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { margin: 0 0 24px; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { display: block; font-size: 13px; font-weight: 500; letter-spacing: .02em; margin-bottom: 8px; color: var(--ink-2); padding: 0; }
.req { color: var(--terra); }
.opt { color: var(--muted); font-weight: 400; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 2px; background: transparent; border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0;
  font-size: 16px; transition: border-color .3s, box-shadow .3s; appearance: none; -webkit-appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%2376594B' stroke-width='1.3'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 4px center; background-size: 14px; padding-right: 32px; }
.field textarea { resize: vertical; min-height: 130px; line-height: 1.55; border: 1px solid var(--line-strong); padding: 14px; border-radius: var(--radius-lg); }
.field input::placeholder, .field textarea::placeholder { color: #A88D7E; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--sand); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cacao); box-shadow: 0 1px 0 0 var(--cacao); }
.field textarea:focus { box-shadow: 0 0 0 1px var(--cacao); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.field-error { font-size: 13.5px; color: var(--danger); margin-top: 6px; }
.field-error:empty { display: none; }
.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.segmented label { margin: 0; position: relative; cursor: pointer; }
.segmented input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.segmented span { display: flex; align-items: center; min-height: 52px; padding: 10px 18px; font-size: 14.5px; font-weight: 400; border: 1px solid var(--line-strong); border-radius: 100px; background: transparent; transition: all .35s var(--ease); line-height: 1.25; }
.segmented span::before { content: ""; flex: none; width: 12px; height: 12px; margin-right: 10px; border: 1px solid var(--sand); border-radius: 50%; transition: all .3s; }
.segmented label:hover span { border-color: var(--sand); }
.segmented input:checked + span { border-color: var(--deep); background: var(--deep); color: var(--ivory); }
.segmented input:checked + span::before { border-color: var(--camel); background: var(--camel); box-shadow: inset 0 0 0 2px var(--deep); }
.segmented input:focus-visible + span { outline: 2px solid var(--cacao); outline-offset: 2px; }
.field.has-error .segmented span { border-color: var(--danger); }
@media (max-width: 479px) { .segmented { grid-template-columns: 1fr; } }
@media (min-width: 1080px) { .segmented { grid-template-columns: repeat(4, 1fr); } .segmented span { padding: 10px 14px; font-size: 13.5px; } }
.field-check { margin-top: 4px; }
.check { display: flex !important; gap: 12px; align-items: flex-start; font-weight: 400 !important; font-size: 14px !important; cursor: pointer; }
.check input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--cacao); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 12px; }
.form-foot .btn { min-width: 220px; }
.spinner { display: none; width: 15px; height: 15px; border: 1.5px solid rgba(247,229,216,.35); border-top-color: var(--ivory); border-radius: 50%; animation: spin .8s linear infinite; }
.is-sending .spinner { display: inline-block; }
.is-sending .btn { pointer-events: none; opacity: .85; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-status { margin-top: 22px; outline: none; }
.form-status:empty { display: none; }
.form-status .msg { display: flex; gap: 12px; padding: 16px 20px; border-radius: var(--radius-lg); font-size: .97rem; line-height: 1.55; }
.form-status .msg-ok { background: #EEF3EA; color: #2F5A32; border: 1px solid #CADBC4; }
.form-status .msg-err { background: #FBEAE4; color: #84281F; border: 1px solid #EFC6BB; }
.form-status .msg a { color: inherit; font-weight: 600; }
.form.is-done .form-row, .form.is-done .field, .form.is-done .form-foot { display: none; }
@media (max-width: 599px) { .form-foot .btn { width: 100%; } }
@media (min-width: 1080px) { .contact-grid { grid-template-columns: .8fr 1.4fr; gap: 96px; } .contact-intro { position: sticky; top: calc(var(--header-h) + 48px); } }

/* ==========================================================================
   PIE
   ========================================================================== */
.site-footer { padding: 96px 0 36px; }
.footer-grid { display: grid; gap: 48px; grid-template-columns: 1fr 1fr; }
.footer-brand { grid-column: 1 / -1; max-width: 400px; }
.footer-brand .brand-word { color: var(--ivory); }
.footer-brand p { color: var(--muted-dark); margin-top: 22px; font-size: .97rem; }
.footer-brand .footer-loc { font-size: 10.5px; color: var(--camel); }
.footer-nav h2 { font-size: 10.5px; font-weight: 500; color: var(--camel); margin-bottom: 20px; }
.footer-nav li { margin-bottom: 11px; }
.footer-nav a { color: #EBD8CA; text-decoration: none; font-size: .97rem; transition: color .3s; overflow-wrap: anywhere; }
.footer-nav a:hover { color: var(--camel); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 72px; padding-top: 26px; border-top: 1px solid var(--line-dark); color: var(--muted-dark); font-size: 10.5px; }
.to-top { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--muted-dark); }
.to-top svg { width: 13px; height: 13px; transform: rotate(-90deg); }
.to-top:hover { color: var(--camel); }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 64px; } .footer-brand { grid-column: auto; } }

/* ==========================================================================
   PÁGINAS LEGALES
   ========================================================================== */
.legal-page { padding: calc(var(--header-h) + 72px) 0 112px; }
.legal-page .container { max-width: 860px; }
.legal-page h1 { font-family: var(--f-serif); font-weight: 400; font-size: clamp(2.8rem, 6vw, 4.4rem); line-height: 1; letter-spacing: -.015em; }
.legal-page h2 { font-family: var(--f-serif); font-weight: 400; font-size: 1.7rem; line-height: 1.15; margin: 44px 0 12px; }
.legal-page p, .legal-page li { color: var(--ink-2); margin-bottom: 12px; }
.legal-page ul { list-style: disc; padding-left: 22px; }
.legal-page a { color: var(--cacao); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.legal-page a:hover { color: var(--terra); }

/* Aviso legal: cabecera y apartados numerados con línea fina */
.legal-head { padding-bottom: 40px; margin-bottom: 8px; border-bottom: 1px solid var(--line-strong); }
.legal-updated { margin: 18px 0 0 !important; font-size: 13px; letter-spacing: .04em; color: var(--muted) !important; }
.legal-sec { display: grid; grid-template-columns: 56px 1fr; gap: 0 20px; padding: 36px 0 26px; border-bottom: 1px solid var(--line); }
.legal-sec h2 { margin: 0 0 14px; }
.legal-n { font-family: var(--f-serif); font-style: italic; font-size: 1.1rem; line-height: 2.2rem; color: var(--terra); }
.legal-sec p { max-width: 62ch; }
.legal-data { display: grid; margin: 22px 0 10px; border-top: 1px solid var(--line); }
.legal-data > div { display: grid; grid-template-columns: 180px 1fr; gap: 4px 20px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.legal-data dt { font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); padding-top: 4px; }
.legal-data dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
@media (max-width: 599px) {
  .legal-sec { grid-template-columns: 1fr; padding-top: 30px; }
  .legal-n { line-height: 1; margin-bottom: 10px; }
  .legal-data > div { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Movimiento reducido: solo se desactivan los efectos en bucle.
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hv-layers .ly { animation: none; }
  .js .hv-frame { animation: none; }
  .js .hero-visual .b { animation-duration: .01s; animation-delay: 0s; }
}
