/* ERREJOTA 222, S.L. — hoja de estilos única. Identidad «Horizonte»: azul marino, turquesa, Manrope. */

:root {
  --navy: #0f2433;
  --navy-2: #16384d;
  --navy-3: #1f5368;
  --sea: #2fb3c4;
  --foam: #8fd8e0;
  --paper: #f5f7f7;
  --paper-2: #e6ecee;
  --ice: #e6f4f6;
  --ice-2: #cfe8ec;
  --white: #ffffff;
  --muted: #4a6070;
  --on-dark: #d7e6ea;

  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mark: "Archivo", "Arial Black", sans-serif;
  --step-small: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-statement: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem);
  --step-head: clamp(2.25rem, 1.4rem + 3.4vw, 4rem);
  --step-display: clamp(2.5rem, 1rem + 5.6vw, 5.75rem);

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --section: clamp(96px, 12vw, 200px);
  --radius: 20px;
  --ease: cubic-bezier(.2, .7, .1, 1);

  /* La ola del logotipo, como imagen y como máscara */
  --wave-sea: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1280 120' preserveAspectRatio='none'%3E%3Cpath d='M0 40 Q213 0 426 40 T853 40 T1280 40 V120 H0Z' fill='%232fb3c4'/%3E%3C/svg%3E");
  --wave-navy: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1280 120' preserveAspectRatio='none'%3E%3Cpath d='M0 40 Q213 0 426 40 T853 40 T1280 40 V120 H0Z' fill='%230f2433'/%3E%3C/svg%3E");
  --wave-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1280 120' preserveAspectRatio='none'%3E%3Cpath d='M0 40 Q213 0 426 40 T853 40 T1280 40 V120 H0Z'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--navy);
  font: 400 var(--step-body)/1.55 var(--font);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: .08em; }
a:hover { text-decoration-thickness: .14em; }
:focus-visible { outline: 3px solid var(--sea); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--sea); color: var(--navy); }
h1, h2, h3, h4 { font-weight: 500; letter-spacing: -0.025em; line-height: 1.06; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--sea); color: var(--navy); padding: 10px 16px; border-radius: 999px; font-weight: 600; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

.ph { position: relative; overflow: hidden; background: var(--navy-2); }
.ph img { width: 100%; height: 100%; object-fit: cover; color: transparent; font-size: 0; }

/* Viñeta: un pequeño trazo de ola */
.list li::before, .panel .copy li::before, .tier li::before {
  content: ""; flex: none; width: 1.1em; height: .5em; transform: translateY(-.05em);
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 10'%3E%3Cpath d='M1 6 Q4 2 7 6 T13 6 T21 6' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 10'%3E%3Cpath d='M1 6 Q4 2 7 6 T13 6 T21 6' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.btn {
  display: inline-flex; align-items: center; gap: .6em;
  min-height: 52px; padding: 0 1.6em; border-radius: 999px;
  background: var(--sea); color: var(--navy);
  font-weight: 600; text-decoration: none; letter-spacing: -0.01em;
  transition: transform .25s var(--ease), background-color .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); background: var(--foam); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn--ink { background: var(--navy); color: var(--white); }
.btn--ink:hover { background: var(--navy-3); }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Cabecera ---------- */
.bar {
  position: absolute; inset: 0 0 auto; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 24px var(--gutter);
  color: var(--white);
}
.mark { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 700; font-size: 1.0625rem; letter-spacing: .06em; }
.mark svg { width: 44px; height: 44px; flex: none; }
.bar nav ul { display: flex; gap: clamp(14px, 2.5vw, 32px); list-style: none; margin: 0; padding: 0; }
.bar nav a { text-decoration: none; font-weight: 500; }
.bar nav a:hover { text-decoration: underline; }
.bar nav li:last-child a { border: 1.5px solid rgba(255, 255, 255, .5); padding: 9px 18px; border-radius: 999px; }
.bar nav li:last-child a:hover { border-color: var(--white); text-decoration: none; }
@media (max-width: 720px) { .bar nav li:not(:last-child) { display: none; } }

/* ---------- Hero: cielo marino, foto circular y línea de horizonte ---------- */
.hero {
  position: relative; min-height: max(680px, 100svh); overflow: hidden; isolation: isolate;
  color: var(--white);
  background: var(--navy);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: linear-gradient(180deg, rgba(15, 36, 51, .78), rgba(15, 36, 51, .94)), url("img/fondo-mar.jpg") center / cover no-repeat;
}
.hero-inner {
  position: relative; z-index: 4;
  min-height: max(680px, 100svh);
  display: flex; flex-direction: column; justify-content: center;
  padding: 140px var(--gutter) clamp(180px, 18vw, 260px);
  max-width: calc(100% - min(92vh, 820px, 42vw) - var(--gutter));
}
.hero h1 { font-size: var(--step-display); font-weight: 500; letter-spacing: -0.03em; line-height: 1.02; }
.hero .lead { margin-top: 28px; font-size: var(--step-lead); line-height: 1.45; max-width: 32ch; color: var(--on-dark); }
.hero .actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; }
.hero .actions .plain { color: var(--white); font-weight: 500; }
.sun {
  position: absolute; z-index: 1;
  width: min(92vh, 820px, 42vw); aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  right: var(--gutter); bottom: calc(min(92vh, 820px, 42vw) * -0.18);
  border: 6px solid var(--white);
}
.sun .ph { height: 100%; }
.sun img { object-position: center 45%; }
.horizon {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  height: clamp(150px, 17vw, 240px);
  background: var(--wave-sea) center / 100% 100% no-repeat;
  pointer-events: none;
}
@media (max-width: 1100px) {
  .hero { display: flex; flex-direction: column; }
  .hero-inner { max-width: none; justify-content: flex-start; padding: 120px var(--gutter) 0; min-height: auto; flex: 1 0 auto; padding-bottom: 92vw; }
  .hero h1 { font-size: clamp(2.25rem, 10vw, 4rem); }
  .hero .lead { font-size: 1.0625rem; }
  .hero-inner { padding-bottom: min(92vw, 640px); }
  .sun { width: min(88vw, 620px); right: auto; left: 50%; translate: -50% 0; bottom: max(-14vw, -100px); border-width: 4px; }
  .horizon { height: min(34vw, 220px); }
}

/* ---------- Qué hacemos ---------- */
.what {
  position: relative; padding-block: var(--section);
  background: var(--paper);
  transition: background-color .6s var(--ease), color .6s var(--ease);
}
.statement { font-size: var(--step-statement); line-height: 1.3; font-weight: 500; letter-spacing: -0.02em; max-width: 34em; }
.sp { position: relative; text-decoration: underline wavy var(--sea); text-decoration-thickness: .07em; text-underline-offset: .24em; text-decoration-skip-ink: none; outline-offset: 6px; }
.sp .slot {
  position: absolute; left: 50%; bottom: calc(100% + 14px); z-index: 5;
  width: clamp(140px, 16vw, 200px); aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  border: 4px solid var(--white); background: var(--navy-2);
  opacity: 0; translate: -50% 10px; scale: .92; pointer-events: none;
  transition: opacity .3s var(--ease), translate .4s var(--ease), scale .4s var(--ease);
}
.sp .slot::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 26%; background: var(--wave-sea) center / 100% 100% no-repeat; }
.sp:hover .slot, .sp:focus-visible .slot { opacity: 1; translate: -50% 0; scale: 1; }
.slot img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: none) { .sp .slot { display: none; } }
.trade { margin-top: clamp(56px, 7vw, 96px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px clamp(32px, 6vw, 96px); max-width: 980px; }
.trade > div { border-top: 2px solid var(--navy); padding-top: 20px; }
.trade h3 { font-size: var(--step-lead); font-weight: 600; letter-spacing: -0.02em; margin-bottom: 10px; }
.trade p { max-width: 42ch; color: var(--muted); }
@media (max-width: 680px) { .trade { grid-template-columns: 1fr; } }

.temp { margin-top: clamp(72px, 9vw, 140px); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.temp h2 { font-size: var(--step-head); }
.temp .intro { margin-top: 18px; max-width: 40ch; color: var(--muted); }
.switch { margin-top: 32px; display: inline-flex; padding: 6px; border-radius: 999px; background: var(--paper-2); border: 0; min-inline-size: 0; }
.switch legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch label { display: inline-flex; flex-direction: column; padding: 10px 22px; border-radius: 999px; cursor: pointer; font-weight: 600; line-height: 1.2; transition: background-color .3s var(--ease), color .3s var(--ease); }
.switch label small { font-weight: 400; font-size: var(--step-small); }
.switch label:hover { background: rgba(15, 36, 51, .07); }
.switch input:checked + label { background: var(--navy); color: var(--white); }
.switch input:focus-visible + label { outline: 3px solid var(--sea); outline-offset: 2px; }
.list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; }
.list li { display: flex; gap: 14px; align-items: baseline; }
.list li::before { color: var(--sea); }
.mode-frozen { display: none; }
.stage { position: relative; aspect-ratio: 4 / 3; border-radius: 50%; overflow: hidden; aspect-ratio: 1; max-width: 620px; justify-self: center; width: 100%; }
.stage .ph { position: absolute; inset: 0; transition: opacity .6s var(--ease), transform 1.2s var(--ease); }
.stage .ph.frozen { opacity: 0; transform: scale(1.06); }
.stage::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 38%; z-index: 1; background: var(--wave-sea) center / 100% 100% no-repeat; }
.stage .temp-read {
  position: absolute; left: 50%; bottom: 8%; transform: translateX(-50%); z-index: 2;
  color: var(--navy); margin: 0;
  font-size: clamp(1.75rem, 1rem + 2.4vw, 3.25rem); font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.what:has(#t-frozen:checked) {
  background-color: var(--ice);
  background-image: linear-gradient(180deg, rgba(230, 244, 246, .84), rgba(230, 244, 246, .94)), url("img/fondo-hielo.jpg");
  background-size: cover;
}
.what:has(#t-frozen:checked) .switch { background: var(--ice-2); }
.what:has(#t-frozen:checked) .mode-fresh { display: none; }
.what:has(#t-frozen:checked) .mode-frozen { display: grid; }
.what:has(#t-frozen:checked) .temp-read .mode-frozen { display: inline; }
.what:has(#t-frozen:checked) .stage .ph.fresh { opacity: 0; transform: scale(1.06); }
.what:has(#t-frozen:checked) .stage .ph.frozen { opacity: 1; transform: none; }
@media (max-width: 860px) { .temp { grid-template-columns: 1fr; } .stage { order: -1; } }

/* ---------- Banda: foto a todo lo ancho con borde de ola ---------- */
.band-wrap { background: var(--paper); }
.what:has(#t-frozen:checked) + .band-wrap { background: var(--ice); }
.band { position: relative; background: var(--navy); }
.band .ph {
  aspect-ratio: 16 / 7; max-height: 78svh; width: 100%;
  -webkit-mask: var(--wave-mask) top / 100% 90px no-repeat, linear-gradient(#000, #000) 0 89px / 100% calc(100% - 89px) no-repeat;
          mask: var(--wave-mask) top / 100% 90px no-repeat, linear-gradient(#000, #000) 0 89px / 100% calc(100% - 89px) no-repeat;
}
.band-wrap .band { background: transparent; }
@media (max-width: 680px) { .band .ph { aspect-ratio: 4 / 3; } }

/* ---------- Cómo trabajamos ---------- */
.how {
  position: relative; isolation: isolate; color: var(--white);
  padding-block: clamp(72px, 9vw, 140px) var(--section);
  background: var(--navy);
}
.how-intro { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 32px clamp(32px, 6vw, 96px); align-items: end; }
.how-intro h2 { font-size: var(--step-head); }
.how-intro p { max-width: 46ch; color: var(--on-dark); }
.stages { margin-top: 64px; display: flex; height: 540px; border-radius: var(--radius); overflow: hidden; }
.stages details { position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; transition: flex-grow .45s var(--ease); }
.stages details[open] { flex-grow: 7; }
.stages details:nth-child(1) { background: var(--navy-2); }
.stages details:nth-child(2) { background: var(--navy-3); }
.stages details:nth-child(3) { background: var(--sea); color: var(--navy); }
.stages details:nth-child(4) { background: var(--foam); color: var(--navy); }
.stages summary {
  list-style: none; cursor: pointer; position: absolute; inset: 0; padding: 24px;
  display: flex; align-items: flex-end;
  font-weight: 600; font-size: 1.25rem; letter-spacing: -0.01em;
}
.stages summary::-webkit-details-marker { display: none; }
.stages summary span { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; }
.stages summary:hover span { text-decoration: underline; text-underline-offset: .25em; }
.stages details[open] summary { inset: 0 auto auto 0; max-width: 50%; align-items: flex-start; padding: 36px; }
.stages details[open] summary span { white-space: normal; text-wrap: balance; }
.stages details[open] summary span { writing-mode: horizontal-tb; transform: none; font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem); font-weight: 500; letter-spacing: -0.03em; }
.panel { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.panel .copy { align-self: end; padding: 36px; max-width: 40ch; }
.panel .copy p + p { margin-top: 12px; }
.panel .copy ul { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.panel .copy li { display: flex; gap: 12px; align-items: baseline; }
.panel .ph { margin: 24px 24px 24px 0; border-radius: 14px; }
@media (max-width: 960px) {
  .how-intro { grid-template-columns: 1fr; }
  .stages { flex-direction: column; height: auto; border-radius: 16px; }
  .stages details { flex: none; }
  .stages summary { position: static; padding: 20px 22px; min-height: 64px; align-items: center; font-size: 1.125rem; }
  .stages summary span, .stages details[open] summary span { writing-mode: horizontal-tb; transform: none; }
  .stages details[open] summary { padding: 22px 22px 6px; max-width: none; }
  .stages details[open] summary span { font-size: 1.5rem; }
  .panel { position: static; grid-template-columns: 1fr; }
  .panel .copy { padding: 6px 22px 22px; font-size: 1.0625rem; }
  .panel .ph { margin: 0 22px 22px; aspect-ratio: 16 / 9; order: -1; }
}

.modes { margin-top: clamp(80px, 10vw, 160px); }
.modes-title { font-size: clamp(1.75rem, 1.2rem + 2vw, 3rem); max-width: 18ch; }
.mode-grid { margin-top: 40px; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 56px); align-items: end; }
.mode .ph { aspect-ratio: 16 / 9; border-radius: var(--radius); }
.mode .ph img { transition: transform 1s var(--ease); }
.mode:hover .ph img { transform: scale(1.04); }
.mode .air { aspect-ratio: 16 / 9; background: var(--navy-2); border-radius: var(--radius); display: flex; align-items: flex-end; overflow: hidden; }
.mode .air svg { width: 100%; height: auto; display: block; }
.mode-copy { margin-top: 22px; max-width: 44ch; }
.mode h4 { font-size: var(--step-lead); font-weight: 600; letter-spacing: -0.02em; margin: 0 0 8px; }
.mode p { color: var(--on-dark); }
@media (max-width: 760px) { .mode-grid { grid-template-columns: 1fr; } }

/* ---------- Embalaje personalizado ---------- */
.pack { padding-block: var(--section); background: var(--ice); color: var(--navy); position: relative; }
.pack-head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 32px clamp(32px, 6vw, 96px); align-items: end; }
.pack-head h2 { font-size: var(--step-head); }
.pack-head p { max-width: 44ch; color: var(--muted); }
.pack-body { margin-top: clamp(48px, 6vw, 88px); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: stretch; }
.boxes { background: var(--navy); border-radius: var(--radius); display: flex; align-items: flex-end; justify-content: center; padding: 16% 8% 0; overflow: hidden; position: relative; }
.boxes svg { width: 100%; height: auto; position: relative; z-index: 1; }
.tiers { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: var(--radius); overflow: hidden; }
.tier { padding: clamp(28px, 3.4vw, 48px); display: flex; flex-direction: column; gap: 18px; }
.tier--std { background: var(--white); }
.tier--pre { background: var(--navy); color: var(--white); }
.tier h3 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem); letter-spacing: -0.03em; }
.tier .formats { margin: 0; display: flex; gap: 10px; flex-wrap: wrap; }
.tier .formats span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--ice); font-weight: 600; font-variant-numeric: tabular-nums; }
.tier--pre .formats span { background: var(--navy-3); }
.tier ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.tier li { display: flex; gap: 12px; align-items: baseline; }
.tier li::before { color: var(--sea); }
.tier .btn { margin-top: auto; align-self: flex-start; }
.pack-note { margin-top: 28px; max-width: 60ch; color: var(--muted); }
@media (max-width: 960px) { .pack-head, .pack-body { grid-template-columns: 1fr; } .boxes { max-width: 520px; padding: 32px 6% 0; } }
@media (max-width: 620px) { .tiers { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: no-preference) {
  .boxes svg .lid { transition: transform .5s var(--ease); transform-box: fill-box; transform-origin: center; }
  .boxes:hover svg .lid { transform: translateY(-6px); }
}

/* ---------- Productos destacados: fotos en el círculo del logotipo ---------- */
.featured { margin-top: clamp(80px, 10vw, 150px); }
.feat-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 20px clamp(32px, 6vw, 96px); align-items: end; }
.feat-head h2 { font-size: var(--step-head); }
.feat-head p { font-size: var(--step-lead); line-height: 1.4; max-width: 30ch; color: var(--muted); }
.feat-list { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); }
.feat .ph { aspect-ratio: 1; border-radius: 50%; }
.feat .ph::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 26%; background: var(--wave-sea) center / 100% 100% no-repeat; }
.feat .ph img { transition: transform 1s var(--ease); }
.feat:hover .ph img { transform: scale(1.05); }
.feat h3 { margin-top: 24px; font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2rem); letter-spacing: -0.025em; }
.feat .sci { margin-top: 4px; font-size: var(--step-body); color: var(--muted); }
.feat .alias { margin-top: 4px; color: var(--muted); }
.feat-note { margin-top: 32px; color: var(--muted); }
@media (max-width: 760px) {
  .feat-head { grid-template-columns: 1fr; }
  .feat-list { grid-template-columns: 1fr 1fr; }
  .feat:first-child { grid-column: 1 / -1; }
  .feat:first-child .ph { width: 72%; margin-inline: auto; }
}

/* ---------- Contacto: etiqueta de lonja ---------- */
.contact { position: relative; padding-block: var(--section) calc(var(--section) + 40px); background: var(--paper); }
.tag {
  --notch: 18px;
  position: relative; display: grid; grid-template-columns: minmax(0, 46fr) minmax(0, 54fr);
  background: var(--navy); color: var(--white); border-radius: var(--radius); overflow: hidden;
  -webkit-mask: radial-gradient(circle var(--notch) at 46% 0, #0000 98%, #000) top / 100% 51% no-repeat,
                radial-gradient(circle var(--notch) at 46% 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
          mask: radial-gradient(circle var(--notch) at 46% 0, #0000 98%, #000) top / 100% 51% no-repeat,
                radial-gradient(circle var(--notch) at 46% 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
}
.tag .left { padding: clamp(32px, 4vw, 56px); display: flex; flex-direction: column; justify-content: space-between; gap: 40px; border-right: 4px dotted var(--sea); }
.tag .left p { color: var(--on-dark); }
.tag h2 { font-size: var(--step-head); }
.tag .right { padding: clamp(32px, 4vw, 56px); display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.tag .mail { font-size: clamp(1.0625rem, .7rem + 1.6vw, 2.125rem); font-weight: 600; letter-spacing: -0.02em; overflow-wrap: anywhere; color: var(--foam); }
.tag dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; }
.tag dt { font-weight: 600; }
.tag dd { margin: 0; color: var(--on-dark); }
.tag .btn { align-self: flex-start; }
@media (max-width: 900px) {
  .tag { grid-template-columns: 1fr; border-radius: 16px;
    -webkit-mask: radial-gradient(circle var(--notch) at 0 52%, #0000 98%, #000) left / 51% 100% no-repeat,
                  radial-gradient(circle var(--notch) at 100% 52%, #0000 98%, #000) right / 51% 100% no-repeat;
            mask: radial-gradient(circle var(--notch) at 0 52%, #0000 98%, #000) left / 51% 100% no-repeat,
                  radial-gradient(circle var(--notch) at 100% 52%, #0000 98%, #000) right / 51% 100% no-repeat; }
  .tag .left { border-right: 0; border-bottom: 4px dotted var(--sea); }
}

/* ---------- Pie: el mar sube ---------- */
.foot { position: relative; background: var(--navy); color: var(--white); padding-block: clamp(48px, 6vw, 96px) 32px; }
.foot::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: clamp(50px, 7vw, 100px); background: var(--wave-navy) center / 100% 100% no-repeat; }
.foot-mark { display: flex; align-items: center; gap: clamp(16px, 2.5vw, 32px); padding-bottom: clamp(40px, 5vw, 64px); border-bottom: 1px solid rgba(255, 255, 255, .16); }
.foot-mark svg { width: clamp(96px, 14vw, 180px); height: auto; flex: none; }
.foot-mark span { font-family: var(--font-mark); font-weight: 800; font-size: clamp(2rem, 7vw, 6rem); letter-spacing: .02em; line-height: .9; }
.foot-grid { margin-top: 48px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px 24px; font-size: var(--step-small); color: var(--on-dark); }
.foot-grid > div:nth-child(1) { grid-column: span 5; }
.foot-grid > div:nth-child(2) { grid-column: span 4; }
.foot-grid > div:nth-child(3) { grid-column: span 3; }
@media (max-width: 1100px) { .foot-grid > div:nth-child(n) { grid-column: span 6; } .foot-grid > div:nth-child(1) { grid-column: 1 / -1; } }
.foot-grid h2 { font-size: 1rem; font-weight: 600; letter-spacing: 0; margin-bottom: 10px; color: var(--white); }
.foot-grid a { overflow-wrap: anywhere; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot-grid p + p { margin-top: 6px; }
.nocookies { margin-top: 10px; }
.foot-last { margin-top: 48px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; font-size: var(--step-small); color: var(--on-dark); }
.foot-last .btn { min-height: 44px; font-size: var(--step-small); }
@media (max-width: 760px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > div:nth-child(n) { grid-column: span 2; }
}

/* ---------- Páginas legales ---------- */
.legal-head { position: relative; color: var(--white); background: var(--navy); padding: 160px 0 clamp(130px, 14vw, 190px); overflow: hidden; }
.legal-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: clamp(80px, 9vw, 120px); background: var(--wave-sea) center / 100% 100% no-repeat; }
.legal-head .sunlet { display: none; }
.legal-head h1 { position: relative; font-size: var(--step-head); max-width: 14ch; }
.legal-head p { position: relative; margin-top: 16px; color: var(--on-dark); }
.legal { padding-block: clamp(56px, 7vw, 112px) calc(var(--section) + 40px); }
.legal article { max-width: 62ch; }
.legal h2 { font-size: var(--step-lead); font-weight: 600; letter-spacing: -0.02em; margin: 2.2em 0 .6em; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { line-height: 1.65; }
.legal p + p { margin-top: .9em; }
.legal ul { padding-left: 1.2em; margin: .8em 0; }
.legal li + li { margin-top: .4em; }
.legal a { color: var(--navy-3); }
.legal table { width: 100%; border-collapse: collapse; margin-top: 1em; font-size: var(--step-small); }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 12px 14px 12px 0; border-bottom: 1px solid rgba(15, 36, 51, .16); }
.legal th { width: 34%; font-weight: 600; }
@media (max-width: 520px) { .legal th, .legal td { display: block; width: auto; padding: 8px 0; } .legal th { border-bottom: 0; padding-top: 14px; } }

/* ---------- Movimiento ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes surface { from { transform: translateY(14%); } to { transform: none; } }
@keyframes settle { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes drift { from { transform: scale(1.04) translateX(0); } to { transform: scale(1.1) translateX(-2%); } }
@keyframes swell { from { transform: translateY(14px); } to { transform: none; } }

@media (prefers-reduced-motion: no-preference) {
  .hero h1, .hero .lead, .hero .actions { animation: rise .9s var(--ease) both; }
  .hero .lead { animation-delay: .09s; }
  .hero .actions { animation-delay: .18s; }
  .sun { animation: surface 1.4s var(--ease) both; }
  .sun img { animation: settle 1.6s var(--ease) .15s both; }
  .horizon { animation: swell 1.4s var(--ease) both; }
  .band .ph img { animation: drift 24s ease-in-out infinite alternate; }

  @supports (animation-timeline: view()) {
    .reveal > * { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
    .reveal > *:nth-child(2) { animation-range: entry 6% entry 61%; }
    .reveal > *:nth-child(3) { animation-range: entry 12% entry 67%; }
    .reveal > *:nth-child(4) { animation-range: entry 18% entry 73%; }
    .list li, .stages details { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* ---------- Configurador de cajas ---------- */
.cfg { margin-top: clamp(48px, 6vw, 88px); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.cfg-stage { position: relative; aspect-ratio: 2400 / 1792; border-radius: var(--radius); overflow: hidden; background: #e4e6e8; }
.cfg-stage .ph { position: absolute; inset: 0; opacity: 0; background: transparent; transition: opacity .5s var(--ease), transform .8s var(--ease); transform: scale(1.03); }
.pack:has(#f1:checked):has(#w1:checked) .k1v,
.pack:has(#f1:checked):has(#w0:checked) .k1s,
.pack:has(#f2:checked):has(#w1:checked) .k2v,
.pack:has(#f2:checked):has(#w0:checked) .k2s { opacity: 1; transform: none; }
.cfg-controls { display: grid; gap: 28px; }
.cfg-group { display: grid; gap: 10px; }
.cfg-label { font-weight: 600; font-size: var(--step-small); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cfg .switch { margin-top: 0; background: var(--white); justify-self: start; }
.cfg .switch label { padding: 12px 24px; }
.cfg-read { font-size: var(--step-head); font-weight: 500; letter-spacing: -0.03em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.cfg-read .r2, .cfg-read .rs { display: none; }
.pack:has(#f2:checked) .cfg-read .r1 { display: none; }
.pack:has(#f2:checked) .cfg-read .r2 { display: inline; }
.pack:has(#w0:checked) .cfg-read .rv { display: none; }
.pack:has(#w0:checked) .cfg-read .rs { display: inline; }
.pack .pack-body { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: stretch; }
.duo { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; background: #e4e6e8; min-height: 100%; }
.duo .ph { height: 100%; background: transparent; }
.duo .ph img { object-position: center 70%; }
.duo figcaption { position: absolute; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 9fr 11fr; padding: 0 4% 16px; pointer-events: none; }
.duo figcaption span { justify-self: center; background: var(--navy); color: var(--white); font-weight: 600; font-size: var(--step-small); padding: 6px 14px; border-radius: 999px; }
.brand { margin-top: clamp(48px, 6vw, 88px); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); border-radius: var(--radius); overflow: hidden; background: var(--navy); color: var(--white); }
.brand .ph { aspect-ratio: 2400 / 1340; background: #e4e6e8; }
.brand-copy { padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; justify-content: center; gap: 20px; }
.brand-copy h3 { font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.75rem); }
.brand-copy .pack-note { margin: 0; color: var(--on-dark); }
.brand-copy .btn { align-self: flex-start; }
@media (max-width: 960px) {
  .cfg, .brand, .pack .pack-body { grid-template-columns: 1fr; }
  .duo { min-height: 0; } .duo .ph { aspect-ratio: 2400 / 1340; height: auto; }
}
