/* THROUGH THEIR EYES — EZISURG × SK Marketing
   Identidad: azul #004F9E, verde #51AD32, tipografía Satoshi. */

:root {
  --blue: #004f9e;
  --blue-700: #003f7f;
  --green: #51ad32;
  --green-700: #3a8a20;          /* verde para texto pequeño sobre fondo claro */

  --navy: #031a33;               /* fondo oscuro derivado del azul */
  --navy-2: #072646;
  --navy-3: #0b315a;
  --white: #ffffff;
  --white-dim: rgba(255, 255, 255, 0.76);
  --muted: #8ea3bb;
  --line: rgba(255, 255, 255, 0.14);

  --paper: #f2f4f7;
  --paper-2: #ffffff;
  --text: #0b1b2e;
  --text-muted: #55657a;
  --paper-line: #d3dbe5;
  --error: #c4291c;

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

  --gutter: clamp(16px, 5vw, 56px);
  --radius: 12px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; color-scheme: dark; }
html.sheet-open, html.sheet-open body { overflow: hidden; }

body {
  margin: 0;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
button, input, textarea { font: inherit; color: inherit; }
p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Etiqueta en mayúsculas espaciadas (visor de cámara, numeración) */
.label-caps {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* Fecha impresa de cámara retro, en verde de marca */
.date-stamp {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.1em;
  color: var(--green);
  text-shadow: 0 0 10px rgba(81, 173, 50, 0.45);
}

/* ---------- Botones ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 56px;
  padding: 0 1.8rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.98); }
.btn[disabled] { cursor: progress; opacity: 0.6; }

.shutter {
  width: 14px;
  height: 14px;
  flex: none;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(81, 173, 50, 0.25);
  transition: transform 0.25s var(--ease);
}
.btn:hover .shutter { transform: scale(1.25); }

.btn-light { background: var(--white); color: var(--blue); }
.btn-light:hover { background: #e9f1fa; }
.btn-dark { background: var(--blue); color: var(--white); }
.btn-dark:hover { background: var(--blue-700); }
.btn-ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: 96px var(--gutter) calc(64px + env(safe-area-inset-bottom));
  overflow: hidden;
  isolation: isolate;
}

.hero-light {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 50% at 88% 6%, rgba(0, 79, 158, 0.85), transparent 72%),
    radial-gradient(45% 55% at 104% 50%, rgba(0, 110, 210, 0.35), transparent 70%),
    radial-gradient(50% 40% at -5% 104%, rgba(81, 173, 50, 0.28), transparent 70%),
    linear-gradient(180deg, #04213f 0%, var(--navy) 100%);
}

/* Grano de película (solo en el hero: una capa fija en toda la página repinta en cada scroll) */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.viewfinder {
  position: absolute;
  inset: 14px;
  z-index: 1;
  pointer-events: none;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.75);
}
.vf-corner {
  position: absolute;
  width: 26px;
  height: 26px;
  border: 0 solid rgba(255, 255, 255, 0.65);
}
.vf-tl { top: 0; left: 0; border-top-width: 2px; border-left-width: 2px; }
.vf-tr { top: 0; right: 0; border-top-width: 2px; border-right-width: 2px; }
.vf-bl { bottom: 0; left: 0; border-bottom-width: 2px; border-left-width: 2px; }
.vf-br { bottom: 0; right: 0; border-bottom-width: 2px; border-right-width: 2px; }
.vf-row {
  position: absolute;
  left: 18px;
  right: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.vf-top { top: 14px; }
.vf-bottom { bottom: 14px; }
.vf-bottom .date-stamp { font-size: 13px; }
.rec { display: inline-flex; align-items: center; gap: 8px; }
.rec i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: blink 1.6s steps(1) infinite;
}
.vf-focus {
  position: absolute;
  top: 30%;
  left: 76%;
  width: 54px;
  height: 36px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: none;
}
@keyframes blink { 50% { opacity: 0.15; } }

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  gap: 1.75rem;
}

.hero-name {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.35rem;
}
.hero-hello {
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.25rem, 4.4vw, 1.75rem);
  line-height: 1.2;
}

.hero-title {
  margin: 0;
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(3.7rem, 18.5vw, 11.5rem);
  line-height: 0.86;
  letter-spacing: -0.045em;
}
.hero-title span { display: block; }
.hero-title em {
  font-style: italic;
  color: var(--green);
  padding-left: 0.12em;
}

/* Etiqueta azul con texto en itálica (recurso de las piezas de EZISURG) */
.hero-sub { margin-bottom: 1rem; }
.hero-sub span {
  display: inline;
  padding: 0.15em 0.45em;
  background: var(--blue);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(1.3rem, 5vw, 1.9rem);
  line-height: 1.5;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.hero-copy {
  max-width: 32rem;
  color: var(--white-dim);
  font-size: 1.05rem;
  margin-bottom: 1.9rem;
}
.hero-body .btn { width: 100%; }

@media (min-width: 640px) {
  .hero-body .btn { width: auto; }
}

@media (min-width: 960px) {
  .hero { padding-bottom: 88px; }
  .viewfinder { inset: 22px; font-size: 11px; }
  .vf-focus { display: block; }
  .hero-inner {
    grid-template-columns: 1.35fr 1fr;
    column-gap: 4rem;
    align-items: end;
  }
  .hero-greeting { grid-column: 1 / -1; }
  .hero-title { font-size: min(11.2vw, 11rem); }
  .hero-body { padding-bottom: 0.6rem; }
}

/* ---------- Secciones ---------- */

.section { position: relative; padding: clamp(80px, 13vw, 150px) 0; }
.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }

.h2 {
  margin: 0.9rem 0 0;
  font-weight: 900;
  font-size: clamp(2.6rem, 9vw, 5.2rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
}

/* ---------- Tira de película ---------- */

.strip {
  position: relative;
  margin-top: clamp(40px, 6vw, 72px);
  padding: 40px 0;
  background: #020f1f;
  border-block: 1px solid var(--line);
}
.strip::before,
.strip::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 12px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='30' height='12'><rect x='8' y='1' width='14' height='10' rx='2.5' fill='%23ffffff' fill-opacity='.16'/></svg>") repeat-x;
}
.strip::before { top: 12px; }
.strip::after { bottom: 12px; }
.strip-edge {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  overflow: hidden;
  white-space: nowrap;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: rgba(81, 173, 50, 0.6);
  transform: translateY(100%);
  padding-top: 6px;
}

.frames {
  list-style: none;
  margin: 0;
  padding: 0 var(--gutter);
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(76vw, 300px);
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}
.frames::-webkit-scrollbar { display: none; }

.frame {
  scroll-snap-align: start;
  background: var(--navy-2);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.shot {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--tone);
}
.shot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(110% 90% at 50% 45%, transparent 45%, rgba(1, 10, 22, 0.6));
}
.shot svg {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 44%;
  height: 44%;
  color: rgba(255, 255, 255, 0.88);
}
.shot .date-stamp { position: absolute; right: 12px; bottom: 10px; z-index: 1; font-size: 0.72rem; }

.frame[data-tone="1"] { --tone: radial-gradient(120% 90% at 25% 15%, #0a63bf, #031c38 72%); }
.frame[data-tone="2"] { --tone: radial-gradient(120% 90% at 70% 20%, #3f9a27, #082211 72%); }
.frame[data-tone="3"] { --tone: radial-gradient(120% 90% at 30% 25%, #1d4f8f, #04152b 72%); }
.frame[data-tone="4"] { --tone: radial-gradient(120% 90% at 75% 15%, #1b7f6a, #04201c 72%); }
.frame[data-tone="5"] { --tone: linear-gradient(150deg, #004f9e 0%, #0d3f63 50%, #3d8f27 120%); }

.frame-meta { padding: 16px 16px 20px; }
.frame-no {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--green);
}
.frame h3 {
  margin: 0.4rem 0 0.35rem;
  font-weight: 900;
  font-size: 1.55rem;
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.frame p { color: var(--white-dim); font-size: 0.98rem; font-style: italic; }

@media (min-width: 1100px) {
  .frames {
    grid-auto-flow: row;
    grid-template-columns: repeat(5, 1fr);
    max-width: 1280px;
    margin: 0 auto;
    overflow: visible;
  }
  .frame h3 { font-size: 1.35rem; }
}

/* ---------- The rule (fondo claro) ---------- */

.rule { background: var(--paper); color: var(--text); }
.rule .eyebrow { color: var(--green-700); }
.rule-grid { display: grid; gap: clamp(32px, 5vw, 64px); }
.rule-lines { margin: 0; font-weight: 900; color: var(--blue); }
.rule-lines span {
  display: block;
  font-size: clamp(2.3rem, 9.5vw, 6rem);
  line-height: 1;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}
.rule-lines mark {
  display: inline;
  padding: 0 0.12em;
  background: var(--blue);
  color: var(--white);
  font-style: italic;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.rule-lines .hl { margin: 0.12em 0; }
.rule-copy { font-size: clamp(1.05rem, 2.6vw, 1.25rem); line-height: 1.5; max-width: 34rem; font-weight: 500; }
.rule-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.rule-list li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.95rem;
  border: 1px solid var(--paper-line);
  border-radius: 999px;
  background: var(--white);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
}
.rule-list svg { width: 16px; height: 16px; color: var(--green); flex: none; }

@media (min-width: 960px) {
  .rule-side { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }
  .rule-list { margin-top: 0; }
}

/* ---------- READY? (azul de marca) ---------- */

.closing {
  background:
    radial-gradient(50% 60% at 50% 110%, rgba(81, 173, 50, 0.35), transparent 70%),
    var(--blue);
  text-align: center;
  overflow: hidden;
  padding-block: clamp(110px, 18vw, 200px);
}
.aperture {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(135vw, 920px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  color: rgba(255, 255, 255, 0.14);
  pointer-events: none;
}
.aperture svg { width: 100%; height: 100%; transform: rotate(-8deg); }
.closing-inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.ready {
  margin: 0;
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(4.6rem, 24vw, 13rem);
  line-height: 0.85;
  letter-spacing: -0.05em;
}
.ready-sub {
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.4rem, 4.6vw, 2.1rem);
  margin: 1rem 0 2.2rem;
}
.closing .btn { width: min(100%, 360px); }

/* ---------- Logos ---------- */

.brands {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.brand-ezisurg { height: 20px; width: auto; }
.brand-sk { height: 24px; width: auto; }
.brands-x { font-weight: 500; opacity: 0.6; }
.brand-sk-word {
  margin-left: -6px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- Footer ---------- */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 18px 24px;
  padding: 28px var(--gutter) calc(28px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  color: var(--white-dim);
}
.footer-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* ---------- Animación de entrada ---------- */

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Hoja del formulario ---------- */

.sheet {
  padding: 0;
  margin: 0;
  border: 0;
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--paper);
  color: var(--text);
  color-scheme: light;
}
.sheet::backdrop { background: rgba(2, 12, 26, 0.74); backdrop-filter: blur(6px); }
.sheet[open] { animation: sheet-in 0.4s var(--ease); }
@keyframes sheet-in { from { opacity: 0; transform: translateY(28px); } }

@media (min-width: 760px) {
  .sheet {
    margin: auto;
    width: min(680px, calc(100% - 48px));
    height: auto;
    max-height: calc(100% - 48px);
    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  }
}

.sheet-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 12px 12px 20px;
  padding-top: max(12px, env(safe-area-inset-top));
  background: rgba(242, 244, 247, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(11, 27, 46, 0.08);
}
.sheet-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue);
}
.sheet-close {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--paper-line);
  border-radius: 50%;
  background: var(--white);
  cursor: pointer;
}
.sheet-close:hover { background: #e8eef5; }
.sheet-close[disabled] { opacity: 0.35; cursor: not-allowed; }

.sheet-body { padding: 26px 20px calc(40px + env(safe-area-inset-bottom)); }
@media (min-width: 760px) { .sheet-body { padding: 34px 44px 48px; } }

.sheet-title {
  margin: 0 0 0.6rem;
  font-weight: 900;
  font-size: clamp(2.1rem, 8vw, 3rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  color: var(--blue);
}
.sheet-title:focus { outline: none; }
.sheet-lead { color: var(--text-muted); margin-bottom: 30px; font-style: italic; font-weight: 500; }
.sheet-lead strong { font-style: normal; }
.sheet-lead + .btn { margin-top: -6px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.group { border: 0; margin: 0 0 32px; padding: 0; min-width: 0; }
.group-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  margin-bottom: 16px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.step {
  display: inline-grid;
  place-items: center;
  min-width: 32px;
  height: 24px;
  border-radius: 999px;
  background: var(--blue);
  color: var(--white);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
}
.optional {
  font-size: 0.8rem;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-muted);
}

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label, .field .label { font-size: 0.92rem; font-weight: 700; }
.field-row { display: grid; gap: 0 14px; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field-help { font-size: 0.92rem; font-weight: 700; margin-bottom: 10px; }

.input {
  width: 100%;
  min-height: 52px;
  padding: 13px 14px;
  border: 1px solid #c3cedb;
  border-radius: 10px;
  background: var(--paper-2);
  font-size: 16px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 79, 158, 0.16); }
textarea.input { resize: vertical; min-height: 104px; line-height: 1.45; }
.input-locked {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #e6edf5;
  border-color: transparent;
  font-weight: 700;
  color: var(--blue);
}
.input-locked svg { flex: none; color: var(--blue); opacity: 0.7; }
.input[aria-invalid="true"] { border-color: var(--error); }
.counter { align-self: flex-end; font-size: 0.74rem; color: var(--text-muted); font-variant-numeric: tabular-nums; }

.field-error { margin-top: 8px; font-size: 0.9rem; font-weight: 500; color: var(--error); }
.field-error:empty { display: none; }

.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 150px;
  padding: 26px 16px;
  text-align: center;
  border: 2px dashed #a9bad0;
  border-radius: 14px;
  background: var(--paper-2);
  color: var(--blue);
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
}
.dropzone:hover, .dropzone.is-drag { border-color: var(--blue); background: #eef4fb; }
#f-photos:focus-visible + .dropzone { outline: 2px solid var(--blue); outline-offset: 3px; }
.dropzone strong {
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.dropzone small { color: var(--text-muted); font-size: 0.84rem; }
.dropzone.is-compact { min-height: 0; flex-direction: row; padding: 14px 16px; }
.dropzone.is-compact svg { width: 24px; height: 24px; }
.dropzone.is-compact small { display: none; }

.thumbs {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 10px;
}
.thumbs:empty { display: none; }
.thumb {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 10px;
  background: #d9e2ec;
  animation: pop 0.3s var(--ease);
}
@keyframes pop { from { opacity: 0; transform: scale(0.94); } }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-ph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}
.thumb-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px 6px 5px;
  font-size: 0.68rem;
  font-weight: 500;
  color: #fff;
  background: linear-gradient(transparent, rgba(3, 26, 51, 0.75));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.thumb-remove {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(3, 26, 51, 0.8);
  color: #fff;
  cursor: pointer;
}
.thumb-remove:hover { background: var(--blue); }
.files-count { margin-top: 10px; font-size: 0.78rem; font-weight: 500; color: var(--text-muted); }
.files-count:empty { display: none; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid #b7c5d6;
  border-radius: 999px;
  background: var(--paper-2);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
  user-select: none;
}
.chip input:checked + span { background: var(--blue); border-color: var(--blue); color: var(--white); }
.chip input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }

.notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  margin-bottom: 30px;
  border-radius: var(--radius);
  background: #eaf6e5;
  border: 1px solid #c7e5bb;
  font-size: 0.92rem;
  line-height: 1.45;
}
.notice svg { flex: none; color: var(--green-700); margin-top: 1px; }

.consent { padding: 18px; border: 1px solid var(--paper-line); border-radius: 14px; background: var(--paper-2); }
.consent .group-label { float: left; width: 100%; }
.consent .group-label + * { clear: both; }
.consent-text { font-size: 0.95rem; line-height: 1.5; margin-bottom: 12px; }
.check { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; font-weight: 700; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check .box {
  width: 26px;
  height: 26px;
  flex: none;
  display: grid;
  place-items: center;
  border: 2px solid var(--blue);
  border-radius: 7px;
  background: #fff;
  transition: background-color 0.15s;
}
.check .box svg { opacity: 0; color: #fff; transition: opacity 0.15s; }
.check input:checked + .box { background: var(--blue); }
.check input:checked + .box svg { opacity: 1; }
.check input:focus-visible + .box { outline: 2px solid var(--blue); outline-offset: 3px; }

.form-alert {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #fde6e3;
  color: #8f1c10;
  font-size: 0.94rem;
}
.form-alert:empty { display: none; }

.progress { margin-bottom: 18px; }
.progress-track { height: 6px; border-radius: 999px; background: #d9e2ec; overflow: hidden; }
.progress-bar { width: 0; height: 100%; border-radius: inherit; background: var(--green); transition: width 0.2s linear; }
.progress.is-indeterminate .progress-bar { width: 35%; animation: indet 1.2s ease-in-out infinite; }
@keyframes indet { from { transform: translateX(-100%); } to { transform: translateX(290%); } }
.progress-label { margin-top: 8px; font-size: 0.82rem; font-weight: 500; color: var(--text-muted); }

/* ---------- Confirmación ---------- */

.sheet.is-success {
  background:
    radial-gradient(70% 45% at 100% 0%, rgba(0, 79, 158, 0.9), transparent 70%),
    radial-gradient(60% 40% at 0% 100%, rgba(81, 173, 50, 0.22), transparent 70%),
    var(--navy);
  color: var(--white);
  color-scheme: dark;
}
.sheet.is-success .sheet-head { background: rgba(3, 26, 51, 0.6); border-color: var(--line); }
.sheet.is-success .sheet-kicker { color: var(--white); }
.sheet.is-success .sheet-close { background: transparent; border-color: var(--line); }

.success { position: relative; }
.success > .date-stamp { font-size: 0.9rem; margin-bottom: 18px; }
.success-title {
  margin: 0;
  font-weight: 900;
  font-size: clamp(3rem, 13.5vw, 4.9rem);
  line-height: 0.9;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}
.success-title:focus { outline: none; }
.success-title em { font-style: italic; color: var(--green); }
.success-thanks {
  margin: 1.4rem 0 2.2rem;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.25rem, 4.4vw, 1.55rem);
  line-height: 1.3;
  max-width: 26rem;
}
.success-community { padding: 22px 0; border-block: 1px solid var(--line); color: var(--white-dim); line-height: 1.7; font-weight: 500; }
.success-brand {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 10px;
}
.success-sign { margin: 26px 0 30px; color: var(--white); }
.success-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.success-actions .btn { flex: 1 1 220px; }

/* ---------- Aviso de privacidad ---------- */

.footer-link { color: inherit; font-size: 0.78rem; text-underline-offset: 3px; }
.footer-link:hover { color: var(--white); }

.legal-page { background: var(--paper); color: var(--text); color-scheme: light; }
.legal-page .site-footer { background: var(--navy); }
.legal { max-width: 760px; margin: 0 auto; padding: 48px var(--gutter) 80px; }
.legal-back { display: inline-block; margin-bottom: 28px; color: var(--blue); font-weight: 700; text-decoration: none; }
.legal h1 { margin: 0 0 16px; color: var(--blue); font-weight: 900; font-size: clamp(2.2rem, 7vw, 3.2rem); line-height: 1; letter-spacing: -0.035em; }
.legal h2 { margin: 36px 0 10px; color: var(--blue); font-weight: 900; font-size: 1.25rem; letter-spacing: -0.01em; }
.legal p, .legal li { font-size: 1.02rem; line-height: 1.65; }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 1.2rem; margin: 0 0 12px; }
.legal a { color: var(--blue); }
.legal-lead { font-size: 1.15rem !important; font-weight: 500; }
.legal-note { margin-top: 40px !important; color: var(--text-muted); font-size: 0.9rem !important; }

/* ---------- Crédito del desarrollador ---------- */

.footer-credit {
  flex-basis: 100%;
  margin-top: 4px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--muted);
}
.footer-credit a {
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid var(--green);
  transition: color 0.2s;
}
.footer-credit a:hover { color: var(--green); }
