:root {
  --cal: #F4EFE6;
  --cal-2: #EDE6D9;
  --paper: #FBF8F2;
  --ink: #1C1B19;
  --stone: #5F584F;
  --line: #DDD3C2;
  --accent: #B04E2C;
  --accent-ink: #8E3C20;
  --accent-soft: #E07A52;
  --night: #22211E;
  --night-2: #2D2B27;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 18px;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--cal); color: var(--ink); font: 400 17px/1.6 var(--sans); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; margin: 0; }
h2 { font-size: clamp(34px, 5vw, 56px); max-width: 16ch; }
h3 { font-size: 24px; letter-spacing: -0.01em; }
p { margin: 0; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--ink); color: var(--cal); padding: 10px 14px; border-radius: 8px; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.wrap--narrow { width: min(820px, 100% - 32px); }
.kicker { font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 600; color: var(--stone); margin-bottom: 14px; }
.sub { color: var(--stone); font-size: 18px; margin-top: 16px; max-width: 60ch; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border-radius: 999px; background: var(--ink); color: var(--cal); font: 600 17px/1 var(--sans); text-decoration: none; border: 2px solid var(--ink); cursor: pointer; transition: transform .15s ease, background .15s ease, color .15s ease; }
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--cal); }
.btn--light { background: var(--cal); color: var(--ink); border-color: var(--cal); }
.btn--light:hover { background: var(--accent-soft); border-color: var(--accent-soft); color: var(--ink); }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 15px; }

/* Cabecera */
.top { position: sticky; top: 0; z-index: 50; background: rgba(244, 239, 230, .9); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.is-scrolled { border-bottom-color: var(--line); }
.top__in { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand__mark { width: 34px; height: 34px; }
.brand__word { font-family: var(--serif); font-weight: 600; font-size: 28px; letter-spacing: -0.03em; line-height: 1; }
.brand__word--sm { font-size: 22px; }
.dot { color: var(--accent); }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 16px; padding: 10px 0; }
.nav a:hover { color: var(--accent-ink); }
@media (max-width: 860px) {
  .nav { display: none; }
  .top__in > .btn { margin-left: auto; }
}

/* Portada */
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 110px); }
.hero__in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(46px, 7vw, 88px); letter-spacing: -0.015em; word-spacing: 0.04em; }
.hero h1 em { font-style: italic; font-weight: 500; color: var(--accent); }
.lead { font-size: clamp(19px, 2vw, 22px); color: var(--stone); margin-top: 24px; max-width: 32ch; }
.lead strong { color: var(--ink); font-weight: 600; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.trust { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--stone); font-size: 15px; font-weight: 500; }
.trust li { display: flex; align-items: center; gap: 8px; }
.trust li::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }
.hero__art { position: relative; aspect-ratio: 1 / 0.92; }
.laptop { position: absolute; inset: 4% 0 auto 0; border-radius: 14px; overflow: hidden; background: var(--ink); padding: 10px 10px 12px; box-shadow: 0 30px 70px -30px rgba(28, 27, 25, .55); }
.laptop::before { content: ""; display: block; height: 14px; margin: -2px 0 8px; background: radial-gradient(circle, #6b645a 3px, transparent 3.5px) 4px 50% / 14px 14px repeat-x; width: 48px; }
.laptop img { border-radius: 6px; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; width: 100%; }
.phone { position: absolute; width: 34%; border-radius: 32px; background: var(--ink); padding: 8px; box-shadow: 0 30px 60px -24px rgba(28, 27, 25, .6); }
.phone img { border-radius: 25px; aspect-ratio: 9 / 19.5; object-fit: cover; object-position: top; width: 100%; }
.phone--a { right: -2%; bottom: 0; transform: rotate(4deg); }
@media (max-width: 900px) {
  .hero__in { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero__art { max-width: 560px; }
}

/* Secciones */
.sec { padding: clamp(64px, 9vw, 120px) 0; }
.sec--alt { background: var(--paper); border-block: 1px solid var(--line); }
.sec--dark { background: var(--night); color: var(--cal); }
.sec--dark .kicker { color: #BDB4A6; }

/* Planes */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 48px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 32px 28px 28px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); }
.plan--star { border: 2px solid var(--ink); }
.plan--dark { background: var(--night); color: var(--cal); border-color: var(--night); }
.badge { position: absolute; top: -14px; left: 26px; background: var(--accent); color: #fff; font-size: 13px; font-weight: 600; padding: 5px 12px; border-radius: 999px; }
.plan h3 { font-size: 30px; }
.plan__for { color: var(--stone); font-size: 15px; min-height: 2.8em; }
.plan--dark .plan__for, .plan--dark .plan__time { color: #BDB4A6; }
.price { font-family: var(--serif); display: flex; align-items: baseline; gap: 8px; }
.price span { font-size: 56px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; color: var(--accent); }
.plan--dark .price span { color: var(--accent-soft); }
.price small { font-family: var(--sans); font-size: 15px; font-weight: 600; color: var(--stone); text-transform: uppercase; letter-spacing: .1em; }
.plan--dark .price small { color: #BDB4A6; }
.ticks { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 10px; font-size: 16px; }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 12px; height: 7px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }
.plan--dark .ticks li::before { border-color: var(--accent-soft); }
.plan__time { margin-top: auto; padding-top: 10px; font-size: 14px; font-weight: 600; color: var(--stone); }
.plan .btn { width: 100%; }
.plan--dark .btn--ghost { color: var(--cal); border-color: var(--cal); }
@media (max-width: 960px) { .plans { grid-template-columns: minmax(0, 1fr); max-width: 520px; } }

.extras { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 20px; }
.extras__col { background: var(--cal-2); border-radius: var(--r); padding: 28px; }
.extras__col > p { color: var(--stone); font-size: 15px; margin-top: 8px; }
.rows { margin: 16px 0 0; display: grid; }
.rows > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.rows > div:last-child { border-bottom: 0; }
.rows dt { font-weight: 600; }
.rows dt small { display: block; font-weight: 400; color: var(--stone); font-size: 14px; margin-top: 2px; }
.rows dd { margin: 0; font-family: var(--serif); font-weight: 700; font-size: 20px; white-space: nowrap; }
@media (max-width: 760px) { .extras { grid-template-columns: minmax(0, 1fr); } }

/* Trabajos */
.works { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 48px; }
.work { display: flex; flex-direction: column; background: var(--cal); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; text-decoration: none; color: var(--ink); transition: transform .2s ease, box-shadow .2s ease; }
.work:hover { transform: translateY(-3px); box-shadow: 0 24px 50px -30px rgba(28, 27, 25, .5); color: var(--ink); }
.work img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top; width: 100%; border-bottom: 1px solid var(--line); }
.work--wide { grid-column: span 2; grid-row: span 2; }
.work--wide img { aspect-ratio: auto; flex-grow: 1; min-height: 0; }
.work__meta { padding: 18px 20px 20px; }
.work__meta h3 { font-size: 22px; }
.work__meta p { color: var(--stone); font-size: 15px; margin-top: 4px; }
@media (max-width: 960px) {
  .works { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work--wide { grid-row: auto; }
  .work--wide img { aspect-ratio: 16 / 10; }
}
@media (max-width: 620px) {
  .works { grid-template-columns: minmax(0, 1fr); }
  .work--wide { grid-column: auto; }
}

/* Pasos */
.steps { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; counter-reset: s; }
.steps li { counter-increment: s; border-top: 2px solid var(--ink); padding-top: 20px; }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; font-family: var(--serif); font-size: 44px; font-weight: 700; color: var(--accent); line-height: 1; margin-bottom: 14px; }
.steps h3 { font-size: 22px; }
.steps p { color: var(--stone); margin-top: 8px; font-size: 16px; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; } }
@media (max-width: 520px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* Preguntas */
.faq { margin-top: 36px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; padding: 14px 0; font-weight: 600; font-size: 19px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--serif); font-size: 30px; font-weight: 500; color: var(--accent); line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--stone); max-width: 64ch; }

/* Contacto */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.contact__txt > p:not(.kicker) { color: #CFC7BA; margin-top: 18px; font-size: 18px; max-width: 42ch; }
.contact__alt a { color: var(--accent-soft); }
.form { display: grid; gap: 16px; background: var(--night-2); border-radius: var(--r); padding: 28px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
.form .opt { font-weight: 400; color: #A9A094; }
.form input, .form select, .form textarea { font: 400 17px/1.4 var(--sans); color: var(--ink); background: var(--cal); border: 2px solid transparent; border-radius: 12px; padding: 12px 14px; min-height: 50px; width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--accent-soft); }
.form .btn { margin-top: 6px; }
.form__err { color: #F2A48A; font-size: 15px; }
@media (max-width: 860px) { .contact { grid-template-columns: minmax(0, 1fr); gap: 32px; } }

/* Pie */
.foot { background: var(--night); color: #A9A094; border-top: 1px solid #36332E; padding: 28px 0 96px; font-size: 14px; }
.foot__in { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.foot .brand__word { color: var(--cal); }
.foot nav { margin-left: auto; }
.foot a { color: #CFC7BA; }

/* WhatsApp flotante */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: #1F8F4E; color: #fff; box-shadow: 0 12px 30px -8px rgba(0, 0, 0, .45); transition: transform .15s; }
.wa-float:hover { transform: scale(1.06); color: #fff; }
.wa-float svg { width: 32px; height: 32px; }

/* Páginas legales */
.legal { padding: 56px 0 96px; }
.legal h1 { font-size: clamp(38px, 6vw, 60px); margin-bottom: 24px; }
.legal h2 { font-size: 26px; margin: 36px 0 10px; max-width: none; }
.legal p, .legal li { color: var(--stone); max-width: 70ch; }
.legal p + p { margin-top: 12px; }
