/* =====================================================================
   URBIS — Landing pages de generación de leads
   Mobile first. Sin frameworks. Un solo archivo para las 4 landings.
   ===================================================================== */

/* --- Tokens ---------------------------------------------------------- */
:root {
  --navy-900: #091628;
  --navy-800: #0e2340;
  --navy-700: #14365f;
  --navy-100: #e8edf4;
  --navy-050: #f4f7fb;

  --ink:      #16202e;
  --ink-soft: #4a5868;
  --line:     #dde4ed;
  --white:    #ffffff;

  /* Acento por landing; cada variante lo redefine más abajo. */
  --accent:      #b8873b;
  --accent-dark: #966c2b;
  --accent-ink:  #ffffff;

  --radius:    14px;
  --radius-sm: 10px;
  --shadow:    0 18px 45px -24px rgba(9, 22, 40, .45);
  --shadow-lg: 0 30px 70px -30px rgba(9, 22, 40, .55);

  --wrap:   1140px;
  --gutter: 20px;

  --sans:   "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif:  "Fraunces", Georgia, "Times New Roman", serif;
}

.lp--startouch { --accent: #1b6b4f; --accent-dark: #13513c; }
.lp--storage   { --accent: #1f5d8c; --accent-dark: #17486c; }
.lp--espana    { --accent: #a8432f; --accent-dark: #863425; }

/* --- Base ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--navy-700); }

h1, h2, h3 { margin: 0 0 .5em; line-height: 1.18; font-weight: 600; letter-spacing: -.01em; }

p { margin: 0 0 1em; }

ul { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--navy-900);
  color: #fff;
  padding: 12px 18px;
}
.skip-link:focus { left: 8px; top: 8px; }

/* --- Layout ---------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding: 56px 0; }
.section--alt { background: var(--navy-050); }

.split { display: grid; gap: 32px; }

@media (min-width: 880px) {
  .section { padding: 84px 0; }
  .split { grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: start; }
}

/* --- Tipografía de bloque -------------------------------------------- */
.eyebrow {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow--light { color: #e4c88d; }
.lp--startouch .eyebrow--light { color: #9ddcbf; }
.lp--storage   .eyebrow--light { color: #a8d0ec; }
.lp--espana    .eyebrow--light { color: #f0b3a4; }

.h2 { font-family: var(--serif); font-size: clamp(27px, 5.2vw, 40px); }
.h3 { font-size: clamp(19px, 3vw, 22px); }

.lede { font-size: clamp(17px, 2.2vw, 19px); color: var(--ink-soft); }
.lede--narrow { max-width: 62ch; }

.note {
  margin-top: 24px;
  padding: 14px 18px;
  border-left: 3px solid var(--accent);
  background: var(--white);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--ink-soft);
  font-size: 15px;
}
.section--alt .note { background: var(--white); }

.source { margin: 18px 0 0; font-size: 14px; color: var(--ink-soft); }
.source a { color: var(--ink-soft); }

/* --- Botones --------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 13px 24px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }

.btn--ghost { background: transparent; border-color: currentColor; color: inherit; }
.hero .btn--ghost { color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); }
.form-success .btn--ghost { color: var(--navy-800); }
.form-success .btn--ghost:hover { background: var(--navy-050); }

.btn--sm { min-height: 44px; padding: 10px 18px; font-size: 14px; }
.btn--block { width: 100%; }

/* --- Header ---------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(9, 22, 40, .92);
  backdrop-filter: blur(8px);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}
.site-header__logo img { width: auto; height: 32px; }
@media (max-width: 480px) {
  .site-header .btn { font-size: 13px; padding: 9px 14px; min-height: 42px; }
  .site-header__logo img { height: 26px; }
}

/* --- Hero ------------------------------------------------------------ */
.hero {
  position: relative;
  isolation: isolate;
  color: #fff;
  background: var(--navy-900);
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(170deg, rgba(9, 22, 40, .93) 0%, rgba(9, 22, 40, .80) 55%, rgba(9, 22, 40, .92) 100%);
}
.hero__inner { padding: 52px 20px 56px; max-width: 760px; margin-inline: 0; }
@media (min-width: 880px) {
  .hero__inner { padding: 96px 20px 100px; margin-inline: auto; max-width: var(--wrap); }
  .hero__inner > * { max-width: 700px; }
}

.hero__title {
  font-family: var(--serif);
  font-size: clamp(31px, 7vw, 54px);
  margin-bottom: 16px;
}
.hero__sub {
  font-size: clamp(17px, 2.4vw, 20px);
  color: rgba(255, 255, 255, .88);
  margin-bottom: 24px;
}

.hero__figure {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 28px;
  padding: 16px 20px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16);
}
.hero__figure strong {
  font-family: var(--serif);
  font-size: clamp(34px, 8vw, 46px);
  line-height: 1;
  color: #fff;
}
.hero__figure span { font-size: 15px; color: rgba(255, 255, 255, .82); }

.hero__actions { display: grid; gap: 12px; }
@media (min-width: 560px) {
  .hero__actions { grid-auto-flow: column; justify-content: start; }
}

.hero__support {
  margin: 24px 0 0;
  font-size: 15px;
  color: rgba(255, 255, 255, .72);
  max-width: 58ch;
}

/* --- Trust strip ----------------------------------------------------- */
.trust { background: var(--navy-800); color: #fff; }
.trust__grid {
  display: grid;
  gap: 18px;
  padding-block: 24px;
}
@media (min-width: 720px) {
  .trust__grid { grid-template-columns: repeat(3, 1fr); gap: 28px; }
}
.trust__item { display: flex; align-items: baseline; gap: 10px; }
.trust__value {
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1;
  color: #fff;
  white-space: nowrap;
}
.trust__label { font-size: 14px; color: rgba(255, 255, 255, .78); }

/* --- Cards de producto (LP general) ---------------------------------- */
.cards { display: grid; gap: 22px; margin-top: 32px; }
@media (min-width: 900px) { .cards { grid-template-columns: repeat(3, 1fr); } }

.card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.card__media { aspect-ratio: 16 / 10; background: var(--navy-100); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }

.card__body { display: flex; flex-direction: column; flex: 1; padding: 22px; }
.card__title { font-family: var(--serif); font-size: 23px; margin-bottom: 4px; }
.card__from { margin: 0 0 10px; font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.card__claim {
  margin: 0 0 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 17px;
  font-weight: 600;
  color: var(--navy-800);
}
.card--startouch .card__claim { color: #1b6b4f; }
.card--storage   .card__claim { color: #1f5d8c; }
.card--espana    .card__claim { color: #a8432f; }

.card__text { font-size: 15px; color: var(--ink-soft); }
.card__actions { margin-top: auto; padding-top: 16px; }
.card--startouch .btn--primary { background: #1b6b4f; border-color: #1b6b4f; }
.card--startouch .btn--primary:hover { background: #13513c; border-color: #13513c; }
.card--storage   .btn--primary { background: #1f5d8c; border-color: #1f5d8c; }
.card--storage   .btn--primary:hover { background: #17486c; border-color: #17486c; }
.card--espana    .btn--primary { background: #a8432f; border-color: #a8432f; }
.card--espana    .btn--primary:hover { background: #863425; border-color: #863425; }

.card__link {
  display: block;
  margin-top: 12px;
  font-size: 14px;
  text-align: center;
  color: var(--ink-soft);
}

/* --- Listas de contenido --------------------------------------------- */
.facts {
  padding: 26px;
  background: var(--navy-050);
  border-radius: var(--radius);
}
.section--alt .facts { background: var(--white); }

.ticks { display: grid; gap: 12px; }
.ticks li {
  position: relative;
  padding-left: 28px;
  font-size: 15.5px;
  color: var(--ink-soft);
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .45em;
  width: 16px;
  height: 9px;
  border-left: 2.5px solid var(--accent);
  border-bottom: 2.5px solid var(--accent);
  transform: rotate(-45deg);
}

.benefits { display: grid; gap: 14px; margin-top: 30px; }
@media (min-width: 760px) { .benefits { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); } }
.benefits li {
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.benefits strong { display: block; margin-bottom: 4px; font-size: 16px; color: var(--navy-800); }
.benefits span { font-size: 15px; color: var(--ink-soft); }

/* --- Galería y figuras ------------------------------------------------ */
.gallery { display: grid; gap: 14px; margin-top: 30px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.gallery li { border-radius: var(--radius-sm); overflow: hidden; background: var(--navy-100); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.figure { margin: 0; }
.figure img { border-radius: var(--radius); }
.figure figcaption { margin-top: 10px; font-size: 14px; color: var(--ink-soft); }

/* --- Activos publicados (España) -------------------------------------- */
.assets { display: grid; gap: 20px; margin-top: 30px; }
@media (min-width: 820px) { .assets { grid-template-columns: repeat(2, 1fr); } }
.asset {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.asset__media { aspect-ratio: 16 / 9; }
.asset__media img { width: 100%; height: 100%; object-fit: cover; }
.asset__body { padding: 22px; }
.asset--text .asset__body { padding-top: 26px; border-top: 4px solid var(--accent); }
.asset__tag {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
}
.asset__body p:last-child { margin-bottom: 0; font-size: 15px; color: var(--ink-soft); }

/* --- Testimonios ------------------------------------------------------ */
.quotes { display: grid; gap: 18px; margin-top: 30px; }
@media (min-width: 860px) { .quotes { grid-template-columns: repeat(3, 1fr); } }
.quote {
  padding: 26px;
  background: var(--navy-050);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.quote blockquote { margin: 0 0 16px; }
.quote blockquote p {
  margin: 0;
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.45;
  color: var(--navy-800);
}
.quote blockquote p::before { content: "\201C"; }
.quote blockquote p::after  { content: "\201D"; }
.quote__author { margin: 0; font-size: 14px; color: var(--ink-soft); }
.quote__author strong { display: block; color: var(--ink); }

/* --- Persona ---------------------------------------------------------- */
.person {
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
}
.person p { margin: 0; font-size: 15.5px; color: var(--ink-soft); }

/* --- Formulario ------------------------------------------------------- */
.form-section { padding: 56px 0 72px; background: var(--navy-900); color: #fff; }
@media (min-width: 880px) { .form-section { padding: 90px 0 100px; } }

.form-section__inner { display: grid; gap: 32px; }
@media (min-width: 940px) {
  .form-section__inner { grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
}
.form-section__copy .h2 { color: #fff; }
.form-section__copy .lede { color: rgba(255, 255, 255, .82); }
.form-section__points { display: grid; gap: 10px; margin-top: 22px; }
.form-section__points li {
  position: relative;
  padding-left: 24px;
  font-size: 15px;
  color: rgba(255, 255, 255, .78);
}
.form-section__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.form-card {
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-lg);
}
@media (min-width: 560px) { .form-card { padding: 32px; } }

.field { margin-bottom: 18px; border: 0; padding: 0; }
.field--intent { margin-bottom: 22px; }

.label {
  display: block;
  margin-bottom: 7px;
  padding: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy-800);
}

.input {
  width: 100%;
  min-height: 52px;
  padding: 13px 15px;
  font: inherit;
  font-size: 16px;      /* 16px evita el zoom automático en iOS */
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input:hover { border-color: #c3ccd9; }
.input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
  outline: none;
}
.input[aria-invalid="true"] { border-color: #c0392b; }

.phone { display: grid; grid-template-columns: 112px 1fr; gap: 8px; }
.phone__cc {
  min-height: 52px;
  padding: 13px 10px;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
}
.phone__cc:focus { border-color: var(--accent); outline: none; }

.field__hint { margin: 6px 0 0; font-size: 13px; color: var(--ink-soft); }
.field__error { margin: 6px 0 0; font-size: 13.5px; font-weight: 500; color: #c0392b; }
.field__error:empty { display: none; }

/* Selector de intención */
.intent { display: grid; gap: 10px; }
.intent__option {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 15px;
  transition: border-color .15s ease, background-color .15s ease;
}
.intent__option:hover { border-color: #c3ccd9; }
.intent__option input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--accent);
}
.intent__option:has(input:checked) {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 7%, transparent);
}
.intent__option:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Honeypot: fuera de pantalla, nunca display:none (algunos bots lo detectan) */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-legal { margin: 14px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--ink-soft); }

.form-error {
  margin: 14px 0 0;
  padding: 12px 14px;
  font-size: 14px;
  color: #8c241a;
  background: #fdecea;
  border-radius: var(--radius-sm);
}

[data-submit][aria-busy="true"] { opacity: .72; pointer-events: none; }

/* Confirmación */
.form-success { text-align: center; padding: 8px 0; }
.form-success__mark {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  font-size: 26px;
  color: #fff;
  background: var(--accent);
  border-radius: 50%;
}
.form-success p { color: var(--ink-soft); }
.form-success .btn { margin-top: 10px; }

/* --- Footer ----------------------------------------------------------- */
.site-footer { padding: 44px 0 110px; background: var(--navy-900); color: rgba(255, 255, 255, .7); font-size: 14px; }
@media (min-width: 720px) { .site-footer { padding-bottom: 44px; } }

.site-footer__top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
}
.site-footer__top img { height: 30px; width: auto; }
.site-footer__offices { margin: 0; }

.site-footer__disclaimer { margin: 20px 0; font-size: 12.5px; line-height: 1.6; max-width: 90ch; }

.site-footer__legal { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer__legal a { color: rgba(255, 255, 255, .82); }

/* --- CTA sticky móvil -------------------------------------------------- */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
  transform: translateY(100%);
  transition: transform .22s ease;
}
.sticky-cta.is-visible { transform: translateY(0); }
@media (min-width: 720px) { .sticky-cta { display: none; } }
