/* ==========================================================================
   OorteDigital · Estilos
   Fondo claro, texto oscuro, un verde de marca para lo importante.
   Una sola familia tipográfica y espacios generosos. Sin efectos decorativos.
   ========================================================================== */

@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/schibsted-grotesk-latin.woff2") format("woff2");
}

:root {
  --bg: #F0F4EF;
  --surface: #E3EBE2;
  --line: #D3DDD2;
  --ink: #17181A;
  --muted: #5D5E5A;
  --brand: #0E7A52;
  --brand-soft: #D5EBDD;
  --brand-ink: #0A5A3C;
  --danger: #B42318;

  --font: "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1120px;
  --gutter: clamp(1rem, .5rem + 2.5vw, 2rem);
  --section: clamp(4rem, 3rem + 4vw, 7rem);
  --radius: 12px;

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, iframe { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { margin: 0; line-height: 1.15; font-weight: 600; letter-spacing: -.02em; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: fixed; left: 1rem; top: -4rem; z-index: 100; background: var(--ink); color: var(--bg); padding: .6rem 1rem; border-radius: 8px; }
.skip:focus { top: 1rem; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .85rem 1.35rem; border-radius: 8px; border: 1px solid transparent;
  font-weight: 600; font-size: 1rem; line-height: 1; text-decoration: none; white-space: nowrap;
  transition: background-color .2s, border-color .2s, color .2s;
}
.btn--sm { padding: .6rem 1rem; font-size: .9375rem; }
.btn--primary { background: var(--ink); color: var(--bg); }
.btn--primary:hover { background: var(--brand); }
.btn--ghost { border-color: var(--line); background: #fff; }
.btn--ghost:hover { border-color: var(--ink); }
.btn:disabled { opacity: .6; cursor: progress; }

/* Navegación */
.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(240, 244, 239, .92);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.nav.is-scrolled { border-color: var(--line); }
.nav__inner { display: flex; align-items: center; gap: 2rem; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: .55rem; font-weight: 700; font-size: 1.1rem; letter-spacing: -.02em; text-decoration: none; }
.logo__mark { width: 18px; height: 18px; border-radius: 50%; border: 3.5px solid var(--brand); }
.nav__links { display: flex; gap: 1.75rem; margin-left: auto; }
.nav__links a { color: var(--muted); text-decoration: none; font-size: .9375rem; }
.nav__links a:hover { color: var(--ink); }
.nav__toggle { display: none; margin-left: auto; padding: .5rem .9rem; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: .9375rem; }
.mobile-menu { display: grid; padding: .5rem var(--gutter) 1rem; border-bottom: 1px solid var(--line); background: var(--bg); }
.mobile-menu a { padding: .85rem 0; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 1.125rem; }
.mobile-menu a:last-child { border-bottom: 0; }

/* Hero */
.hero { padding-block: clamp(3rem, 2rem + 4vw, 6rem) var(--section); }
.hero__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: center; }
.hero__copy { display: grid; gap: 1.5rem; min-width: 0; }
.hero h1 { font-size: clamp(2.1rem, 1.5rem + 2.4vw, 3.1rem); letter-spacing: -.035em; line-height: 1.08; }
.hero__sub { font-size: 1.1875rem; color: var(--muted); max-width: 34rem; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero__note { font-size: .9375rem; color: var(--muted); }
.hero { position: relative; overflow: hidden; }
.hero__visual { position: relative; min-width: 0; padding-right: 12%; padding-bottom: 3rem; isolation: isolate; }
.hero__visual::before {
  content: ""; position: absolute; z-index: -1; inset: -2.5rem -2rem -1rem 8%;
  border-radius: 32px; background: #CFE3D5;
}
.hero__desk, .hero__phone { display: block; padding: 0; border: 0; background: none; width: 100%; }
.shot { display: block; position: relative; overflow: hidden; max-width: 100%; background: #fff; }
.shot--desk {
  aspect-ratio: 4 / 3; border-radius: var(--radius); border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(23, 24, 26, .04), 0 16px 40px -16px rgba(23, 24, 26, .22);
}
.hero__phone { position: absolute; right: 0; bottom: 0; width: 30%; }
.shot--phone {
  aspect-ratio: 390 / 780; border-radius: 22px; border: 6px solid var(--ink);
  box-shadow: 0 20px 40px -12px rgba(23, 24, 26, .35);
}
.hero__desk:hover .shot--desk { border-color: var(--ink); }

/* Miniaturas a escala de las webs de ejemplo */
.shot img, .demo__frame img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* Secciones */
.section { padding-block: var(--section); border-top: 1px solid var(--line); }
.section--tint { background: var(--surface); border-top-color: transparent; }
.section--tint + .section { border-top-color: transparent; }
.section__head { display: grid; gap: .75rem; max-width: 40rem; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3rem); }
.section h2 { font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem); letter-spacing: -.03em; }
.section__head p { color: var(--muted); font-size: 1.125rem; }

.split { display: grid; grid-template-columns: 1fr 2fr; gap: 2rem clamp(2rem, 1rem + 4vw, 5rem); }
.split__title { position: sticky; top: 100px; align-self: start; }

.points { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem 2rem; }
.points > div { padding-top: 1.25rem; border-top: 1px solid var(--line); min-width: 0; }
.points dt { font-weight: 600; font-size: 1.1875rem; }
.points dd { margin: .4rem 0 0; color: var(--muted); }
.points__cta { padding: 1.5rem !important; border: 0 !important; border-radius: var(--radius); background: var(--brand-soft); }
.points__cta dd:last-child { margin-top: 1rem; }

/* Ejemplos */
.demos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem 1.5rem; }
.demo { display: grid; gap: .35rem; padding: 0; border: 0; background: none; text-align: left; min-width: 0; }
.demo__frame {
  display: block; position: relative; aspect-ratio: 16 / 10; max-width: 100%; overflow: hidden; margin-bottom: .6rem;
  border-radius: var(--radius); border: 1px solid var(--line); background: #fff; transition: border-color .2s;
}
.demo:hover .demo__frame { border-color: var(--ink); }
.demo__name { font-weight: 600; font-size: 1.125rem; }
.demo__desc { color: var(--muted); font-size: .9375rem; }

/* Pasos */
.steps { list-style: none; counter-reset: paso; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.steps li { counter-increment: paso; display: grid; gap: .5rem; align-content: start; padding-top: 1.25rem; border-top: 2px solid var(--ink); min-width: 0; }
.steps li::before { content: "Paso " counter(paso); font-size: .875rem; font-weight: 600; color: var(--brand); }
.steps h3 { font-size: 1.25rem; }
.steps p { color: var(--muted); }

/* Precio */
.price { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(2rem, 1rem + 4vw, 4rem); align-items: start; }
.price__main {
  display: grid; gap: .5rem; justify-items: start; min-width: 0;
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: 0 12px 32px -16px rgba(23, 24, 26, .15);
}
.price__amount { font-size: 1.125rem; color: var(--muted); }
.price__amount b { font-size: clamp(2.75rem, 2rem + 2.5vw, 3.75rem); font-weight: 700; color: var(--ink); letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.price__amount--sub b { font-size: clamp(1.75rem, 1.4rem + 1vw, 2.25rem); }
.price__guarantee { margin: 1rem 0 1.25rem; padding: .75rem 1rem; border-radius: 8px; background: var(--brand-soft); color: var(--brand-ink); font-weight: 600; }
.price__tax { font-size: .875rem; color: var(--muted); margin-top: .5rem; }
.price__detail { display: grid; gap: .4rem; min-width: 0; }
.price__detail h3 { font-size: 1.125rem; margin-top: 1.25rem; }
.price__detail h3:first-child { margin-top: 0; }
.price__detail p { color: var(--muted); }

/* Comparativa */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.compare { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 1rem; }
.compare th, .compare td { padding: 1rem 1.25rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare thead th { font-size: .9375rem; color: var(--muted); font-weight: 600; background: #F7FAF6; }
.compare tbody th { font-weight: 600; width: 24%; }
.compare td { color: var(--muted); }
.compare .is-me { background: var(--brand-soft); color: var(--ink); font-weight: 600; }
.compare thead .is-me { color: var(--brand-ink); }
@media (max-width: 640px) {
  .table-wrap { overflow: visible; }
  .compare { min-width: 0; }
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .compare tr { display: block; border-bottom: 1px solid var(--line); }
  .compare tbody tr:last-child { border-bottom: 0; }
  .compare tbody th { display: block; width: auto; padding: 1rem 1rem .5rem; border: 0; }
  .compare td { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 1rem; border: 0; text-align: right; }
  .compare td::before { content: attr(data-label); color: var(--muted); font-weight: 500; text-align: left; }
  .compare td.is-me { margin: .25rem .5rem .75rem; border-radius: 8px; }
  .compare td.is-me::before { color: var(--brand-ink); font-weight: 600; }
}
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Sobre mí */
.about { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }
.about__text { display: grid; gap: 1.1rem; min-width: 0; }
.about__text p { color: var(--muted); font-size: 1.125rem; max-width: 38rem; }
.career { min-width: 0; padding: clamp(1.25rem, 1rem + 1.5vw, 2rem); border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.career h3 { font-size: .9375rem; color: var(--muted); margin-bottom: 1rem; }
.career ol { list-style: none; margin: 0; padding: 0; display: grid; }
.career li { display: grid; gap: .15rem; padding: .9rem 0 .9rem 1.5rem; position: relative; border-left: 2px solid var(--line); }
.career li::before { content: ""; position: absolute; left: -7px; top: 1.2rem; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid var(--brand); }
.career li:first-child::before { background: var(--brand); }
.career b { font-size: 1.0625rem; }
.career span { color: var(--muted); font-size: .9375rem; }
.career__now { margin-left: .5rem; padding: .15rem .5rem; border-radius: 999px; background: var(--brand-soft); color: var(--brand-ink); font-style: normal; font-size: .75rem; font-weight: 600; vertical-align: middle; }
.career__total { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .9375rem; }
.career__total b { color: var(--ink); }

/* Banda de llamada a la acción */
.cta-band { background: var(--ink); color: var(--bg); padding-block: clamp(3rem, 2rem + 3vw, 4.5rem); }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.25rem); letter-spacing: -.03em; max-width: 34rem; }
.cta-band p { color: #B9BAB4; margin-top: .5rem; font-size: 1.125rem; }
.btn--light { background: var(--bg); color: var(--ink); }
.btn--light:hover { background: var(--brand-soft); }
.cta-band + .section { border-top-color: transparent; }

/* Preguntas */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem;
  padding: 1.15rem 0; font-weight: 600; font-size: 1.0625rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; color: var(--muted); font-weight: 400; font-size: 1.35rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); padding-bottom: 1.25rem; max-width: 40rem; }

/* Contacto */
.contact { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: start; }
.contact__text { display: grid; gap: 1rem; min-width: 0; }
.contact__text p { color: var(--muted); font-size: 1.125rem; }

.form { display: grid; gap: 1.1rem; min-width: 0; padding: clamp(1.25rem, 1rem + 1.5vw, 2rem); border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: grid; gap: .4rem; min-width: 0; }
.field label { font-size: .9375rem; font-weight: 600; }
.opt { color: var(--muted); font-weight: 400; }
.field input, .field textarea {
  width: 100%; padding: .75rem .9rem; border-radius: 8px; border: 1px solid #CBD6CA; background: #F7FAF6;
  font: inherit; font-size: 1rem; color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: #9A9A93; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.field.has-error input, .field.has-error textarea { border-color: var(--danger); }
.field__error { font-size: .875rem; color: var(--danger); }
.field__error:empty { display: none; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-size: .9375rem; color: var(--muted); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: .2rem 0 0; accent-color: var(--brand); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form .btn { justify-self: start; }
.form__status { font-size: .9375rem; }
.form__status:empty { display: none; }
.form__status.is-ok { color: var(--brand); }
.form__status.is-error { color: var(--danger); }
.form.is-sent > :not(.form__success) { display: none; }
.form__success { display: grid; gap: .5rem; padding: 1.5rem 0; }
.form__success h3 { font-size: 1.5rem; }
.form__success p { color: var(--muted); }

/* Pie */
.footer { border-top: 1px solid var(--line); padding-block: 2rem calc(2rem + env(safe-area-inset-bottom, 0px)); font-size: .9375rem; color: var(--muted); }
.footer__inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer nav { display: flex; gap: 1.25rem; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--ink); }

/* Ventana de ejemplos */
.modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: clamp(.5rem, 2vw, 1.5rem); }
.modal__backdrop { position: absolute; inset: 0; background: rgba(23, 24, 26, .55); }
.modal__panel {
  position: relative; display: grid; grid-template-rows: auto 1fr; width: 100%; max-width: 1280px; height: 100%; max-height: 880px;
  border-radius: var(--radius); overflow: hidden; background: var(--bg); box-shadow: 0 24px 64px rgba(0, 0, 0, .3);
}
.modal__bar { display: flex; align-items: center; gap: .75rem; padding: .6rem .75rem; border-bottom: 1px solid var(--line); }
.modal__title { flex: 1; min-width: 0; font-weight: 600; font-size: .9375rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seg { display: inline-flex; padding: 3px; border-radius: 8px; background: var(--surface); }
.seg__btn { padding: .35rem .7rem; border: 0; border-radius: 6px; background: transparent; font-size: .875rem; color: var(--muted); }
.seg__btn.is-active { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.modal__close { padding: .4rem .8rem; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: .875rem; }
.modal__close:hover { border-color: var(--ink); }
.modal__stage { display: grid; place-items: center; background: var(--surface); min-height: 0; overflow: hidden; }
.modal__device { width: 100%; height: 100%; background: #fff; overflow: hidden; }
.modal__device iframe { width: 100%; height: 100%; border: 0; }
.modal__device.is-mobile { width: min(390px, 100%); height: min(760px, calc(100% - 2rem)); border-radius: 20px; border: 8px solid var(--ink); }
body.modal-open { overflow: hidden; }

/* WhatsApp */
.btn--wa { justify-self: start; gap: .5rem; background: #1DA851; color: #fff; }
.btn--wa:hover { background: #178A43; }
.wa-float {
  position: fixed; z-index: 40; right: max(1rem, env(safe-area-inset-right, 0px));
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: #1DA851; color: #fff; box-shadow: 0 8px 24px -6px rgba(23, 24, 26, .35);
  transition: background-color .2s, transform .2s;
}
.wa-float:hover { background: #178A43; transform: translateY(-2px); }
body.modal-open .wa-float { display: none; }
@media (prefers-reduced-motion: reduce) { .wa-float { transition: none; } .wa-float:hover { transform: none; } }

/* Páginas legales */
.legal { padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem) var(--section); max-width: 720px; }
.legal h1 { font-size: clamp(2rem, 1.6rem + 2vw, 2.75rem); line-height: 1.1; margin: 0 0 .5rem; }
.legal h2 { font-size: 1.25rem; margin: 2.25rem 0 .5rem; }
.legal p, .legal li { color: var(--muted); }
.legal ul { padding-left: 1.25rem; }
.legal__date { font-size: .9375rem; margin: 0 0 1.5rem; }
.legal__back { display: inline-block; margin-bottom: 1.5rem; color: var(--brand-ink); font-weight: 600; text-decoration: none; }
.legal__back:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: block; }
  .hero__inner, .price, .about, .contact { grid-template-columns: 1fr; }
  .hero__visual { margin-top: 2.5rem; }
  .split { grid-template-columns: 1fr; }
  .split__title { position: static; }
  .steps { grid-template-columns: 1fr; }
  .points { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .demos { grid-template-columns: 1fr; }
  .points { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .hero__ctas .btn { flex: 1 1 auto; }
  .seg { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
