:root {
  --ink: #071a36;
  --ink-soft: #18314e;
  --blue: #0b64f4;
  --blue-hover: #0755d3;
  --cyan: #15d4ee;
  --cyan-glow: rgba(21, 212, 238, 0.35);
  --paper: #f5f7fb;
  --white: #ffffff;
  --line: rgba(7, 26, 54, 0.12);
  --line-dark: rgba(255, 255, 255, 0.15);
  --muted: #607086;
  --max: 1180px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 4px 20px rgba(7, 26, 54, 0.06);
  --shadow-md: 0 12px 36px rgba(7, 26, 54, 0.12);
  --shadow-lg: 0 24px 60px rgba(7, 26, 54, 0.2);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(21, 212, 238, 0.08), transparent 24rem),
    radial-gradient(circle at 90% 22%, rgba(11, 100, 244, 0.08), transparent 28rem),
    var(--paper);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.shell {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
}

/* --- HEADER & NAVIGATION --- */
.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav-wrap::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(21, 212, 238, 0.8), rgba(11, 100, 244, 0.65), transparent);
}

.nav {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  width: 132px;
  height: 74px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.brand img {
  width: 132px;
  height: 74px;
  object-fit: cover;
  object-position: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}

.nav-links a {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--blue);
}

.nav-links .nav-event-link {
  padding: 7px 11px;
  border: 1px solid rgba(11, 100, 244, 0.18);
  border-radius: 999px;
  color: var(--blue);
  background: linear-gradient(135deg, rgba(21, 212, 238, 0.1), rgba(11, 100, 244, 0.08));
}

/* Hamburger toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --- BUTTONS --- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 24px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #0b64f4 0%, #0755d3 58%, #03abc9 150%);
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 10px 25px rgba(11, 100, 244, 0.25);
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  border: none;
  cursor: pointer;
}

.button:hover {
  transform: translateY(-2px);
  background: var(--blue-hover);
  box-shadow: 0 14px 30px rgba(11, 100, 244, 0.35);
}

.button-small {
  min-height: 42px;
  padding-inline: 18px;
  box-shadow: none;
  font-size: 0.88rem;
}

.button-outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
  box-shadow: none;
}

.button-outline:hover {
  color: var(--white);
  background: var(--ink);
}

.button-light {
  color: var(--ink);
  background: var(--white);
  box-shadow: none;
}

.button-light:hover {
  background: #eef4ff;
}

.button-wa {
  background: #25d366;
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.28);
}

.button-wa:hover {
  background: #20ba59;
  box-shadow: 0 14px 30px rgba(37, 211, 102, 0.38);
}

/* --- FEATURE: TALLER OLAETA --- */
.event-feature {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 74px 0 96px;
  color: var(--white);
  background:
    linear-gradient(rgba(21, 212, 238, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 212, 238, 0.055) 1px, transparent 1px),
    radial-gradient(circle at 16% 15%, rgba(21, 212, 238, 0.22), transparent 22rem),
    radial-gradient(circle at 88% 35%, rgba(11, 100, 244, 0.3), transparent 30rem),
    linear-gradient(145deg, #06152d 0%, #082447 55%, #061a35 100%);
  background-size: 42px 42px, 42px 42px, auto, auto, auto;
}

.event-feature::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: 0.45;
  background: linear-gradient(115deg, transparent 35%, rgba(21, 212, 238, 0.08) 48%, transparent 61%);
  transform: translateX(-45%);
  animation: signalSweep 11s ease-in-out infinite;
}

.event-orbit {
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(21, 212, 238, 0.16);
  border-radius: 50%;
  pointer-events: none;
}

.event-orbit::before,
.event-orbit::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 18px var(--cyan);
}

.event-orbit-one {
  width: 420px;
  height: 420px;
  top: -250px;
  right: -90px;
}

.event-orbit-one::before { left: 48px; bottom: 56px; }
.event-orbit-one::after { right: 68px; bottom: 36px; }

.event-orbit-two {
  width: 300px;
  height: 300px;
  left: -190px;
  bottom: 9%;
}

.event-orbit-two::before { right: 20px; top: 92px; }
.event-orbit-two::after { right: 74px; top: 20px; }

.event-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  align-items: end;
  gap: 60px;
  margin-bottom: 42px;
}

.event-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 13px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.event-kicker span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 6px rgba(21, 212, 238, 0.12), 0 0 18px rgba(21, 212, 238, 0.75);
}

.event-intro h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.25rem, 5vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.event-intro > p {
  margin: 0 0 4px;
  color: #c5d8ee;
  font-size: 1.05rem;
  line-height: 1.7;
}

.event-place {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 18px 0 0;
  color: var(--cyan);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.event-place svg {
  flex: none;
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.event-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.28fr);
  align-items: center;
  gap: 48px;
}

.event-poster-card {
  position: relative;
  width: min(100%, 440px);
  justify-self: center;
  padding: 12px;
  border: 1px solid rgba(21, 212, 238, 0.3);
  border-radius: 26px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.035));
  box-shadow: 0 30px 80px rgba(0, 5, 18, 0.42), inset 0 1px rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(16px);
}

.event-poster-glow {
  position: absolute;
  z-index: -1;
  inset: 12% -9% 25%;
  border-radius: 50%;
  background: rgba(21, 212, 238, 0.24);
  filter: blur(55px);
}

.event-poster-card > img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  object-position: center;
  border-radius: 16px;
  box-shadow: 0 18px 42px rgba(0, 8, 24, 0.3);
}

.event-facts {
  display: grid;
  gap: 0;
  padding: 10px 8px 2px;
}

.event-facts span {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 10px;
  padding: 12px 3px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #c7d7e9;
  font-size: 0.82rem;
}

.event-facts span:last-child { border-bottom: 0; }
.event-facts strong { color: var(--cyan); letter-spacing: 0.06em; }

.event-summary-card {
  position: relative;
  overflow: hidden;
  padding: clamp(30px, 5vw, 58px);
  border: 1px solid rgba(21, 212, 238, 0.28);
  border-radius: 28px;
  background:
    radial-gradient(circle at 92% 7%, rgba(21, 212, 238, 0.18), transparent 13rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.035));
  box-shadow: 0 30px 80px rgba(0, 5, 18, 0.34), inset 0 1px rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px);
}

.event-summary-eyebrow {
  margin: 0 0 14px;
  color: var(--cyan);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.event-summary-card h3 {
  max-width: 660px;
  margin: 0;
  font-size: clamp(2rem, 4.2vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.event-summary-card > p:not(.event-summary-eyebrow):not(.event-form-note) {
  max-width: 680px;
  margin: 20px 0 0;
  color: #cadbee;
  font-size: 1rem;
  line-height: 1.7;
}

.event-benefits {
  display: grid;
  gap: 13px;
  margin: 30px 0;
  padding: 0;
  list-style: none;
}

.event-benefits li {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 12px;
  color: #eef7ff;
  line-height: 1.45;
}

.event-benefits span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(21, 212, 238, 0.36);
  border-radius: 10px;
  color: var(--cyan);
  background: rgba(21, 212, 238, 0.08);
  font-size: 0.72rem;
  font-weight: 800;
}

.event-open-button {
  min-width: min(100%, 270px);
  min-height: 56px;
  border: 0;
  cursor: pointer;
}

.event-form-note {
  margin: 13px 0 0;
  color: #9fb8d2;
  font-size: 0.8rem;
}

.activity-history {
  margin-top: 74px;
  padding-top: 38px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.activity-history-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.activity-history-heading p {
  margin: 0 0 7px;
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.activity-history-heading h3 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  letter-spacing: -0.035em;
}

.activity-carousel-controls {
  display: flex;
  gap: 9px;
}

.activity-carousel-controls button {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(21, 212, 238, 0.32);
  border-radius: 50%;
  color: var(--white);
  background: rgba(255, 255, 255, 0.07);
  font-size: 1.25rem;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.activity-carousel-controls button:hover {
  transform: translateY(-2px);
  border-color: var(--cyan);
  background: rgba(21, 212, 238, 0.14);
}

.activity-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(250px, calc((100% - 36px) / 3));
  gap: 18px;
  overflow-x: auto;
  padding: 2px 2px 14px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-color: rgba(21, 212, 238, 0.55) rgba(255, 255, 255, 0.07);
  scrollbar-width: thin;
}

.history-poster {
  overflow: hidden;
  margin: 0;
  padding: 9px;
  border: 1px solid rgba(21, 212, 238, 0.24);
  border-radius: 22px;
  background: rgba(1, 11, 27, 0.58);
  box-shadow: 0 20px 50px rgba(0, 4, 16, 0.3);
  scroll-snap-align: start;
}

.history-poster img {
  display: block;
  width: 100%;
  height: 440px;
  object-fit: contain;
  object-position: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
}

.registration-modal {
  position: fixed;
  z-index: 1200;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.registration-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.registration-modal-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: rgba(1, 9, 24, 0.82);
  backdrop-filter: blur(9px);
  cursor: default;
}

.registration-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(900px, 100%);
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  border-radius: 28px;
  outline: none;
  box-shadow: 0 36px 110px rgba(0, 4, 16, 0.58);
  overscroll-behavior: contain;
}

.registration-modal-close {
  position: sticky;
  z-index: 4;
  top: 14px;
  float: right;
  display: grid;
  width: 44px;
  height: 44px;
  margin: 14px 14px -58px 0;
  place-items: center;
  border: 1px solid rgba(7, 26, 54, 0.14);
  border-radius: 50%;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 24px rgba(0, 8, 24, 0.16);
  cursor: pointer;
}

.registration-modal .event-form-card {
  min-height: 100%;
  border-radius: inherit;
  box-shadow: none;
}

body.registration-modal-open { overflow: hidden; }

.event-form-card {
  overflow: hidden;
  color: var(--ink);
  border: 1px solid rgba(158, 218, 255, 0.6);
  border-radius: 26px;
  background: rgba(248, 252, 255, 0.97);
  box-shadow: 0 28px 80px rgba(0, 5, 18, 0.4);
}

.event-form-heading {
  position: relative;
  padding: 34px 38px 30px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 92% 12%, rgba(21, 212, 238, 0.18), transparent 13rem),
    linear-gradient(135deg, #ffffff 0%, #eff8ff 100%);
}

.event-form-heading::after {
  content: "";
  position: absolute;
  right: 34px;
  top: 30px;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(11, 100, 244, 0.16);
  border-radius: 50%;
  box-shadow: inset 0 0 0 8px rgba(21, 212, 238, 0.06);
}

.form-step {
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.event-form-heading h3 {
  margin: 6px 0;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  letter-spacing: -0.04em;
}

.event-form-heading p { margin: 0; color: var(--muted); font-size: 0.9rem; }

/* Aviso que reemplaza al formulario cuando el cupo ya está cubierto. */
.form-closed-notice {
  padding: 30px 38px 36px;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.6;
}

.form-closed-notice p { margin: 0 0 14px; }
.form-closed-notice p:last-child { margin-bottom: 0; }
.form-closed-notice a { color: var(--blue); font-weight: 700; }

.form-closed-note {
  padding: 14px 18px;
  border-left: 3px solid var(--blue);
  border-radius: 0 12px 12px 0;
  background: rgba(21, 212, 238, 0.09);
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 640px) {
  .form-closed-notice { padding: 24px 22px 28px; }
}

.olaeta-form { padding: 0 38px 40px; }

.form-section {
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.form-section-title {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 25px;
}

.form-section-title > span {
  display: grid;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(11, 100, 244, 0.25);
  border-radius: 10px;
  color: var(--blue);
  background: linear-gradient(145deg, #fff, #eaf4ff);
  font-size: 0.75rem;
  font-weight: 800;
  box-shadow: 0 7px 18px rgba(11, 100, 244, 0.08);
}

.form-section-title h4 { margin: 0; font-size: 1.12rem; }
.form-section-title p { margin: 3px 0 0; color: var(--muted); font-size: 0.86rem; }

.form-grid { display: grid; gap: 17px; }
.form-grid-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-field-wide { grid-column: 1 / -1; }

.form-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 700;
}

.form-field input,
.form-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid rgba(7, 26, 54, 0.18);
  border-radius: 10px;
  outline: none;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  font: inherit;
  font-weight: 500;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.form-field textarea { min-height: 104px; resize: vertical; line-height: 1.5; }
.form-field input:focus,
.form-field textarea:focus { border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(11, 100, 244, 0.1); }

.choice-group {
  min-width: 0;
  margin: 0 0 28px;
  padding: 0;
  border: 0;
}

.choice-group:last-child { margin-bottom: 0; }
/* El margen de .choice-group es solo inferior: cuando una pregunta viene después
   de un campo o de una grilla queda pegada, así que le damos el mismo aire. */
.form-grid + .choice-group,
.form-field + .choice-group { margin-top: 28px; }
.choice-group legend { margin-bottom: 4px; color: var(--ink); font-weight: 800; line-height: 1.4; }
.choice-group.is-invalid legend { color: #b42318; }
.choice-group.is-invalid .choice-grid { padding: 7px; border: 1px solid rgba(180, 35, 24, 0.35); border-radius: 13px; background: rgba(180, 35, 24, 0.04); }
.field-help { margin: 0 0 11px; color: var(--muted); font-size: 0.78rem; }

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.choice-grid-compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choice-grid-frequency { grid-template-columns: 1fr; }

.choice-chip {
  position: relative;
  display: flex;
  min-width: 0;
  cursor: pointer;
}

.choice-chip input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.choice-chip span {
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  padding: 9px 12px 9px 38px;
  border: 1px solid rgba(7, 26, 54, 0.13);
  border-radius: 10px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.82);
  font-size: 0.79rem;
  font-weight: 650;
  line-height: 1.35;
  transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

.choice-chip span::before {
  content: "";
  position: absolute;
  left: 13px;
  width: 15px;
  height: 15px;
  border: 1.5px solid #9baabe;
  border-radius: 4px;
  background: #fff;
}

.choice-chip input[type="radio"] + span::before { border-radius: 50%; }
.choice-chip:hover span { transform: translateY(-1px); border-color: rgba(11, 100, 244, 0.5); }
.choice-chip input:focus-visible + span { outline: 3px solid rgba(11, 100, 244, 0.22); outline-offset: 2px; }
.choice-chip input:checked + span {
  color: #064ebd;
  border-color: rgba(11, 100, 244, 0.55);
  background: linear-gradient(135deg, rgba(11, 100, 244, 0.1), rgba(21, 212, 238, 0.1));
  box-shadow: inset 3px 0 var(--blue);
}

.choice-chip input:checked + span::before {
  border-color: var(--blue);
  background: var(--blue);
  box-shadow: inset 0 0 0 3px white;
}

.choice-other {
  display: grid;
  grid-template-columns: auto minmax(110px, 1fr);
  min-width: 0;
  min-height: 44px;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid rgba(7, 26, 54, 0.13);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.82);
  transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.choice-other:hover,
.choice-other:focus-within { border-color: rgba(11, 100, 244, 0.5); }

.choice-other.is-active {
  border-color: rgba(11, 100, 244, 0.55);
  background: linear-gradient(135deg, rgba(11, 100, 244, 0.1), rgba(21, 212, 238, 0.1));
  box-shadow: inset 3px 0 var(--blue);
}

.choice-other-toggle {
  position: relative;
  display: flex;
  min-width: 100px;
  cursor: pointer;
}

.choice-other-toggle input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.choice-other-toggle span {
  display: flex;
  align-items: center;
  padding: 9px 12px 9px 38px;
  color: var(--ink-soft);
  font-size: 0.79rem;
  font-weight: 650;
}

.choice-other-toggle span::before {
  content: "";
  position: absolute;
  left: 13px;
  width: 15px;
  height: 15px;
  border: 1.5px solid #9baabe;
  border-radius: 4px;
  background: #fff;
}

.choice-other-toggle input:focus-visible + span { outline: 3px solid rgba(11, 100, 244, 0.22); outline-offset: -2px; }
.choice-other-toggle input:checked + span { color: #064ebd; }
.choice-other-toggle input:checked + span::before {
  border-color: var(--blue);
  background: var(--blue);
  box-shadow: inset 0 0 0 3px white;
}

.choice-other-input {
  width: 100%;
  min-width: 0;
  padding: 8px 11px;
  border: 0;
  border-left: 1px solid rgba(7, 26, 54, 0.12);
  outline: 0;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.58);
  font: inherit;
  font-size: 0.79rem;
}

.choice-other-input::placeholder { color: #7a8798; }
.choice-other-input:focus { background: #fff; box-shadow: inset 0 0 0 2px rgba(11, 100, 244, 0.12); }

.form-textarea { margin-top: 24px; }

.form-submit-zone { padding-top: 28px; }
.consent-check { display: flex; align-items: flex-start; gap: 11px; margin-bottom: 22px; color: var(--muted); font-size: 0.82rem; cursor: pointer; }
.consent-check input { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--blue); }
.website-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.event-submit { width: 100%; min-height: 56px; font-size: 1rem; }
.event-submit:disabled { cursor: wait; opacity: 0.7; transform: none; }
.form-status { min-height: 1.5em; margin: 13px 0 0; text-align: center; color: var(--muted); font-size: 0.86rem; font-weight: 650; }
.form-status.is-success { color: #087843; }
.form-status.is-error { color: #b42318; }

@keyframes signalSweep {
  0%, 28% { transform: translateX(-55%); }
  65%, 100% { transform: translateX(65%); }
}

/* --- HERO SECTION --- */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 75% 20%, rgba(21, 212, 238, 0.18), transparent 30%),
    radial-gradient(circle at 20% 90%, rgba(11, 100, 244, 0.25), transparent 40%),
    var(--ink);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: linear-gradient(to right, black, transparent 80%);
  animation: techGridDrift 22s linear infinite;
}

.hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: -45% -20%;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 35%, rgba(21, 212, 238, 0.18), transparent 16rem),
    radial-gradient(circle at 75% 60%, rgba(11, 100, 244, 0.28), transparent 22rem);
  animation: techGlowOrbit 16s ease-in-out infinite alternate;
}

.hero-grid {
  position: relative;
  z-index: 1;
  min-height: 700px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 60px;
  padding-block: 80px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 800;
}

.hero h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(2.8rem, 5.5vw, 4.8rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.hero-lead {
  max-width: 600px;
  margin: 24px 0 0;
  color: #c8d5e8;
  font-size: 1.15rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 36px;
}

.hero-services-button {
  gap: 12px;
  min-height: 56px;
  padding-inline: 28px;
}

.hero-services-button span {
  color: var(--cyan);
  font-size: 1.2rem;
  transition: transform 0.2s ease;
}

.hero-services-button:hover span { transform: translateY(3px); }

.text-link {
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.text-link span {
  color: var(--cyan);
}

.proof-line {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 48px;
  color: #95a9c2;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 800;
}

.proof-line i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--cyan);
}

.hero-visual {
  position: relative;
  justify-self: end;
  width: min(100%, 460px);
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: -14px 18px -14px -14px;
  border: 1px solid rgba(21, 212, 238, 0.4);
  border-radius: var(--radius-md);
}

/* Collage de capacitaciones: una foto grande que va rotando entre encuentros y
   una tira de miniaturas para elegir el lugar. */
.hero-collage {
  position: relative;
  display: grid;
  gap: 10px;
}

.hero-collage-stage {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: #0a1a30;
  box-shadow: var(--shadow-lg);
}

.hero-collage-photo {
  display: block;
  width: 100%;
  height: 402px;
  object-fit: cover;
  object-position: center 62%;
  transition: opacity 0.4s ease;
}

.hero-collage.is-swapping .hero-collage-photo { opacity: 0; }

.hero-collage-stage::after {
  content: "";
  position: absolute;
  inset: 45% 0 0;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent, rgba(4, 15, 32, 0.72));
}

.hero-collage-caption {
  position: absolute;
  z-index: 1;
  right: 14px;
  bottom: 14px;
  left: 14px;
  display: grid;
  gap: 3px;
  margin: 0;
  padding: 11px 15px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: rgba(6, 20, 40, 0.55);
  backdrop-filter: blur(8px);
}

.hero-collage-caption strong {
  color: var(--white);
  font-size: 0.98rem;
  line-height: 1.2;
}

.hero-collage-caption span {
  color: var(--cyan);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-collage-thumbs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.hero-collage-thumb {
  height: 64px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  background: #0a1a30;
  opacity: 0.55;
  cursor: pointer;
  transition: opacity 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.hero-collage-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-collage-thumb:hover,
.hero-collage-thumb:focus-visible {
  opacity: 0.92;
  transform: translateY(-2px);
}

.hero-collage-thumb.is-active {
  opacity: 1;
  border-color: var(--cyan);
  box-shadow: 0 0 0 1px var(--cyan);
}

.hero-collage-thumb:nth-child(2) img { object-position: center 40%; }
.hero-collage-thumb:nth-child(4) img { object-position: center 35%; }

.hero-note {
  position: relative;
  display: grid;
  gap: 6px;
  margin-top: 16px;
  padding: 20px 24px;
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
}

.hero-note strong {
  font-size: 1rem;
  color: var(--ink);
}

.hero-note span {
  color: var(--muted);
  font-size: 0.85rem;
}

/* --- SECTION GENERAL --- */
.section {
  padding: 100px 0;
}

.section-heading {
  margin-bottom: 50px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.center-heading {
  max-width: 760px;
  text-align: center;
  margin-inline: auto;
}

.center-heading p:last-child {
  max-width: 620px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 1.05rem;
}

/* --- SERVICE FILTERS --- */
.service-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 10px 20px;
  border-radius: 30px;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.filter-btn.active {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(11, 100, 244, 0.25);
}

/* --- SERVICE GRID & CARDS --- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.98), rgba(239, 247, 255, 0.93));
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.service-image {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: var(--ink);
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
  transform: scale(1.06);
}

.service-image::after {
  content: "";
  position: absolute;
  inset: 40% 0 0;
  background: linear-gradient(transparent, rgba(7, 26, 54, 0.7));
}

.service-badge {
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 14px;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(7, 26, 54, 0.75);
  backdrop-filter: blur(8px);
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid rgba(21, 212, 238, 0.3);
}

.service-number {
  position: absolute;
  z-index: 2;
  right: 16px;
  bottom: 12px;
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.service-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 26px;
}

.service-body h3 {
  margin: 0 0 12px;
  font-size: 1.25rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.service-body p {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
  flex: 1;
}

.service-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.btn-detail {
  color: var(--blue);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-detail:hover {
  text-decoration: underline;
}

.btn-consult {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.btn-consult:hover {
  color: var(--blue);
}

/* --- TRAINING SECTION --- */
.training {
  background: var(--white);
}

.split-heading {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: end;
  gap: 60px;
}

.split-heading > p {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.training-grid {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  align-items: center;
  gap: 60px;
}

.training-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.training-event {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.training-event-label {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 12px 14px 11px;
}

.training-event-label span {
  color: var(--blue);
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.training-event-label strong {
  min-width: 0;
  overflow: hidden;
  font-size: 0.76rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.training-event-photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px;
  height: 190px;
}

.training-photo {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  background: var(--ink);
}

.training-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.training-photo:hover img { transform: scale(1.045); }

/* Olaeta abre la galería a todo el ancho por ser el encuentro más reciente. */
.training-event-featured {
  grid-column: 1 / -1;
}

.training-event-featured .training-event-photos {
  height: 250px;
}

.training-event-label em {
  margin-left: auto;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(11, 100, 244, 0.1);
  color: var(--blue);
  font-size: 0.6rem;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.training-event:nth-child(1) .training-photo:first-child img { object-position: center 22%; }
.training-event:nth-child(1) .training-photo:last-child img { object-position: center 72%; }
.training-event:nth-child(2) .training-photo:first-child img { object-position: center 28%; }
.training-event:nth-child(2) .training-photo:last-child img { object-position: center 45%; }
.training-event:nth-child(3) .training-photo:first-child img { object-position: center 28%; }
.training-event:nth-child(3) .training-photo:last-child img { object-position: center 35%; }
.training-event:nth-child(4) .training-photo img { object-position: center 38%; }
.training-event:nth-child(5) .training-photo:last-child img { object-position: center 32%; }

.training-cta {
  gap: 12px;
  min-height: 56px;
  padding-inline: 28px;
  box-shadow: 0 14px 32px rgba(11, 100, 244, 0.3);
}

.training-cta span { color: var(--cyan); font-size: 1.12rem; }

.training-content h3 {
  margin: 0 0 24px;
  font-size: 1.8rem;
  letter-spacing: -0.02em;
}

.training-content ul {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
}

.training-content li {
  position: relative;
  padding: 14px 0 14px 32px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.96rem;
}

.training-content li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 900;
}

/* --- CONTACT / LEAD CAPTURE SECTION --- */
.cta {
  position: relative;
  overflow: hidden;
  padding: 104px 0;
  color: var(--white);
  background:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    radial-gradient(circle at 78% 30%, rgba(21, 212, 238, 0.28), transparent 22rem),
    linear-gradient(135deg, #0b64f4, #074ab7 72%, #062e75);
  background-size: 40px 40px, 40px 40px, auto, auto;
  animation: contactGridDrift 24s linear infinite;
}

.cta::before {
  content: "";
  position: absolute;
  inset: -50% -15%;
  pointer-events: none;
  background:
    radial-gradient(circle at 24% 42%, rgba(21, 212, 238, 0.22), transparent 18rem),
    radial-gradient(circle at 82% 60%, rgba(255, 255, 255, 0.11), transparent 20rem);
  animation: techGlowOrbit 18s ease-in-out infinite alternate-reverse;
}

.contact-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  align-items: start;
  gap: clamp(48px, 7vw, 92px);
}

.cta h2 {
  margin: 0;
  font-size: clamp(2.5rem, 4vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.contact-copy > p:not(.eyebrow):not(.contact-privacy-note) {
  margin: 24px 0 0;
  color: #d7e6fa;
  font-size: 1.04rem;
  line-height: 1.7;
}

.contact-privacy-note {
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.78rem;
}

.lead-form {
  overflow: hidden;
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 32px 80px rgba(3, 23, 54, 0.3);
}

.lead-form-heading {
  padding: 28px 32px 24px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(11, 100, 244, 0.08), rgba(21, 212, 238, 0.06));
}

.lead-form-heading > span {
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lead-form-heading h3 {
  margin: 7px 0 4px;
  font-size: 1.65rem;
  letter-spacing: -0.03em;
}

.lead-form-heading p { margin: 0; color: var(--muted); font-size: 0.84rem; }

.lead-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 19px 16px;
  padding: 28px 32px 32px;
}

.lead-field {
  display: grid;
  gap: 8px;
}

.lead-field-wide { grid-column: 1 / -1; }

.lead-field > span,
.lead-services legend,
.lead-preference legend {
  color: var(--ink-soft);
  font-size: 0.84rem;
  font-weight: 750;
}

.lead-field small {
  margin-left: 5px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
}

.lead-field input,
.lead-field textarea {
  width: 100%;
  border: 1px solid rgba(7, 26, 54, 0.2);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.lead-field input { min-height: 48px; padding: 0 13px; }
.lead-field textarea { min-height: 128px; padding: 13px; resize: vertical; line-height: 1.5; }

.lead-field input:focus,
.lead-field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(11, 100, 244, 0.1);
}

.lead-services,
.lead-preference {
  margin: 3px 0 0;
  padding: 0;
  border: 0;
}

.lead-services > p {
  margin: 5px 0 12px;
  color: var(--muted);
  font-size: 0.78rem;
}

.lead-service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.lead-service-grid label,
.lead-preference label {
  position: relative;
  cursor: pointer;
}

.lead-service-grid input,
.lead-preference input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.lead-service-grid span,
.lead-preference span {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper);
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 680;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.lead-service-grid input:checked + span,
.lead-preference input:checked + span {
  border-color: var(--blue);
  background: rgba(11, 100, 244, 0.09);
  color: var(--blue);
}

.lead-service-grid input:focus-visible + span,
.lead-preference input:focus-visible + span { outline: 3px solid rgba(11, 100, 244, 0.22); }

.lead-services.is-invalid .lead-service-grid { padding: 7px; border: 1px solid #b42318; border-radius: 12px; }

.lead-preference {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.lead-preference legend { margin-bottom: 10px; }
.lead-preference span { justify-content: center; }

.lead-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.77rem;
  line-height: 1.4;
}

.lead-consent input { width: 18px; height: 18px; margin: 0; accent-color: var(--blue); flex: 0 0 auto; }

.lead-submit { width: 100%; min-height: 56px; }
.lead-submit:disabled { cursor: wait; opacity: 0.7; transform: none; }

@keyframes techGridDrift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 100px 50px, 50px 100px; }
}

@keyframes contactGridDrift {
  from { background-position: 0 0, 0 0, center, center; }
  to { background-position: 80px 40px, 40px 80px, center, center; }
}

@keyframes techGlowOrbit {
  0% { transform: translate3d(-3%, -2%, 0) scale(1); }
  55% { transform: translate3d(4%, 3%, 0) scale(1.08); }
  100% { transform: translate3d(-1%, 5%, 0) scale(0.98); }
}

/* --- FOOTER --- */
footer {
  padding: 60px 0 24px;
  color: #becbe0;
  background: #06162e;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr 0.8fr;
  gap: 60px;
}

.footer-brand img {
  width: 180px;
  height: 110px;
  object-fit: cover;
  object-position: center;
  margin: 0 auto 16px;
}

.footer-brand { display: flex; flex-direction: column; align-items: center; text-align: center; }

.footer-brand p {
  max-width: 320px;
  font-size: 0.92rem;
  line-height: 1.6;
}

.footer-brand .registered-mark {
  display: inline-flex;
  width: fit-content;
  max-width: none;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 7px 11px;
  border: 1px solid rgba(21, 212, 238, 0.22);
  border-radius: 999px;
  color: #c5d8ee;
  background: rgba(21, 212, 238, 0.055);
  font-size: 0.74rem;
  line-height: 1.2;
}

.registered-mark span {
  color: var(--cyan);
  font-size: 0.95rem;
  font-weight: 800;
}

footer h3 {
  margin: 4px 0 16px;
  color: var(--white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.footer-grid > div:not(:first-child) {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
}

.footer-grid a:hover {
  color: var(--cyan);
}

.fiscal-badge {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-top: 12px;
}

.fiscal-badge > span {
  color: #8fa3bf;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fiscal-badge a {
  display: inline-flex;
  border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.fiscal-badge a:hover,
.fiscal-badge a:focus-visible {
  box-shadow: 0 0 0 2px rgba(21, 212, 238, 0.5);
  transform: translateY(-2px);
}

.fiscal-badge img {
  display: block;
  width: 72px;
  height: auto;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  margin-top: 50px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #7589a6;
  font-size: 0.8rem;
}

/* --- MODAL DIALOG --- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(7, 26, 54, 0.75);
  backdrop-filter: blur(10px);
}

.modal-content {
  position: relative;
  z-index: 10;
  width: min(100%, 780px);
  max-height: 90vh;
  overflow-y: auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal.active .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 20;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(7, 26, 54, 0.6);
  color: var(--white);
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.modal-close:hover {
  background: var(--ink);
}

.modal-hero {
  position: relative;
  height: 240px;
  overflow: hidden;
  background: var(--ink);
}

.modal-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.modal-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 26, 54, 0.85), transparent 60%);
}

.modal-header-info {
  position: absolute;
  bottom: 20px;
  left: 28px;
  right: 28px;
  z-index: 2;
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.modal-header-info .service-badge {
  position: static;
  display: inline-flex;
  width: fit-content;
  margin: 0 0 9px;
  flex: 0 0 auto;
}

.modal-header-info h2 {
  margin: 0 0 4px;
  font-size: 1.6rem;
  color: var(--white);
}

.modal-header-info p {
  margin: 0;
  color: #c0d2e8;
  font-size: 0.92rem;
}

.modal-body {
  padding: 32px 28px;
}

.modal-body h4 {
  margin: 24px 0 12px;
  font-size: 1.05rem;
  color: var(--ink);
}

.modal-body h4:first-child {
  margin-top: 0;
}

.modal-deliverables-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.modal-deliverables-list li {
  position: relative;
  padding: 8px 0 8px 26px;
  font-size: 0.93rem;
  color: var(--ink-soft);
  border-bottom: 1px dashed var(--line);
}

.modal-deliverables-list li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--blue);
}

.modal-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 24px 0 32px;
  padding: 16px;
  border-radius: var(--radius-sm);
  background: var(--paper);
  border: 1px solid var(--line);
}

.modal-meta-item label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 4px;
}

.modal-meta-item span {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

/* --- FLOATING WHATSAPP WIDGET --- */
.floating-wa {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 30px;
  background: #25d366;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.floating-wa:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 14px 30px rgba(37, 211, 102, 0.5);
}

.floating-wa svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

/* Keyframes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 980px) {
  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 24px;
    gap: 18px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    display: none;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links .nav-event-link {
    width: fit-content;
  }

  .event-intro,
  .event-grid {
    grid-template-columns: 1fr;
  }

  .event-intro {
    align-items: start;
    gap: 20px;
  }

  .event-intro > p { max-width: 700px; }

  .event-poster-card {
    display: block;
    width: min(100%, 520px);
  }

  .event-summary-card {
    width: min(100%, 760px);
    justify-self: center;
  }

  .activity-carousel {
    grid-auto-columns: minmax(270px, 58vw);
  }

  .hero-grid,
  .training-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    justify-self: stretch;
    width: min(100%, 640px);
  }

  .hero-collage-photo {
    height: 420px;
  }

  .split-heading {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-copy { max-width: 720px; }
}

@media (max-width: 640px) {
  .shell {
    width: min(calc(100% - 28px), var(--max));
  }

  .hero-grid {
    padding-top: 50px;
    gap: 48px;
  }

  .event-feature { padding: 48px 0 64px; }

  .event-intro { margin-bottom: 28px; }

  .event-intro h2 {
    font-size: clamp(2.1rem, 11vw, 3.2rem);
    line-height: 1.02;
  }

  .event-intro > p { font-size: 0.96rem; }

  .event-grid { gap: 22px; }

  .event-poster-card {
    display: block;
    padding: 9px;
    border-radius: 18px;
  }

  .event-poster-card > img { border-radius: 12px; }

  .event-summary-card {
    padding: 27px 22px;
    border-radius: 20px;
  }

  .event-summary-card h3 { font-size: clamp(2rem, 10vw, 3rem); }

  .event-benefits li {
    grid-template-columns: 32px 1fr;
    font-size: 0.9rem;
  }

  .event-open-button { width: 100%; }

  .activity-history {
    margin-top: 52px;
    padding-top: 30px;
  }

  .activity-history-heading { align-items: center; }

  .activity-carousel { grid-auto-columns: minmax(250px, 84vw); }

  .history-poster img { height: 420px; }

  .registration-modal { padding: 0; }

  .registration-modal-dialog {
    width: 100%;
    height: 100%;
    max-height: none;
    border-radius: 0;
  }

  .registration-modal .event-form-card { border-radius: 0; }

  .registration-modal-close {
    top: 10px;
    margin: 10px 10px -54px 0;
  }

  .event-facts { padding: 8px 5px 1px; }

  .event-facts span {
    grid-template-columns: 76px 1fr;
    font-size: 0.76rem;
  }

  .event-form-card { border-radius: 18px; }

  .event-form-heading { padding: 26px 21px 23px; }

  .event-form-heading::after { right: 20px; top: 22px; width: 38px; height: 38px; }

  .olaeta-form { padding: 0 21px 30px; }

  .form-section { padding: 28px 0; }

  .form-grid-two,
  .choice-grid,
  .choice-grid-compact {
    grid-template-columns: 1fr;
  }

  .choice-chip span {
    min-height: 48px;
    font-size: 0.82rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .training-gallery { grid-template-columns: 1fr; gap: 12px; }
  .training-event-photos { height: 190px; }
  .training-event-featured .training-event-photos { height: 210px; }
  .training-event-label em { display: none; }

  .hero-collage-photo { height: 330px; }
  .hero-collage-thumb { height: 52px; }

  .training-cta { width: 100%; }

  .cta { padding: 76px 0; }
  .contact-layout { gap: 38px; }
  .lead-form { border-radius: 16px; }
  .lead-form-heading { padding: 24px 20px 21px; }
  .lead-fields { grid-template-columns: 1fr; padding: 23px 20px 26px; }
  .lead-field-wide { grid-column: auto; }
  .lead-service-grid { grid-template-columns: 1fr; }
  .lead-preference { grid-template-columns: 1fr; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
  }

  .modal-meta-grid {
    grid-template-columns: 1fr;
  }

  .modal {
    padding: 10px;
  }

  .modal-hero {
    height: 270px;
  }

  .modal-header-info {
    left: 18px;
    right: 58px;
    bottom: 18px;
  }

  .modal-header-info h2 {
    font-size: 1.3rem;
    line-height: 1.18;
  }

  .modal-header-info p {
    font-size: 0.8rem;
    line-height: 1.35;
  }

  .modal-body { padding: 26px 20px; }

  .modal-footer .button { width: 100%; text-align: center; }

  .floating-wa span {
    display: none;
  }

  .floating-wa {
    padding: 14px;
    border-radius: 50%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}

/* Próximas actividades: cada flyer completo y su inscripción. */
.upcoming-heading { position: relative; margin-bottom: 32px; }
.upcoming-heading h2 { margin: 0; font-size: clamp(2rem, 4.5vw, 3.8rem); letter-spacing: -0.045em; }
.upcoming-grid { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; max-width: 1000px; }
.upcoming-card { display: flex; flex-direction: column; gap: 16px; min-width: 0; padding: 12px; border: 1px solid rgba(21, 212, 238, 0.3); border-radius: 22px; background: rgba(255, 255, 255, 0.06); scroll-margin-top: 100px; }
.upcoming-card > img { display: block; width: 100%; height: auto; object-fit: contain; border-radius: 12px; }
.upcoming-card .event-open-button { display: flex; width: 100%; min-height: 56px; margin-top: auto; padding: 14px 12px; text-align: center; font-size: 0.93rem; }

/* Página independiente de Tres Algarrobos; no altera los modales existentes. */
.tres-algarrobos-page { background: #f0f6fc; }
.tres-algarrobos-page button { font-family: inherit; }
.event-back-link { margin-left: auto; color: var(--blue); font-weight: 700; font-size: 0.9rem; }
.tres-hero { padding: 58px 0 64px; color: #fff; background: radial-gradient(circle at 78% 15%, rgba(21, 212, 238, 0.16), transparent 30rem), #071a36; }
.tres-hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); align-items: center; gap: 60px; }
.tres-hero h1 { max-width: 20ch; margin: 18px 0; font-size: clamp(2rem, 3.9vw, 3.55rem); line-height: 1.08; letter-spacing: -0.045em; }
.tres-location { color: var(--cyan); font-size: 1.2rem; font-weight: 750; }
.tres-intro { max-width: 54ch; margin: 16px 0 26px; color: #c5d8ee; line-height: 1.65; }
.tres-event-details { min-width: 0; padding: 26px; color: var(--ink); background: #fff; border-radius: 22px; }
.tres-free { margin: 0 0 20px; color: #07614d; font-weight: 800; }
.tres-event-details dl { display: grid; gap: 14px; margin: 0; }
.tres-event-details dt { font-size: 0.72rem; color: var(--muted); font-weight: 750; text-transform: uppercase; letter-spacing: 0.06em; }
.tres-event-details dd { margin: 3px 0 0; font-size: 1rem; font-weight: 650; line-height: 1.5; }
.tres-organizers { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 16px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.tres-organizers > div { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.tres-organizers span { font-size: 0.72rem; font-weight: 700; color: var(--muted); }
.tres-organizers img { width: 112px; height: 66px; object-fit: contain; }
.tres-organizers img.cooperative-logo { width: 66px; height: 66px; }
.tres-organizers strong { font-size: 0.64rem; line-height: 1.35; }
.tres-registration { max-width: 960px; padding-top: 40px; padding-bottom: 48px; scroll-margin-top: 100px; }
.tres-registration .event-form-card { box-shadow: 0 16px 48px rgba(7, 26, 54, 0.1); }
.tres-registration .event-form-heading h1 { margin: 8px 0; font-size: clamp(1.8rem, 3vw, 2.5rem); letter-spacing: -0.04em; }
.tres-device-reminder { margin: 18px 0 0; padding: 14px 18px; color: #33475f; background: #e7eef7; border-radius: 12px; text-align: center; font-size: 0.92rem; }
.tres-confirmation-card { width: min(100%, 720px); margin: 0 auto; padding: clamp(28px, 6vw, 58px); text-align: center; scroll-margin-top: 100px; }
.tres-confirmation-card[hidden] { display: none; }
.tres-confirmation-card h1 { margin: 10px 0 12px; font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -0.045em; }
.tres-confirmation-icon { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 20px; border-radius: 50%; color: #fff; background: #087843; font-size: 2.5rem; font-weight: 900; box-shadow: 0 12px 30px rgba(8, 120, 67, 0.24); }
.tres-confirmation-lead { max-width: 52ch; margin: 0 auto; color: var(--muted); font-size: 1.05rem; line-height: 1.6; }
.tres-confirmation-details { margin: 28px 0 22px; padding: 22px; border: 1px solid rgba(11, 100, 244, 0.17); border-radius: 16px; background: #f2f7fc; }
.tres-confirmation-details p { margin: 5px 0; }
.tres-confirmation-code { margin: 0 0 24px; }
.tres-confirmation-code strong { white-space: nowrap; color: var(--blue); }
.tres-confirmation-card .button { width: 100%; }
.tres-future-card { width: min(100%, 720px); margin: 0 auto; scroll-margin-top: 100px; }
.tres-future-card[hidden] { display: none; }
.tres-future-card .event-form-heading { background: linear-gradient(135deg, #fff4d8, #f5fbff); }
.tres-future-card .form-step { color: #9b4a20; }
.tres-registration .event-form-heading::after { display: none; }
.tres-registration .form-field input, .tres-registration .form-field textarea, .tres-registration .choice-other-input { font-size: 16px; }
.tres-registration .form-status { overflow-wrap: anywhere; }
.tres-help { margin: 24px 0 0; text-align: center; color: var(--muted); font-size: 0.9rem; }
.tres-help a { color: var(--blue); font-weight: 700; }
.tres-footer { padding: 28px 0; text-align: center; font-size: 0.8rem; }
.tres-footer a { color: #fff; }
@media (max-width: 800px) {
  .tres-hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .tres-hero h1 { max-width: 24ch; }
}
@media (max-width: 640px) {
  .upcoming-grid { grid-template-columns: 1fr; gap: 28px; }
  .upcoming-card { width: 100%; max-width: 480px; justify-self: center; padding: 9px; border-radius: 18px; }
  .upcoming-card .event-open-button { font-size: 0.85rem; }
  .tres-hero { padding: 32px 0; }
  .tres-hero .event-kicker { font-size: 0.65rem; letter-spacing: 0.07em; }
  .tres-hero .event-kicker span { flex: none; }
  .tres-location { font-size: 1rem; }
  .tres-hero .button { width: 100%; }
  .tres-event-details { padding: 22px; }
  .tres-registration { padding-top: 24px; }
  .tres-registration .event-form-heading, .tres-registration .olaeta-form { padding-left: 18px; padding-right: 18px; }
  .tres-registration .form-section-title { align-items: flex-start; }
  .event-back-link { font-size: 0.78rem; }
}

/* --- PAGO Y COMPROBANTE (Las Higueras) --- */
.payment-card {
  padding: 20px 22px;
  border: 1px solid rgba(11, 100, 244, 0.22);
  border-radius: var(--radius-md);
  background: linear-gradient(150deg, rgba(21, 212, 238, 0.08), rgba(11, 100, 244, 0.05));
}

.payment-amount { margin: 0 0 15px; color: var(--ink); font-size: 0.92rem; font-weight: 650; }
.payment-amount strong { font-size: 1.14rem; font-weight: 850; }

.payment-data {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px 20px;
  margin: 0 0 19px;
}

.payment-data > div { min-width: 0; }
.payment-data dt { color: var(--muted); font-size: 0.71rem; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; }
.payment-data dd { margin: 3px 0 0; color: var(--ink); font-size: 0.9rem; font-weight: 700; overflow-wrap: anywhere; }

.payment-upload { display: flex; flex-wrap: wrap; gap: 10px 15px; align-items: center; }

.payment-upload-button {
  position: relative;
  display: inline-flex;
  padding: 12px 21px;
  border: 1px dashed rgba(11, 100, 244, 0.45);
  border-radius: 11px;
  color: var(--blue);
  background: rgba(255, 255, 255, 0.9);
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.payment-upload-button:hover { border-color: var(--blue); background: #fff; }
.payment-upload-button:focus-within { border-style: solid; box-shadow: 0 0 0 4px rgba(11, 100, 244, 0.12); }
.payment-upload-button input { position: absolute; width: 1px; height: 1px; opacity: 0; }

.payment-upload-name { margin: 0; color: var(--muted); font-size: 0.8rem; font-weight: 650; overflow-wrap: anywhere; }
.payment-upload-name.is-ready { color: #087843; }
.payment-card .field-help { margin: 15px 0 0; }
.form-status a { color: inherit; font-weight: 800; }

@media (max-width: 640px) {
  .payment-card { padding: 18px 16px; }
  .payment-data { grid-template-columns: 1fr; }
  .payment-upload-button { width: 100%; justify-content: center; }
}
