:root {
  --bg: #eceff1;
  --surface: #f8f9fa;
  --surface-2: #ffffff;
  --mint: #cfe7e0;
  --text: #111111;
  --muted: #2e2e2e;
  --blue: #0f4d9e;
  --green: #68c40f;
  --mustard: #b57410;
  --mustard-dark: #8e5609;
  --soft-green: #b6ddd3;
  --soft-blue: #a8c8df;
  --soft-beige: #dfc3a5;
  --border: #d4d7db;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}

h1,
h2,
h3 {
  margin: 0 0 0.8rem;
  line-height: 1.24;
}

h1 {
  font-size: clamp(2rem, 3.9vw, 3.15rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.55rem, 2.7vw, 2.4rem);
  font-weight: 800;
}

h3 {
  font-size: 1.2rem;
  font-weight: 800;
}

p {
  margin: 0 0 1rem;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.narrow {
  width: min(860px, calc(100% - 2rem));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 12;
  background: rgba(207, 231, 224, 0.96);
  border-bottom: 1px solid #b5d4cb;
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.brand {
  display: grid;
  line-height: 1.2;
}

.brand-top {
  color: #4d4d4d;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.brand strong {
  font-size: 1rem;
}

.header-nav {
  display: flex;
  gap: 0.95rem;
  margin-left: auto;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  margin-left: 0.65rem;
  padding: 0.2rem;
  border-radius: 999px;
  border: 1px solid #97b8ae;
  background: linear-gradient(180deg, #e7f3ee, #d8ebe4);
}

.lang-switch a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: #305048;
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  font-weight: 800;
  transition: all 0.2s ease;
}

.lang-switch a.active {
  background: #ffffff;
  border-color: #81a79c;
  color: #1d3c35;
  box-shadow: 0 1px 4px #00000017;
}

.lang-switch a:hover {
  color: #143c32;
}

.header-nav a {
  color: #2c3c39;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
}

.header-nav a:hover {
  text-decoration: underline;
}

.nav-toggle {
  display: none;
}

.nav-cta {
  display: none;
}

.hero {
  padding: clamp(1.8rem, 4vw, 3.2rem) 0;
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.42fr 0.95fr;
  gap: 1.2rem;
  align-items: start;
}

.display-cfp {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 4.4rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  text-shadow: 3px 3px 0 #0000001f;
}

.kicker {
  margin: 0 0 0.35rem;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: #2f3f3b;
  font-weight: 700;
}

h1 span {
  color: var(--blue);
}

.subtitle {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1c1c1c;
}

.lead {
  font-size: 1.75rem;
  line-height: 1.15;
  font-style: italic;
  font-weight: 800;
  margin: 1.05rem 0 0.9rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.hero-badges span {
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  font-size: 0.86rem;
  font-weight: 700;
  border: 1px solid transparent;
}

.hero-badges span:nth-child(1) {
  background: #dae7f4;
  border-color: #b5c8e0;
  color: #1f3f6c;
}

.hero-badges span:nth-child(2) {
  background: #daecc9;
  border-color: #b8d59a;
  color: #245d10;
}

.hero-badges span:nth-child(3) {
  background: #e8d8c5;
  border-color: #d5b995;
  color: #6a3e12;
}

.hero-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
}

.data-list {
  margin: 0 0 0.75rem;
}

.data-list div {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid #e4e7eb;
}

.data-list dt {
  color: #535353;
  font-weight: 700;
}

.data-list dd {
  margin: 0;
  font-weight: 800;
}

.mini-note {
  color: #4d4d4d;
  font-size: 0.92rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.btn {
  display: inline-block;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 800;
  padding: 0.55rem 1rem;
  transition: 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--blue);
  color: #fff;
}

.btn-primary:hover {
  background: #0a3f85;
}

.btn-secondary {
  background: #cf851f;
  color: #fff;
}

.btn-secondary:hover {
  background: #b06f14;
}

.btn-outline {
  border-color: #779f96;
  color: #24443d;
  background: #dcefe9;
}

.btn-block {
  width: 100%;
  text-align: center;
}

.section {
  padding: clamp(2rem, 4.5vw, 3.6rem) 0;
  border-bottom: 1px solid #dfe3e8;
}

.section-alt {
  background: #f3f5f7;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.split-60-40 {
  grid-template-columns: 1.2fr 0.8fr;
}

.audience-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
}

.tag-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
}

.tag-list li {
  border-radius: 999px;
  padding: 0.28rem 0.72rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: #103d32;
  background: #d4ece2;
  border: 1px solid #b9dccf;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.95rem;
}

.pillar {
  border-top: 4px solid var(--mustard);
}

.section-intro {
  color: #2f2f2f;
  max-width: 900px;
}

.venue-figure {
  margin: 0;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.venue-figure img {
  width: 100%;
  display: block;
  height: auto;
}

.venue-figure figcaption {
  padding: 0.7rem 0.9rem;
  font-weight: 700;
  color: #2f2f2f;
  background: linear-gradient(90deg, #f8f8f8, #efefef);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.cards-grid .card h3 {
  display: inline-block;
  border-radius: 8px;
  padding: 0.15rem 0.5rem;
}

.cards-grid .card:nth-child(1) h3,
.cards-grid .card:nth-child(7) h3 {
  background: var(--soft-blue);
}

.cards-grid .card:nth-child(2) h3,
.cards-grid .card:nth-child(3) h3,
.cards-grid .card:nth-child(8) h3 {
  background: #d8eabf;
}

.cards-grid .card:nth-child(4) h3,
.cards-grid .card:nth-child(5) h3,
.cards-grid .card:nth-child(6) h3 {
  background: var(--soft-beige);
}

.clean-list {
  margin: 0;
  padding-left: 1rem;
}

.checked-list {
  list-style: none;
  padding-left: 0;
}

.checked-list li {
  position: relative;
  padding-left: 1.3rem;
  margin-bottom: 0.35rem;
}

.checked-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: #1f1f1f;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
}

.timeline-item {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.8rem;
  border-left: 6px solid var(--mustard);
}

.timeline-item .date {
  display: inline-block;
  margin-bottom: 0.35rem;
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
  font-size: 0.8rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(90deg, var(--mustard-dark), var(--mustard));
}

.timeline-item p {
  margin: 0;
}

.timeline-item.highlight {
  border-left-color: var(--green);
}

.note {
  color: #4e4e4e;
  margin-top: 0.85rem;
}

.info-form {
  margin-top: 1rem;
  padding: 1rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.form-feedback {
  display: none;
  margin: 0 0 0.9rem;
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  border: 1px solid #b8d59a;
  background: #e8f3dc;
  color: #234c17;
  font-weight: 700;
}

.form-feedback.is-visible {
  display: block;
}

.form-feedback.is-error {
  border-color: #e2b2b2;
  background: #f8e6e6;
  color: #7a1d1d;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.form-field {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.8rem;
}

.form-field label {
  font-size: 0.93rem;
  font-weight: 700;
  color: #2c2c2c;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid #cfd5dc;
  border-radius: 10px;
  padding: 0.6rem 0.75rem;
  font: inherit;
  color: var(--text);
  background: #fff;
}

.form-field textarea {
  resize: vertical;
  min-height: 120px;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid #b8d59a;
  outline-offset: 1px;
  border-color: #9bc27a;
}

.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0.2rem 0 0.9rem;
  font-size: 0.92rem;
  color: #3f3f3f;
}

.checkbox-field a {
  color: var(--blue);
  font-weight: 700;
}

.privacy-mini-note {
  margin: 0 0 0.9rem;
  font-size: 0.86rem;
  color: #555;
}

.checkbox-field input {
  margin-top: 0.15rem;
}

.months {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 0.35rem;
  margin-bottom: 0.55rem;
}

.months span {
  text-align: center;
  font-size: 0.9rem;
  font-weight: 800;
  background: #cadf6b;
  border-radius: 10px;
  padding: 0.28rem 0.1rem;
}

.progress-line {
  position: relative;
  height: 12px;
  background: linear-gradient(90deg, #c68f31, #9b5f0a);
  border-radius: 999px;
  margin-bottom: 0.85rem;
}

.progress-line .dot {
  position: absolute;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: var(--blue);
  border: 2px solid #fff;
}

.progress-line .dot.highlight {
  background: var(--green);
}

.legend {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.legend p {
  margin: 0;
  padding: 0.45rem 0.65rem;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.cta {
  background: linear-gradient(180deg, #f7f8f9, #eef2f5);
}

/* ── Logos organizan (dentro de sección sede) ───────────────────────────────── */
.venue-logos {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid #dde2ea;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

/* ── Logos strip (antes del footer) ───────────────────────────────────── */
.logos-strip {
  background: #f0f3f7;
  border-top: 1px solid #dde2ea;
  border-bottom: 1px solid #dde2ea;
  padding: 28px 0;
}

.logos-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.logos-label {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #999;
}

.logos-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.logos-row img {
  height: 40px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  mix-blend-mode: multiply;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.logos-row img:hover {
  opacity: 1;
}

@media (max-width: 600px) {
  .logos-row {
    gap: 20px;
  }
  .logos-row img {
    height: 32px;
    max-width: 110px;
  }
}

.site-footer {
  border-top: 1px solid var(--border);
  background: #f7f8f9;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 0.9rem 0;
  font-size: 0.87rem;
  color: #555;
  flex-wrap: wrap;
}

.footer-brand {
  margin: 0;
  font-weight: 500;
  color: #3f3f3f;
}

.footer-links a {
  color: #2c4f8e;
  font-weight: 600;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-credit {
  margin: 0;
  font-size: 0.82rem;
  color: #777;
}

.footer-credit a {
  color: #2c4f8e;
  font-weight: 700;
  text-decoration: none;
}

.footer-credit a:hover {
  text-decoration: underline;
}

.legal-page h1 {
  margin-bottom: 0.7rem;
}

.legal-intro {
  font-size: 1.02rem;
  color: #2d2d2d;
}

.legal-sections {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.1rem;
}

.legal-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.9rem;
}

.legal-card h2 {
  font-size: 1.05rem;
  margin-bottom: 0.45rem;
}

.legal-card p,
.legal-card li {
  margin: 0;
  color: #3d3d3d;
}

.legal-card ul {
  margin: 0;
  padding-left: 1rem;
  display: grid;
  gap: 0.25rem;
}

.legal-back {
  margin-top: 1rem;
}

.legal-back a {
  font-weight: 700;
  color: #2c4f8e;
}

@media (max-width: 1050px) {
  /* ── Brand: ocultar subtítulo, encoger texto ── */
  .brand-top {
    display: none;
  }

  .brand strong {
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 52vw;
  }

  /* ── Header-inner: permitir que el nav ocupe segunda fila ── */
  .header-inner {
    flex-wrap: wrap;
    min-height: 60px;
    gap: 0.5rem;
  }

  .brand {
    flex: 1 1 0;
    min-width: 0;
  }

  /* ── Botón inscripción: ocultar en header, lo ponemos en el nav móvil ── */
  .header-inner > .btn {
    display: none;
  }

  /* ── Lang-switch más compacto ── */
  .lang-switch {
    margin-left: 0;
    padding: 0.15rem;
  }

  .lang-switch a {
    min-width: 30px;
    height: 28px;
    font-size: 0.72rem;
  }

  /* ── Hamburger ── */
  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    flex-shrink: 0;
  }

  .nav-toggle span {
    display: block;
    height: 2px;
    width: 22px;
    background: #2c3c39;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
    transform-origin: center;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* ── Nav: dropdown en segunda fila ── */
  .header-nav {
    display: none;
    flex: 0 0 100%;
    order: 10;
    flex-direction: column;
    padding: 0.25rem 0 0.75rem;
    border-top: 1px solid #b5d4cb;
    gap: 0;
    margin-left: 0;
  }

  .header-nav.nav-open {
    display: flex;
  }

  .header-nav a {
    padding: 0.8rem 0.25rem;
    border-bottom: 1px solid rgba(181, 212, 203, 0.6);
    font-size: 1rem;
  }

  .header-nav a:last-child {
    border-bottom: none;
  }

  /* ── Enlace inscripción dentro del dropdown ── */
  .nav-cta {
    display: block;
    margin-top: 0.5rem;
    padding: 0.75rem 1rem !important;
    background: #1b3d72;
    color: #fff !important;
    border-radius: 6px;
    text-align: center;
    font-size: 0.95rem !important;
    border-bottom: none !important;
  }

  .nav-cta:hover {
    background: #2c5fb3;
    text-decoration: none !important;
  }

  .pillars-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .hero-grid,
  .split,
  .split-60-40,
  .cards-grid,
  .timeline,
  .legend,
  .form-grid,
  .footer-inner {
    display: grid;
    grid-template-columns: 1fr;
  }

  .months {
    grid-template-columns: repeat(4, 1fr);
  }

  .data-list div {
    flex-direction: column;
    gap: 0.2rem;
  }

  .footer-inner {
    text-align: center;
    justify-content: center;
  }
}

/* ── Cookie Consent Modal ───────────────────────────────────────────────────── */
#cb-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 22, 50, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
  opacity: 1;
  transition: opacity 0.3s ease;
}

#cb-overlay.cb-hidden {
  opacity: 0;
  pointer-events: none;
}

#cookie-banner {
  width: 100%;
  max-width: 500px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.35);
  padding: 40px 40px 32px;
}

.cb-brand {
  text-align: center;
  margin: 0 0 24px;
  font-size: 1.35rem;
  font-weight: 800;
  color: #1b3d72;
  letter-spacing: -0.02em;
}

.cb-brand span {
  color: #2c5fb3;
}

.cb-body {
  margin-bottom: 20px;
}

.cb-body p {
  margin: 0 0 12px;
  font-size: 0.88rem;
  color: #444;
  line-height: 1.65;
}

.cb-body p:last-child {
  margin-bottom: 0;
}

.cb-body strong {
  color: #222;
}

.cb-body a {
  color: #1b3d72;
  font-weight: 600;
  text-decoration: underline;
}

.cb-body a:hover {
  color: #2c5fb3;
}

.cb-body .cb-detail {
  font-size: 0.80rem;
  color: #777;
}

.cb-footer {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}

.cb-btn {
  flex: 1;
  padding: 11px 16px;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
  text-align: center;
  white-space: nowrap;
}

.cb-btn-info {
  background: #ffffff;
  color: #333;
  border: 2px solid #ccc;
}

.cb-btn-info:hover {
  border-color: #1b3d72;
  color: #1b3d72;
}

.cb-btn-accept {
  background: #1b3d72;
  color: #ffffff;
  border: 2px solid #1b3d72;
}

.cb-btn-accept:hover {
  background: #2c5fb3;
  border-color: #2c5fb3;
}

@media (max-width: 640px) {
  #cookie-banner {
    padding: 24px 18px 20px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
  }

  .cb-brand {
    font-size: 1.1rem;
    margin-bottom: 16px;
  }

  .cb-footer {
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
  }

  .cb-btn {
    white-space: normal;
    font-size: 0.85rem;
    padding: 10px 12px;
  }
}

