:root {
  --navy: #1c4f6b;
  --navy-deep: #143b51;
  --accent: #2b8cbe;
  --accent-soft: #eaf4fa;
  --ink: #16303f;
  --muted: #5a7080;
  --line: #e4eaef;
  --bg: #ffffff;
  --soft: #f5f8fa;
  --danger: #c0392b;
  --danger-bg: #fdecea;
  --ok: #1e8e5a;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 10px rgba(20, 59, 81, 0.06);
  --shadow: 0 14px 44px rgba(20, 59, 81, 0.12);
  --maxw: 920px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
img { max-width: 100%; }
a { color: var(--accent); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ============ Botones ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  padding: 12px 22px;
  border: none;
  border-radius: 11px;
  cursor: pointer;
  transition: background .15s, transform .06s, box-shadow .15s;
  box-shadow: 0 6px 18px rgba(28, 79, 107, 0.25);
}
.btn:hover { background: var(--navy-deep); box-shadow: 0 8px 24px rgba(28, 79, 107, 0.32); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: progress; box-shadow: none; }
.btn--lg { font-size: 16.5px; padding: 15px 30px; border-radius: 13px; }
.btn--sm { font-size: 14px; padding: 9px 18px; box-shadow: none; }
.btn--block { width: 100%; font-size: 16px; padding: 15px; }
.btn--invert { background: #fff; color: var(--navy-deep); }
.btn--invert:hover { background: #eef4f8; }
.btn--ghost {
  background: transparent; color: var(--navy); box-shadow: none;
  border: 1.5px solid var(--line); margin-top: 18px;
}
.btn--ghost:hover { background: var(--soft); }

/* ============ Topbar ============ */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar__brand img { height: 46px; width: auto; display: block; }
.topbar__back { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14.5px; }
.topbar__back:hover { color: var(--navy); }

/* ============ Pills / meta ============ */
.meta { display: flex; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.pill {
  display: inline-block; background: var(--navy); color: #fff;
  font-size: 12.5px; font-weight: 600; letter-spacing: .03em;
  padding: 6px 13px; border-radius: 999px;
}
.pill--ghost { background: var(--accent-soft); color: var(--navy); }

/* ============ Banner ============ */
.banner { width: 100%; line-height: 0; background: var(--navy-deep); }
.banner img {
  width: 100%; height: auto; max-height: 340px;
  object-fit: cover; display: block;
}
.banner--rounded {
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); margin-bottom: 22px;
}
.banner--rounded img { max-height: 150px; }

/* ============ HERO (landing) ============ */
.hero {
  background:
    radial-gradient(1200px 380px at 78% -8%, rgba(43, 140, 190, 0.14), transparent 60%),
    linear-gradient(180deg, var(--soft), #fff);
  border-bottom: 1px solid var(--line);
}
.hero__inner { max-width: var(--maxw); margin: 0 auto; padding: 64px 24px 56px; }

/* Hero con banner visible de fondo (tema oscuro, texto en blanco) */
.hero--banner { position: relative; overflow: hidden; isolation: isolate; border-bottom: none; }
.hero--banner::before {
  content: ""; position: absolute; inset: -20px;
  background: url("/img/event-banner.jpg") center/cover no-repeat;
  filter: blur(2px) saturate(1.1);
  transform: scale(1.05);
  z-index: -2;
}
/* Capa oscura: protege la legibilidad sin tapar el banner */
.hero--banner::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 32, 45, 0.86) 0%, rgba(12, 32, 45, 0.62) 48%, rgba(12, 32, 45, 0.30) 100%),
    linear-gradient(180deg, rgba(12, 32, 45, 0.25) 0%, rgba(12, 32, 45, 0.55) 100%);
  z-index: -1;
}
.hero--banner .hero__inner { position: relative; z-index: 1; }

/* Texto en claro sobre el banner */
.hero.hero--banner h1 { color: #fff; text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35); }
.hero--banner .hero__subtitle { color: #9fd4ee; }
.hero--banner .facts li { color: #eaf3f8; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.30); }
.hero--banner .hero__seats { color: #e6f0f6; }
.hero--banner .pill { background: var(--accent); color: #fff; }
.hero--banner .pill--ghost {
  background: rgba(255, 255, 255, 0.14); color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.hero h1 {
  font-size: clamp(27px, 4.2vw, 40px);
  line-height: 1.18; margin: 0 0 14px; letter-spacing: -0.015em;
  color: var(--navy-deep); max-width: 100%; text-wrap: balance;
}
.hero__subtitle { font-size: clamp(16px, 2.4vw, 19px); color: var(--accent); font-weight: 600; margin: 0 0 26px; }

.facts { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 10px; }
.facts li { display: flex; gap: 10px; align-items: baseline; font-size: 15.5px; }
.facts__ico { width: 20px; flex: none; }
.facts--compact { gap: 6px; margin-bottom: 0; }
.facts--compact li { font-size: 14px; color: var(--muted); }

.hero__actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hero__seats { color: var(--muted); font-size: 14px; font-weight: 600; }
.hero__seats::before { content: "🔥 "; }

/* ============ Secciones (landing) ============ */
.section { padding: 56px 0; }
.section__title {
  font-size: 22px; color: var(--navy-deep); margin: 40px 0 18px;
  letter-spacing: -0.01em;
}
.section__title:first-child { margin-top: 0; }

.desc { color: var(--ink); font-size: 16.5px; }
.desc p { margin: 0 0 16px; }

.cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; grid-template-columns: repeat(3, 1fr); }
.cards li {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 18px 20px 20px; font-weight: 700; color: var(--navy-deep);
  box-shadow: var(--shadow-sm); position: relative; font-size: 15.5px;
}
.cards li::before {
  content: ""; display: block; width: 34px; height: 34px; margin-bottom: 12px;
  border-radius: 9px; background: var(--accent-soft) center/18px no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232b8cbe' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3C/svg%3E");
}

.callout {
  margin: 34px 0; padding: 24px; border-radius: var(--radius-lg);
  background: var(--accent-soft); border: 1px solid #d4e8f3;
}
.callout h3 { margin: 0 0 6px; color: var(--navy-deep); font-size: 17px; }
.callout p { margin: 0; color: var(--ink); }

.notice {
  background: #fff7e6; border: 1px solid #f3dca6; color: #8a5b00;
  padding: 15px 17px; border-radius: var(--radius); font-size: 14.5px; font-weight: 500;
  margin: 0 0 8px;
}
.notice::before { content: "⚠️ "; }

.presenters-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.presenter {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow-sm);
}
.turnstile-box { margin: 4px 0 16px; min-height: 1px; }
.presenter__head { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; }
.presenter__avatar {
  width: 76px; height: 76px; border-radius: 50%; flex: 0 0 76px;
  object-fit: cover; object-position: center top; background: var(--line);
}
.presenter__avatar--initials {
  display: flex; align-items: center; justify-content: center;
  background: var(--navy-deep); color: #fff; font-weight: 800; font-size: 24px;
  letter-spacing: .02em;
}
.presenter__name { font-weight: 800; color: var(--navy-deep); font-size: 17px; }
.presenter__role { color: var(--accent); font-size: 13.5px; font-weight: 700; }
.presenter__bio { color: var(--muted); font-size: 14px; margin: 0; }

/* ============ CTA final ============ */
.cta-final { background: var(--navy); color: #fff; }
.cta-final__inner { padding: 56px 24px; text-align: center; }
.cta-final__logo { height: 46px; width: auto; margin: 0 auto 20px; opacity: .95; }
.cta-final h2 { font-size: 28px; margin: 0 0 10px; letter-spacing: -0.01em; }
.cta-final p { color: #cfe2ee; max-width: 48ch; margin: 0 auto 26px; }

/* ============ Footer ============ */
.foot {
  text-align: center; padding: 36px 24px;
  border-top: 1px solid var(--line); color: var(--muted);
}
.foot img { height: 64px; width: auto; opacity: .95; margin-bottom: 8px; }
.foot p { margin: 0; font-size: 13.5px; }

/* ============ FAB (móvil) ============ */
.fab {
  display: none; position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 40;
  background: var(--navy); color: #fff; text-decoration: none; text-align: center;
  font-weight: 800; padding: 16px; border-radius: 14px;
  box-shadow: 0 10px 30px rgba(20, 59, 81, 0.35);
}

/* ============ Página de registro ============ */
.page-register { background: var(--soft); }
.register-main { padding: 32px 20px 64px; }
.register-box { max-width: 560px; margin: 0 auto; }

.event-summary { text-align: center; margin-bottom: 22px; }
.event-summary h1 {
  font-size: clamp(20px, 4vw, 26px); color: var(--navy-deep);
  margin: 12px 0 12px; line-height: 1.2; letter-spacing: -0.01em;
}
.event-summary .facts--compact { display: inline-grid; text-align: left; }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: 30px 28px;
}
.card__title { margin: 0 0 4px; font-size: 21px; color: var(--navy-deep); }
.card__hint { margin: 0 0 24px; color: var(--muted); font-size: 14px; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { margin-bottom: 16px; display: flex; flex-direction: column; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field label span { color: var(--danger); }
.field input {
  font: inherit; padding: 12px 13px; border: 1.5px solid var(--line);
  border-radius: 10px; background: #fff; color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.field input::placeholder { color: #9fb0bb; }
.field input:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(43, 140, 190, 0.16);
}
.field input.invalid { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.12); }
.field__note { color: var(--muted); font-size: 12.5px; margin-top: 6px; }

.formmsg {
  background: var(--danger-bg); border: 1px solid #f5c6c0; color: var(--danger);
  padding: 12px 14px; border-radius: 10px; font-size: 14px; font-weight: 500; margin-bottom: 16px;
}
.legal { color: var(--muted); font-size: 12px; text-align: center; margin: 14px 0 0; }

.success { text-align: center; padding: 18px 8px; }
.success__check {
  width: 64px; height: 64px; line-height: 64px; margin: 0 auto 16px;
  border-radius: 50%; background: var(--ok); color: #fff; font-size: 32px; font-weight: 700;
}
.success h2 { color: var(--navy-deep); margin: 0 0 8px; }
.success p { color: var(--muted); margin: 0; }

.brandfoot { text-align: center; color: var(--muted); font-size: 13px; margin: 22px 0 0; }
.brandfoot strong { color: var(--navy); }

/* ============ Responsive ============ */
@media (max-width: 760px) {
  .cards { grid-template-columns: 1fr; }
  .presenters-grid { grid-template-columns: 1fr; }
  .hero__inner { padding: 44px 24px 110px; }
  .section { padding: 40px 0; }
  .topbar__cta { display: none; }          /* en móvil usamos el FAB */
  .fab { display: block; }
  .hero__actions .btn--lg { display: none; } /* evita CTA duplicado con el FAB */
  .hero__seats { font-size: 15px; }
}
@media (max-width: 480px) {
  .grid2 { grid-template-columns: 1fr; }
  .card { padding: 24px 18px; border-radius: var(--radius); }
  .register-main { padding: 22px 14px 40px; }
  .cta-final h2 { font-size: 23px; }
}
