/* Estilos de la web pública de XOW. Fuente: mockup validado
   06_TEAM_SPACE/02_NUEVOS_PROYECTOS/XOW/mockups/web-minima/HTML/web-minima.html (QUA-1325).
   Layout: editorial, Stone ground, mucho aire; Indigo solo en titular secundario, CTA y una franja de cierre.
   Un solo aspecto (manual de marca v.01): no hay tema oscuro a propósito. */
:root {
  --charcoal: #0F0F10;
  --stone: #F4F2ED;
  --fog: #D9D9D9;
  --indigo: #081D3D;
  --mist: #E8ECF8;
  --white: #FFFFFF;
  --muted: #55565C;
  --line: #E2DFD7;
  --sans: "Sora", "Segoe UI", system-ui, -apple-system, sans-serif;
  --serif: "DM Serif Display", Georgia, "Times New Roman", serif;
  --wrap: 1120px;
  /* margen lateral de cabecera y portada: logo y texto de portada alineados */
  --edge: max(24px, 5vw);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--stone);
  color: var(--charcoal);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
}
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--indigo); outline-offset: 3px; border-radius: 4px; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}

/* marco de esquinas abiertas */
.frame { position: relative; }
.frame > i { position: absolute; width: var(--c, 18px); height: var(--c, 18px); border: 0 solid currentColor; pointer-events: none; }
.frame > i:nth-child(1) { top: 0; left: 0; border-top-width: var(--w, 2px); border-left-width: var(--w, 2px); border-top-left-radius: 6px; }
.frame > i:nth-child(2) { top: 0; right: 0; border-top-width: var(--w, 2px); border-right-width: var(--w, 2px); border-top-right-radius: 6px; }
.frame > i:nth-child(3) { bottom: 0; left: 0; border-bottom-width: var(--w, 2px); border-left-width: var(--w, 2px); border-bottom-left-radius: 6px; }
.frame > i:nth-child(4) { bottom: 0; right: 0; border-bottom-width: var(--w, 2px); border-right-width: var(--w, 2px); border-bottom-right-radius: 6px; }

/* cabecera */
header.site { border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; max-width: none; padding-left: var(--edge); padding-right: var(--edge); }
.logo { --c: 12px; --w: 1.6px; display: inline-flex; align-items: center; padding: 6px 12px; margin-left: -12px; text-decoration: none; color: var(--charcoal); }
.logo b { font-weight: 400; font-size: 22px; letter-spacing: 0.06em; line-height: 1; }
/* selector de idioma: cada idioma es una URL propia, así que son enlaces con aspecto de botón */
.lang { display: flex; gap: 2px; border: 1px solid var(--fog); border-radius: 999px; padding: 3px; }
.lang a {
  font: 600 12px/1 var(--sans); letter-spacing: 0.08em; padding: 7px 11px; border-radius: 999px;
  background: transparent; color: var(--muted); text-decoration: none;
}
.lang a[aria-current="true"] { background: var(--charcoal); color: var(--stone); }

/* portada: carrusel a sangre; el texto vive en la zona oscura izquierda de las fotos */
.hero { position: relative; background: var(--charcoal); color: var(--white); overflow: hidden; height: max(560px, calc(100vw * 941 / 1672)); }
.slides { position: absolute; inset: 0; }
.slide { position: absolute; inset: 0; width: 100%; height: 100%; max-width: 100%; object-fit: cover; object-position: right center; opacity: 0; transition: opacity 0.9s ease; }
.slide.on { opacity: 1; }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(15,15,16,.72) 0%, rgba(15,15,16,.45) 32%, rgba(15,15,16,0) 52%); }
.copy {
  position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; justify-content: center; gap: 40px;
  padding-left: max(var(--edge), env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); padding-block: 48px;
}
.copy > div:first-child { max-width: min(520px, 42vw); }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 10px; margin: 0 0 28px; }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--indigo); }
.hero .eyebrow { color: var(--fog); }
.hero .eyebrow::before { background: var(--mist); }
h1 { margin: 0; text-wrap: balance; }
h1 .a { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 4.4vw, 60px); line-height: 1.04; color: var(--white); }
h1 .b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 4.4vw, 60px); line-height: 1.04; color: #B9C6E6; margin-top: 4px; }
.lead { font-size: 17px; font-weight: 300; max-width: 36ch; margin: 24px 0 32px; color: rgba(244,242,237,.86); }
.hero .btn { background: var(--white); color: var(--indigo); }
.hero .btn:hover { background: var(--mist); }
.hero .cta small { color: rgba(244,242,237,.7); }
.hero .cta small span { color: var(--white); }
/* primera línea: una frase por foto, apiladas en la misma celda para que el titular no salte */
h1 .a { display: grid; }
h1 .a .v { grid-area: 1 / 1; opacity: 0; transition: opacity 0.8s ease; }
h1 .a .v.on { opacity: 1; }
.dots { display: flex; gap: 8px; }
.dots button { width: 28px; height: 18px; padding: 0; background: none; border: 0; cursor: pointer; position: relative; }
.dots button::after { content: ""; position: absolute; left: 0; right: 0; top: 8px; height: 2px; background: rgba(244,242,237,.3); transition: background 0.3s; }
.dots button[aria-pressed="true"]::after { background: var(--white); }
@media (prefers-reduced-motion: reduce) { .slide, h1 .a .v { transition: none; } }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.btn { display: inline-flex; align-items: center; gap: 10px; background: var(--indigo); color: var(--white); text-decoration: none; font-weight: 600; font-size: 15px; padding: 15px 24px; border-radius: 999px; }
.btn:hover { background: #0D2A57; }
.cta small { font-size: 14px; color: var(--muted); }
.cta small span { color: var(--charcoal); font-weight: 600; user-select: all; }

/* cómo funciona */
.how { background: var(--white); border-block: 1px solid var(--line); }
.how .wrap { padding-block: 80px; }
h2 { font-family: var(--sans); font-weight: 600; font-size: clamp(26px, 3vw, 34px); letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 44px; text-wrap: balance; max-width: 22ch; }
h2 em { font-family: var(--serif); font-style: normal; font-weight: 400; color: var(--indigo); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; list-style: none; padding: 0; margin: 0; counter-reset: s; }
.steps li { padding: 4px 32px 4px 0; counter-increment: s; }
.steps li + li { border-left: 1px solid var(--line); padding-left: 32px; }
/* número del paso dentro del marco de esquinas abiertas */
.steps .num {
  --c: 22px; --w: 2.5px; color: var(--indigo); display: inline-flex; align-items: center; justify-content: center;
  width: 108px; height: 92px; margin-bottom: 22px; font-weight: 600; font-size: 42px; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
/* subrayado que se dibuja al llegar a la sección */
mark.hl {
  color: inherit; background: linear-gradient(var(--mist), var(--mist)) no-repeat 0 88% / 0% 42%;
  padding: 0 4px; margin: 0 -4px; transition: background-size 1.1s cubic-bezier(.2,.7,.2,1) .2s;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.how.in mark.hl { background-size: 100% 42%; }
@media (prefers-reduced-motion: reduce) { mark.hl { transition: none; background-size: 100% 42%; } }
.steps h3 { font-size: 19px; font-weight: 600; margin: 0 0 8px; letter-spacing: -0.01em; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; max-width: 32ch; }
/* redes */
.channels .wrap { padding-block: 88px; text-align: center; }
.channels h2 { margin: 0 auto 12px; max-width: none; font-size: clamp(30px, 3.6vw, 44px); }
.channels .sub { margin: 0 auto 44px; color: var(--muted); font-size: 18px; font-weight: 300; max-width: 46ch; }
.nets { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.nets li {
  background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 30px 16px 26px;
  display: flex; flex-direction: column; align-items: center; gap: 12px; min-width: 0;
}
.nets li > svg { width: 52px; height: 52px; color: var(--charcoal); }
.nets b { font-size: 18px; font-weight: 600; }
.nets .ok { width: 30px; height: 30px; border-radius: 50%; background: var(--indigo); color: var(--white); display: inline-flex; align-items: center; justify-content: center; }
.nets .ok svg { width: 16px; height: 16px; }
.nets .soon { font-size: 13px; color: var(--muted); background: #ECEBE7; border-radius: 999px; padding: 6px 16px; line-height: 18px; }
.channels .foot { margin: 36px auto 0; color: var(--muted); font-size: 16px; }

/* firma */
.sign { background: var(--indigo); color: var(--stone); }
.sign .wrap { padding-block: 72px; display: grid; grid-template-columns: 1fr minmax(0, 440px); align-items: center; gap: 48px; }
.claim { display: flex; flex-direction: column; gap: 28px; }
.wl { background: var(--stone); color: var(--charcoal); border-radius: 10px; padding: 32px; }
.wl h2 { font-size: 22px; margin: 0 0 8px; max-width: none; }
.wl-intro { margin: 0 0 22px; color: var(--muted); font-size: 15px; }
.wl label { display: block; font-size: 13px; font-weight: 600; margin: 14px 0 6px; }
.wl input[type="email"], .wl input[type="text"], .wl select {
  width: 100%; font: 400 15px/1.3 var(--sans); color: var(--charcoal); background: var(--white);
  border: 1px solid var(--fog); border-radius: 8px; padding: 12px 14px;
}
.wl input:focus, .wl select:focus { outline: 2px solid var(--indigo); outline-offset: 1px; }
.wl label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 14px; margin-top: 18px; }
.wl label.check input { margin-top: 3px; accent-color: var(--indigo); }
.wl-err { color: #9B2C2C; font-size: 14px; margin: 14px 0 0; }
.wl .btn { width: 100%; justify-content: center; margin-top: 22px; border: 0; cursor: pointer; font-family: var(--sans); }
.wl .btn[disabled] { opacity: .6; cursor: progress; }
.wl-done h2 { font-family: var(--serif); font-weight: 400; font-size: 30px; color: var(--indigo); }
.wl-done p { margin: 0; color: var(--muted); }
.sign p.big { font-family: var(--serif); font-size: clamp(40px, 5vw, 60px); line-height: 1.02; margin: 0; color: var(--white); }
.sign .side { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; line-height: 1.9; color: var(--mist); }
.sign .side a { color: var(--white); text-decoration: none; border-bottom: 1px solid rgba(232,236,248,.4); letter-spacing: 0.06em; }
[hidden] { display: none !important; }

/* páginas legales */
.legal .wrap { padding-block: 64px 96px; }
.legal article { max-width: 70ch; }
.back { display: inline-block; font-size: 14px; color: var(--muted); text-decoration: none; margin-bottom: 36px; }
.back:hover { color: var(--charcoal); }
.legal h1 { font-family: var(--sans); font-weight: 600; font-size: clamp(32px, 4vw, 44px); letter-spacing: -0.02em; line-height: 1.1; }
.updated { color: var(--muted); font-size: 14px; margin: 14px 0 40px; }
.legal h2 { font-size: 19px; margin: 40px 0 10px; max-width: none; letter-spacing: -0.01em; }
.legal p, .legal li { color: #2A2B30; }
.legal ul, .legal ol { padding-left: 20px; }
.legal li + li { margin-top: 6px; }
dl.id { display: grid; grid-template-columns: max-content 1fr; gap: 10px 28px; margin: 0; padding: 24px; background: var(--white); border: 1px solid var(--line); border-radius: 6px; }
dl.id dt { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding-top: 3px; }
dl.id dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.box { background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 24px 28px; margin: 24px 0; }
.box ol { margin: 0; }

/* pie */
footer.site { border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
footer.site .wrap { padding-block: 40px 48px; display: grid; grid-template-columns: 1fr auto; gap: 24px 48px; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: flex-end; align-content: flex-start; }
footer.site nav a { text-decoration: none; color: var(--charcoal); }
footer.site nav a:hover { text-decoration: underline; }
footer.site address { font-style: normal; line-height: 1.8; }
footer.site address b { color: var(--charcoal); font-weight: 600; }

@media (max-width: 860px) {
  /* móvil: la foto arriba entera (se ven las tarjetas), el texto debajo sobre Charcoal */
  .hero { height: auto; }
  .slides { position: relative; aspect-ratio: 1672 / 941; max-width: 100%; }
  .hero::after { inset: 0 0 auto; aspect-ratio: 1672 / 941; height: auto; background: linear-gradient(180deg, rgba(15,15,16,0) 60%, rgba(15,15,16,1) 100%); }
  .copy { position: relative; inset: auto; gap: 28px; padding-block: 24px 40px; }
  .copy > div:first-child { max-width: none; }
  .dots { order: -1; }
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { border-left: 0; padding: 0 0 28px; }
  .steps li + li { border-top: 1px solid var(--line); padding-top: 28px; }
  footer.site .wrap { grid-template-columns: 1fr; }
  .sign .wrap { grid-template-columns: 1fr; }
  .nets { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .channels .wrap { padding-block: 64px; }
  .wl { padding: 24px; }
  footer.site nav { justify-content: flex-start; }
}
@media (max-width: 480px) {
  .wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .lead { font-size: 17px; }
  dl.id { grid-template-columns: 1fr; gap: 2px; }
  dl.id dd { margin-bottom: 12px; }
}
