:root {
  --bg: #f5f7fb;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-strong: #ffffff;
  --text: #11254f;
  --muted: #3b4a6e;
  --primary: #142f73;
  --primary-strong: #0c2155;
  --accent: #e73e58;
  --accent-soft: #ffd8de;
  --line: rgba(17, 37, 79, 0.1);
  --shadow: 0 25px 70px rgba(20, 47, 115, 0.14);
  --radius-xl: 32px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Outfit", Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(231, 62, 88, 0.14), transparent 28%),
    radial-gradient(circle at top right, rgba(20, 47, 115, 0.12), transparent 30%),
    var(--bg);
  color: var(--text);
}

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

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

.page-shell {
  width: min(calc(100% - 32px), var(--container));
  margin: 24px auto 48px;
}

.hero,
.section,
.trust-strip {
  backdrop-filter: blur(14px);
}

.hero {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(241, 245, 255, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 36px;
  box-shadow: var(--shadow);
  overflow: hidden;
  padding: 28px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 34px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand img {
  width: 62px;
  height: 62px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(20, 47, 115, 0.18);
}

.brand-kicker {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-bottom: 4px;
}

.brand strong {
  font-size: 1.05rem;
}

.topbar-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border-radius: 999px;
  padding: 0 24px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(20, 47, 115, 0.08);
  border: 1px solid rgba(20, 47, 115, 0.1);
}

.lang-btn {
  border: 0;
  background: transparent;
  color: var(--primary);
  min-width: 48px;
  min-height: 40px;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.lang-btn.is-active {
  background: #fff;
  box-shadow: 0 8px 18px rgba(20, 47, 115, 0.12);
}

.topbar-cta:hover,
.btn:hover {
  transform: translateY(-1px);
}

.topbar-cta,
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #ff6e63);
  color: #fff;
  box-shadow: 0 16px 30px rgba(231, 62, 88, 0.25);
}

.btn-secondary {
  background: rgba(20, 47, 115, 0.08);
  color: var(--primary);
  border: 1px solid rgba(20, 47, 115, 0.12);
}

.btn-ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
}

.btn-block {
  width: 100%;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.hero h1,
.section h2 {
  margin: 18px 0 16px;
  line-height: 1.02;
}

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  max-width: 11ch;
}

.hero-text,
.section p,
.benefit-card p,
.experience-list li,
.trust-strip p,
.form-note,
.quick-info span {
  color: var(--muted);
}

.hero-text,
.section p {
  font-size: 1.08rem;
  line-height: 1.7;
}

.event-card {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 28px 0;
  padding: 18px;
  background: rgba(20, 47, 115, 0.05);
  border: 1px solid rgba(20, 47, 115, 0.08);
  border-radius: var(--radius-lg);
}

.event-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.88rem;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}

.microproof {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.microproof li {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(20, 47, 115, 0.08);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-weight: 500;
}

.hero-visual {
  position: relative;
}

.hero-image-card {
  border-radius: 34px;
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(20, 47, 115, 0.2);
}

.hero-image-card img {
  width: 100%;
  height: 640px;
  object-fit: cover;
}

.floating-note {
  position: absolute;
  left: auto;
  right: 18px;
  bottom: 24px;
  width: min(310px, calc(100% - 22px));
  padding: 18px 20px;
  border-radius: 24px;
  background: rgba(20, 47, 115, 0.92);
  color: #fff;
  box-shadow: 0 20px 40px rgba(11, 27, 71, 0.25);
}

.floating-note span {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.trust-strip,
.section {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 24px 0;
  padding: 24px;
  border-radius: 28px;
}

.trust-strip article,
.benefit-card,
.quote-card,
.lead-form,
.location-card,
.experience-panel {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  box-shadow: 0 18px 38px rgba(20, 47, 115, 0.07);
}

.trust-strip article {
  border-radius: 22px;
  padding: 18px;
}

.section {
  border-radius: 32px;
  padding: 34px;
  margin-top: 24px;
}

.story-section {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 28px;
}

.section h2 {
  font-size: clamp(2rem, 4.3vw, 3.4rem);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.benefit-card {
  padding: 24px;
  border-radius: 26px;
}

.benefit-card h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}

.experience-panel {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 22px;
  padding: 26px;
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(20, 47, 115, 0.98), rgba(28, 61, 143, 0.95)),
    var(--surface-strong);
  color: #fff;
}

.experience-panel .section-kicker {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.experience-panel .section-kicker,
.experience-panel p,
.experience-list {
  color: rgba(255, 255, 255, 0.9);
}

.experience-panel .experience-list li {
  color: rgba(255, 255, 255, 0.92);
}

.experience-list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 12px;
  align-content: center;
}

.quote-card {
  border-radius: 28px;
  padding: 34px;
  text-align: center;
}

.quote-card p {
  margin: 0 0 12px;
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  line-height: 1.5;
  color: var(--text);
}

.quote-card span {
  color: var(--muted);
  font-size: 0.95rem;
}

.register-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: start;
}

.quick-info {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.quick-info div {
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(20, 47, 115, 0.05);
  border: 1px solid rgba(20, 47, 115, 0.08);
}

.quick-info span {
  display: block;
  margin-bottom: 6px;
}

.lead-form {
  display: grid;
  gap: 16px;
  padding: 26px;
  border-radius: 28px;
}

.lead-form label {
  display: grid;
  gap: 10px;
  font-weight: 600;
}

.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  border: 1px solid rgba(17, 37, 79, 0.14);
  border-radius: 16px;
  padding: 14px 16px;
  font: inherit;
  color: var(--text);
  background: #f8faff;
}

.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
  outline: 2px solid rgba(231, 62, 88, 0.25);
  border-color: rgba(231, 62, 88, 0.45);
}

.checkbox {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 12px;
  font-size: 0.96rem;
}

.checkbox input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
}

.form-note {
  margin: 0;
  font-size: 0.94rem;
  text-align: center;
}

.form-status {
  margin: 0;
  text-align: center;
  min-height: 1.5em;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
}

.form-status.is-error {
  color: #b42318;
}

.form-status.is-success {
  color: #067647;
}

.location-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(20, 47, 115, 0.96), rgba(11, 27, 71, 0.96)),
    var(--surface-strong);
  color: #fff;
}

.location-card .section-kicker {
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 8px;
  padding: 0;
  border-radius: 0;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
}

.location-card p {
  color: rgba(255, 255, 255, 0.9);
}

.location-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-self: center;
}

/* Los CTAs dentro del bloque oscuro necesitan contraste alto */
.location-card .btn-secondary {
  background: rgba(255, 255, 255, 0.14) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
}

.location-card .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
}

@media (max-width: 1080px) {
  .hero-grid,
  .story-section,
  .register-section,
  .experience-panel {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    max-width: none;
  }

  .hero-image-card img {
    height: 520px;
  }

  .floating-note {
    right: 16px;
    left: auto;
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(calc(100% - 18px), var(--container));
    margin: 10px auto 24px;
  }

  .hero,
  .section,
  .trust-strip {
    border-radius: 24px;
  }

  .hero,
  .section {
    padding: 22px;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .topbar-cta,
  .hero-actions .btn,
  .location-actions .btn {
    width: 100%;
  }

  .lang-switch {
    width: 100%;
    justify-content: center;
  }

  .event-card,
  .microproof,
  .trust-strip,
  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .hero-image-card img {
    height: 360px;
  }

  .floating-note {
    position: static;
    width: 100%;
    margin-top: 14px;
  }

  .location-card {
    align-items: flex-start;
  }
}
