/* =========================================================
   fuisteinvitado · sitio público 2026
   Paleta única: negro profundo · blanco · grises · rosa de marca (#ff5070)
   ========================================================= */
:root {
  --bg: #06060b;
  --bg-2: #0b0b14;
  --surface: rgba(255, 255, 255, .035);
  --surface-2: rgba(255, 255, 255, .06);
  --field: rgba(255, 255, 255, .03);
  --glass: rgba(6, 6, 11, .72);
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .16);
  --line-3: rgba(255, 255, 255, .3);
  --ink: #f5f5f7;
  --ink-2: #d6d6de;
  --muted: #9a9aab;
  --dim: #6b6b7c;
  --brand: #ff5070;
  --brand-ink: #ff5070;
  --brand-glow: rgba(255, 80, 112, .45);
  --shadow: #000;
  --ok-ink: #a7f3c4;
  --err-ink: #ffb3b3;
  --blob-1: .28; --blob-2: .14; --blob-3: .12; --grid-op: .5;
  color-scheme: dark;
  --ok: #4ade80;
  --err: #ff6b6b;
  --radius: 18px;
  --font-display: "Sora", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
/* Tema claro: sigue al sistema salvo que el usuario elija oscuro */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
  --bg: #f7f7fa;
  --bg-2: #ffffff;
  --surface: rgba(255, 255, 255, .75);
  --surface-2: rgba(10, 10, 20, .05);
  --field: #ffffff;
  --glass: rgba(247, 247, 250, .8);
  --line: rgba(10, 10, 20, .08);
  --line-2: rgba(10, 10, 20, .14);
  --line-3: rgba(10, 10, 20, .3);
  --ink: #0b0b12;
  --ink-2: #2b2b36;
  --muted: #5c5c6e;
  --dim: #8a8a99;
  --brand: #ff5070;
  --brand-ink: #e3284f;
  --brand-glow: rgba(255, 80, 112, .3);
  --shadow: rgba(20, 20, 40, .25);
  --ok-ink: #15803d;
  --err-ink: #b91c1c;
  --blob-1: .16; --blob-2: .06; --blob-3: .08; --grid-op: .7;
  color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #f7f7fa;
  --bg-2: #ffffff;
  --surface: rgba(255, 255, 255, .75);
  --surface-2: rgba(10, 10, 20, .05);
  --field: #ffffff;
  --glass: rgba(247, 247, 250, .8);
  --line: rgba(10, 10, 20, .08);
  --line-2: rgba(10, 10, 20, .14);
  --line-3: rgba(10, 10, 20, .3);
  --ink: #0b0b12;
  --ink-2: #2b2b36;
  --muted: #5c5c6e;
  --dim: #8a8a99;
  --brand: #ff5070;
  --brand-ink: #e3284f;
  --brand-glow: rgba(255, 80, 112, .3);
  --shadow: rgba(20, 20, 40, .25);
  --ok-ink: #15803d;
  --err-ink: #b91c1c;
  --blob-1: .16; --blob-2: .06; --blob-3: .08; --grid-op: .7;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #06060b;
  --bg-2: #0b0b14;
  --surface: rgba(255, 255, 255, .035);
  --surface-2: rgba(255, 255, 255, .06);
  --field: rgba(255, 255, 255, .03);
  --glass: rgba(6, 6, 11, .72);
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .16);
  --line-3: rgba(255, 255, 255, .3);
  --ink: #f5f5f7;
  --ink-2: #d6d6de;
  --muted: #9a9aab;
  --dim: #6b6b7c;
  --brand: #ff5070;
  --brand-ink: #ff5070;
  --brand-glow: rgba(255, 80, 112, .45);
  --shadow: #000;
  --ok-ink: #a7f3c4;
  --err-ink: #ffb3b3;
  --blob-1: .28; --blob-2: .14; --blob-3: .12; --grid-op: .5;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.6 var(--font-body); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--brand-ink); text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.08; letter-spacing: -.035em; margin: 0; }
svg { width: 1em; height: 1em; flex: none; }
::selection { background: var(--brand); color: #fff; }
[hidden] { display: none !important; }
.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; position: relative; }

/* ---------- Fondo animado ---------- */
.fondo { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.fondo::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 80%);
  opacity: var(--grid-op);
}
.fondo i { position: absolute; border-radius: 50%; filter: blur(90px); animation: deriva 18s ease-in-out infinite alternate; }
.fondo i:nth-child(1) { width: 520px; height: 520px; background: var(--brand); top: -220px; right: -120px; opacity: var(--blob-1); }
.fondo i:nth-child(2) { width: 420px; height: 420px; background: #7a2bff; top: 40%; left: -220px; opacity: var(--blob-2); animation-delay: -6s; }
.fondo i:nth-child(3) { width: 360px; height: 360px; background: var(--brand); bottom: -200px; right: 20%; opacity: var(--blob-3); animation-delay: -12s; }
@keyframes deriva { to { transform: translate(60px, 40px) scale(1.15); } }

/* ---------- Botones ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 50px; padding: .8em 1.6em; border-radius: 999px; border: 1px solid transparent;
  font: 600 .95rem/1 var(--font-body); letter-spacing: .01em; cursor: pointer; white-space: nowrap;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s, border-color .3s, color .3s;
}
.btn--primario { background: var(--brand); color: #fff; box-shadow: 0 0 0 1px rgba(255, 255, 255, .1) inset, 0 10px 30px -10px var(--brand-glow); }
.btn--primario:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(255, 255, 255, .2) inset, 0 0 32px var(--brand-glow), 0 16px 40px -12px var(--brand-glow); }
.btn--linea { border-color: var(--line-2); color: var(--ink); background: var(--field); backdrop-filter: blur(8px); }
.btn--linea:hover { border-color: var(--brand); color: var(--ink); box-shadow: 0 0 24px -6px var(--brand-glow); }
.btn--bloque { width: 100%; }
.btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.btn svg { width: 1.1em; height: 1.1em; }

/* ---------- Navegación ---------- */
.nav { position: sticky; top: 0; z-index: 50; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.nav.is-scroll { background: var(--glass); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); border-color: var(--line); }
.nav__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font: 700 1.15rem/1 var(--font-display); letter-spacing: -.03em; }
.logo img { width: 34px; height: 34px; filter: drop-shadow(0 0 12px var(--brand-glow)); }
.logo em { font-style: normal; color: var(--brand-ink); }
.nav__links { display: none; gap: 34px; }
.nav__links a { color: var(--muted); font-size: .82rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; position: relative; transition: color .2s; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--brand); transform: scaleX(0); transition: transform .3s var(--ease); box-shadow: 0 0 8px var(--brand); }
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__cta { display: flex; gap: 10px; }
.nav__cta .btn { min-height: 42px; padding: .6em 1.2em; font-size: .85rem; }
@media (min-width: 960px) { .nav__links { display: flex; } }
@media (max-width: 560px) { .nav__cta .btn--linea { display: none; } }

/* ---------- Animación de aparición ---------- */
.rv { opacity: 0; transform: translateY(28px); filter: blur(6px); transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); }
.rv.is-on { opacity: 1; transform: none; filter: none; }
.rv-d1 { transition-delay: .1s; } .rv-d2 { transition-delay: .2s; } .rv-d3 { transition-delay: .3s; } .rv-d4 { transition-delay: .4s; }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; filter: none; transition: none; }
  .fondo i, .flotar, .marquesina__pista, .orbita, .palabra__cursor { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(36px, 7vw, 90px) 0 clamp(60px, 9vw, 120px); }
.hero__grid { display: grid; gap: 56px; align-items: center; }
@media (min-width: 1000px) { .hero__grid { grid-template-columns: 1.05fr .95fr; } }
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 8px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--muted); font-size: .82rem; font-weight: 500;
}
.pill b { background: var(--brand); color: #fff; font-size: .7rem; padding: 3px 9px; border-radius: 999px; letter-spacing: .06em; box-shadow: 0 0 14px var(--brand-glow); }
.hero h1 { font-size: clamp(2.7rem, 7.2vw, 5.1rem); margin: 22px 0 22px; }
.brillo { color: var(--brand-ink); text-shadow: 0 0 18px var(--brand-glow), 0 0 44px rgba(255, 80, 112, .25); }
.palabra { display: inline-block; }
.palabra__cursor { display: inline-block; width: 4px; height: .82em; margin-left: 6px; background: var(--brand); vertical-align: -.04em; box-shadow: 0 0 10px var(--brand); animation: parpadeo 1s steps(1) infinite; }
@keyframes parpadeo { 50% { opacity: 0; } }
.hero__sub { font-size: clamp(1.05rem, 2.2vw, 1.2rem); color: var(--muted); max-width: 34em; margin: 0 0 34px; }
.hero__acciones { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__datos { display: flex; flex-wrap: wrap; gap: 14px 40px; margin-top: 46px; padding-top: 28px; border-top: 1px solid var(--line); }
.dato b { display: block; font: 700 2.1rem/1 var(--font-display); letter-spacing: -.03em; }
.dato b span { color: var(--brand-ink); }
.dato small { color: var(--dim); font-size: .8rem; letter-spacing: .04em; }

/* Teléfonos con demo en vivo */
.telefonos { position: relative; height: clamp(520px, 60vw, 640px); display: grid; place-items: center; }
.orbita { position: absolute; width: min(560px, 96%); aspect-ratio: 1; border-radius: 50%; border: 1px dashed var(--line-2); animation: girar 60s linear infinite; }
.orbita::before { content: ""; position: absolute; top: 12%; left: 12%; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 18px 4px var(--brand-glow); }
.halo { position: absolute; width: 62%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, var(--brand-glow), transparent 65%); filter: blur(24px); opacity: .7; }
@keyframes girar { to { transform: rotate(360deg); } }
.telefono {
  position: absolute; width: clamp(220px, 23vw, 270px); aspect-ratio: 9 / 19.2; border-radius: 42px;
  background: linear-gradient(145deg, #2c2c38, #0d0d14); padding: 9px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .12) inset, 0 40px 80px -30px rgba(0, 0, 0, .9), 0 0 60px -22px var(--brand-glow);
}
.telefono__pantalla { width: 100%; height: 100%; border-radius: 34px; overflow: hidden; position: relative; background: #111; }
.telefono__pantalla::before { content: ""; position: absolute; top: 10px; left: 50%; width: 30%; height: 20px; margin-left: -15%; border-radius: 999px; background: #000; z-index: 2; }
.telefono iframe { position: absolute; top: 0; left: 0; width: 390px; height: 844px; border: 0; transform-origin: 0 0; pointer-events: none; }
.telefono--a { left: 50%; margin-left: calc(clamp(220px, 23vw, 270px) * -1.02); rotate: -6deg; }
.telefono--b { left: 50%; margin-left: calc(clamp(220px, 23vw, 270px) * -.02); top: 14%; rotate: 5deg; z-index: 1; }
.flotar { animation: flotar 7s ease-in-out infinite; }
.flotar-2 { animation-delay: -3.5s; }
@keyframes flotar { 50% { translate: 0 -16px; } }
@media (max-width: 600px) {
  .telefono { width: 46vw; border-radius: 30px; padding: 7px; }
  .telefono__pantalla { border-radius: 24px; }
  .telefono--a { margin-left: -47vw; }
  .telefono--b { margin-left: -1vw; }
  .telefonos { height: 116vw; }
}

/* ---------- Marquesina ---------- */
.marquesina { border-block: 1px solid var(--line); background: var(--surface); overflow: hidden; padding: 20px 0; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquesina__pista { display: flex; gap: 48px; width: max-content; animation: desliza 45s linear infinite; }
.marquesina span { font: 600 1.05rem var(--font-display); color: var(--dim); white-space: nowrap; display: inline-flex; align-items: center; gap: 48px; letter-spacing: -.01em; }
.marquesina span::after { content: "✦"; color: var(--brand); font-size: .8rem; text-shadow: 0 0 10px var(--brand); }
@keyframes desliza { to { transform: translateX(-50%); } }

/* ---------- Secciones ---------- */
.sec { padding: clamp(80px, 11vw, 140px) 0; position: relative; }
.sec__cab { text-align: center; max-width: 720px; margin: 0 auto clamp(44px, 6vw, 72px); }
.sec__cab h2 { font-size: clamp(2.1rem, 5vw, 3.4rem); margin: 14px 0 16px; }
.sec__cab p { color: var(--muted); margin: 0; font-size: 1.08rem; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .74rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--brand-ink); }
.eyebrow::before { content: ""; width: 20px; height: 1px; background: var(--brand); box-shadow: 0 0 8px var(--brand); }

.grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }

/* Tarjeta de vidrio con brillo que sigue al cursor */
.card {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; overflow: hidden; isolation: isolate; transition: border-color .3s, transform .4s var(--ease);
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 80, 112, .14), transparent 45%);
}
.card:hover { border-color: rgba(255, 80, 112, .35); transform: translateY(-4px); }
.card:hover::before { opacity: 1; }
.feat__icono {
  width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 22px;
  color: var(--brand); background: rgba(255, 80, 112, .08); border: 1px solid rgba(255, 80, 112, .25); box-shadow: 0 0 24px -6px var(--brand-glow);
}
.feat__icono svg { width: 24px; height: 24px; }
.feat h3 { font-size: 1.22rem; margin-bottom: 10px; }
.feat p { margin: 0; color: var(--muted); font-size: .96rem; }

/* Catálogo */
.temas { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.tema {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; color: inherit; transition: transform .45s var(--ease), border-color .3s, box-shadow .45s;
}
.tema:hover { transform: translateY(-6px); border-color: rgba(255, 80, 112, .4); box-shadow: 0 30px 60px -30px var(--shadow), 0 0 40px -16px var(--brand-glow); }
.tema__img { aspect-ratio: 4 / 5; overflow: hidden; position: relative; background: var(--bg-2); display: block; }
.tema__img img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1.2s var(--ease); }
.tema:hover .tema__img img { transform: scale(1.06); }
.tema__cuerpo { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.tema__cuerpo h3 { font-size: 1.15rem; letter-spacing: -.02em; }
.tema__cuerpo p { margin: 0; color: var(--muted); font-size: .9rem; }
.tema__tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 8px; }
.tema__tags span { font-size: .72rem; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); }
.tema__acciones { display: flex; gap: 8px; margin-top: auto; }
.tema__acciones .btn { flex: 1; min-height: 42px; font-size: .85rem; }

/* Filtros */
.filtros { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 18px; margin-bottom: 18px; scrollbar-width: none; }
.filtros::-webkit-scrollbar { display: none; }
@media (min-width: 1000px) { .filtros { justify-content: center; flex-wrap: wrap; } }
.filtro { flex: none; border: 1px solid var(--line-2); background: var(--surface); color: var(--muted); border-radius: 999px; padding: 9px 16px; font: 500 .86rem var(--font-body); cursor: pointer; transition: all .25s; }
.filtro:hover { color: var(--ink); border-color: var(--line-3); }
.filtro[aria-pressed="true"] { background: var(--brand); color: #fff; border-color: var(--brand); box-shadow: 0 0 20px -4px var(--brand-glow); }
.filtro span { opacity: .6; margin-left: 4px; }

/* Pasos */
.pasos { counter-reset: paso; display: grid; gap: 16px; }
@media (min-width: 900px) { .pasos { grid-template-columns: repeat(3, 1fr); } }
.paso::after {
  counter-increment: paso; content: "0" counter(paso); position: absolute; top: 20px; right: 24px;
  font: 700 3.6rem/1 var(--font-display); color: transparent; -webkit-text-stroke: 1px rgba(255, 80, 112, .35);
}
.paso h3 { font-size: 1.25rem; margin: 40px 0 8px; }
.paso p { margin: 0; color: var(--muted); }

/* CTA */
.cta {
  position: relative; overflow: hidden; text-align: center; border-radius: 28px; padding: clamp(48px, 8vw, 96px) 24px;
  border: 1px solid rgba(255, 80, 112, .35); background: radial-gradient(ellipse at 50% 0%, rgba(255, 80, 112, .22), transparent 60%), var(--bg-2);
}
.cta::before {
  content: ""; position: absolute; inset: 0; opacity: .4;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000, transparent 70%);
}
.cta > * { position: relative; }
.cta h2 { font-size: clamp(2rem, 5vw, 3.4rem); margin-bottom: 16px; }
.cta p { color: var(--muted); margin: 0 auto 30px; max-width: 34em; }

/* Pie */
.pie { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--dim); font-size: .88rem; margin-top: 40px; }
.pie__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; }

/* ---------- Acceso (login / invitado) ---------- */
.acceso { min-height: 100vh; min-height: 100svh; display: grid; }
@media (min-width: 1000px) { .acceso { grid-template-columns: 1.1fr 1fr; } }
.acceso__arte { display: none; position: relative; overflow: hidden; padding: 48px; border-right: 1px solid var(--line); }
@media (min-width: 1000px) { .acceso__arte { display: flex; flex-direction: column; justify-content: space-between; } }
.acceso__arte::before { content: ""; position: absolute; width: 640px; height: 640px; right: -260px; bottom: -260px; border-radius: 50%; background: radial-gradient(circle, var(--brand-glow), transparent 65%); filter: blur(30px); }
.acceso__arte blockquote { position: relative; font: 700 clamp(2rem, 3.4vw, 3rem)/1.12 var(--font-display); letter-spacing: -.035em; margin: 0; max-width: 13em; }
.acceso__arte blockquote em { font-style: normal; color: var(--brand); text-shadow: 0 0 20px var(--brand-glow); }
.acceso__arte p { position: relative; color: var(--muted); margin: 0; max-width: 30em; }
.acceso__form { display: flex; flex-direction: column; justify-content: center; padding: 40px 20px; }
.acceso__caja { width: min(400px, 100%); margin: 0 auto; }
.acceso__caja > .logo { margin-bottom: 40px; }
@media (min-width: 1000px) { .acceso__caja > .logo { display: none; } }
.acceso__caja h1 { font-size: clamp(2rem, 6vw, 2.6rem); margin-bottom: 10px; }
.acceso__caja > p { color: var(--muted); margin: 0 0 30px; }
.acceso .eyebrow::before { display: none; }
.form { display: grid; gap: 18px; }
.campo { display: grid; gap: 8px; }
.campo label, .campo__lbl { font-size: .84rem; font-weight: 500; color: var(--ink-2); }
.campo input, .campo select, .campo textarea {
  width: 100%; min-height: 52px; padding: 12px 16px; border-radius: 14px; font: inherit; color: var(--ink);
  border: 1px solid var(--line-2); background: var(--field); transition: border-color .2s, box-shadow .2s, background .2s;
}
.campo input::placeholder { color: var(--dim); }
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: none; border-color: var(--brand); background: rgba(255, 80, 112, .04); box-shadow: 0 0 0 4px rgba(255, 80, 112, .15), 0 0 24px -8px var(--brand-glow); }
.campo.is-error input, .campo.is-error select, .campo.is-error textarea, .campo.is-error .contacto__archivo { border-color: var(--err); }
.campo__err { color: var(--err); font-size: .82rem; }
.fila { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: .88rem; flex-wrap: wrap; color: var(--muted); }
.check { display: inline-flex; gap: 8px; align-items: center; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--brand); }
.alerta { padding: 12px 16px; border-radius: 12px; font-size: .9rem; border: 1px solid; }
.alerta--error { background: rgba(255, 107, 107, .08); border-color: rgba(255, 107, 107, .3); color: var(--err-ink); }
.alerta--ok { background: rgba(74, 222, 128, .08); border-color: rgba(74, 222, 128, .3); color: var(--ok-ink); }
.segmento { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 4px; gap: 4px; }
.segmento input { position: absolute; opacity: 0; pointer-events: none; }
.segmento label { display: grid; place-items: center; min-height: 42px; border-radius: 10px; cursor: pointer; font-weight: 500; font-size: .9rem; color: var(--muted); transition: all .2s; }
.segmento input:checked + label { background: var(--brand); color: #fff; box-shadow: 0 0 18px -4px var(--brand-glow); }
.ayuda { color: var(--dim); font-size: .86rem; text-align: center; margin: 26px 0 0; }


/* ---------- Botón de tema claro / oscuro ---------- */
.tema-btn {
  width: 42px; height: 42px; flex: none; border-radius: 50%; border: 1px solid var(--line-2); background: var(--field);
  color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: border-color .2s, box-shadow .2s, transform .3s var(--ease);
}
.tema-btn:hover { border-color: var(--brand); box-shadow: 0 0 20px -6px var(--brand-glow); }
.tema-btn:active { transform: rotate(30deg) scale(.95); }
.tema-btn svg { width: 18px; height: 18px; }
.tema-btn .i-sol { display: none; }
:root[data-theme-actual="dark"] .tema-btn .i-sol { display: block; }
:root[data-theme-actual="dark"] .tema-btn .i-luna { display: none; }
.tema-btn--flotante { position: fixed; top: 18px; right: 18px; z-index: 60; }
html.cambiando-tema *, html.cambiando-tema *::before, html.cambiando-tema *::after { transition: background-color .4s ease, color .4s ease, border-color .4s ease !important; }

/* Ajustes del tema claro */
:root[data-theme-actual="light"] .card, :root[data-theme-actual="light"] .tema { box-shadow: 0 1px 2px rgba(20, 20, 40, .04), 0 12px 32px -20px rgba(20, 20, 40, .18); }
:root[data-theme-actual="light"] .brillo { text-shadow: 0 0 24px rgba(255, 80, 112, .25); }
:root[data-theme-actual="light"] .acceso__arte blockquote em { text-shadow: none; }
:root[data-theme-actual="light"] .paso::after { -webkit-text-stroke: 1px rgba(227, 40, 79, .35); }
:root[data-theme-actual="light"] .cta { background: radial-gradient(ellipse at 50% 0%, rgba(255, 80, 112, .14), transparent 60%), var(--bg-2); }
:root[data-theme-actual="light"] .tema__tags span { color: var(--muted); }


/* ---------- Contacto ---------- */
.contacto__grid { display: grid; gap: 20px; align-items: start; }
@media (min-width: 960px) { .contacto__grid { grid-template-columns: minmax(0, 1fr) 360px; } }
.contacto__form { gap: 18px; }
.contacto__form:hover { transform: none; }
.contacto__fila { display: grid; gap: 18px; }
@media (min-width: 640px) { .contacto__fila { grid-template-columns: 1fr 1fr; } }
.campo label small, .campo__lbl small { color: var(--dim); font-weight: 400; }
.campo textarea { min-height: 140px; resize: vertical; line-height: 1.55; }
.campo textarea::placeholder { color: var(--dim); }
.campo input[type="date"] { color-scheme: inherit; }
.contacto__archivo {
  display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 12px 16px; border-radius: 14px; cursor: pointer;
  border: 1px dashed var(--line-2); background: var(--field); color: var(--muted); font-size: .92rem; transition: border-color .2s, color .2s;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.contacto__archivo:hover, .contacto__archivo.is-lleno { border-color: var(--brand); color: var(--ink); }
.contacto__archivo svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--brand); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contacto__archivo span { overflow: hidden; text-overflow: ellipsis; }
.contacto__trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contacto__nota { margin: 0; text-align: center; color: var(--dim); font-size: .86rem; }
.contacto__info { display: grid; gap: 20px; }
.contacto__info .card:hover { transform: none; }
.contacto__info h3 { font-size: 1.1rem; margin: 0 0 16px; }
.contacto__lista { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.contacto__lista li { display: flex; gap: 10px; color: var(--ink-2); font-size: .95rem; }
.contacto__lista svg { width: 18px; height: 18px; flex: none; color: var(--brand); margin-top: 3px; }
.contacto__directo { display: grid; gap: 12px; }
.contacto__directo h3 { margin-bottom: 4px; }
.contacto__correo { color: var(--ink); font-weight: 600; text-decoration: none; word-break: break-all; }
.contacto__correo:hover { color: var(--brand); }
.contacto__demos { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .9rem; text-decoration: none; }
.contacto__demos:hover { color: var(--brand); }
.contacto__demos svg { width: 16px; height: 16px; }
