/*
Theme Name: FSEM Panamá 2026
Theme URI: https://fsempanama.com/
Author: Kadima Digital
Author URI: https://kadimadigitalpa.com/
Description: Tema oficial de la 5ta Feria de Salud Emocional y Mental de Panamá.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: fsem-panama
*/

:root {
  --navy: #06325f;
  --navy-deep: #031d3b;
  --blue: #087ba7;
  --cyan: #14b8ca;
  --cyan-soft: #dcf8fb;
  --orange: #ff641f;
  --orange-soft: #fff0e8;
  --purple: #8172bc;
  --cream: #fffaf6;
  --paper: #ffffff;
  --mist: #f3f8fb;
  --ink: #10263c;
  --muted: #5d7082;
  --line: #dfe9ef;
  --shadow: 0 22px 55px rgba(4, 43, 80, 0.12);
  --radius: 28px;
  --container: 1220px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Avenir Next", Montserrat, "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body.menu-open { overflow: hidden; }

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

a { color: inherit; }

button,
input,
textarea,
select { font: inherit; }

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 2000;
  transform: translateY(-150%);
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--navy-deep);
  color: white;
}

.skip-link:focus { transform: none; }

.container {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(6, 50, 95, 0.09);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 28px rgba(4, 34, 64, 0.08);
  backdrop-filter: blur(16px);
}

.nav-shell {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
}

.brand img { width: 218px; height: auto; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav a {
  position: relative;
  padding: 11px 10px;
  border-radius: 999px;
  color: var(--navy);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.015em;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  background: var(--cyan-soft);
  color: #006d86;
}

.main-nav a:hover { transform: translateY(-1px); }

.main-nav .nav-contact {
  margin-left: 4px;
  padding-inline: 15px;
  background: var(--orange);
  color: white;
}

.main-nav .nav-contact:hover,
.main-nav .nav-contact[aria-current="page"] {
  background: #e84c0d;
  color: white;
}

.menu-toggle {
  display: none;
  width: 47px;
  height: 47px;
  border: 0;
  border-radius: 50%;
  background: var(--navy);
  color: white;
  cursor: pointer;
}

.menu-toggle svg { width: 23px; height: 23px; margin: auto; }

.banner {
  position: relative;
  overflow: hidden;
  background: #eef7fb;
}

.banner img {
  width: 100%;
  height: auto;
}

.banner--malambo {
  min-height: clamp(390px, 54vw, 700px);
}

.banner--malambo img {
  width: 100%;
  height: clamp(390px, 54vw, 700px);
  object-fit: cover;
}

.banner--malambo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(3, 29, 59, 0.86) 0%, rgba(3, 29, 59, 0.42) 48%, rgba(3, 29, 59, 0.05) 75%);
}

.banner-copy {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  color: white;
}

.banner-copy-inner { width: min(650px, 60%); }

.banner-copy .kicker { color: #a9f4fb; }

.banner-copy h1 {
  margin: 15px 0 18px;
  font-size: clamp(2.7rem, 6vw, 5.7rem);
  line-height: 0.97;
  letter-spacing: -0.055em;
}

.banner-copy p {
  max-width: 580px;
  margin: 0;
  color: #eefaff;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
}

.kicker {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  display: inline-block;
  width: 35px;
  height: 4px;
  margin-right: 10px;
  border-radius: 99px;
  background: var(--orange);
  vertical-align: middle;
}

.section { padding: 100px 0; }

.section--tight { padding: 72px 0; }

.section--mist { background: var(--mist); }

.section--cream { background: var(--cream); }

.section--navy {
  position: relative;
  overflow: hidden;
  background: var(--navy-deep);
  color: white;
}

.section--navy::before,
.section--navy::after {
  content: "";
  position: absolute;
  border: 55px solid rgba(20, 184, 202, 0.08);
  border-radius: 50%;
}

.section--navy::before {
  width: 340px;
  height: 340px;
  top: -240px;
  right: -110px;
}

.section--navy::after {
  width: 420px;
  height: 420px;
  bottom: -340px;
  left: -180px;
  border-color: rgba(255, 100, 31, 0.09);
}

.section--navy > .container { position: relative; z-index: 1; }

.section-heading {
  max-width: 800px;
  margin-bottom: 46px;
}

.section-heading--center {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section-heading--center .kicker::before { display: none; }

.section-heading h1,
.section-heading h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(2.25rem, 4.4vw, 4.7rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.section--navy .section-heading h2 { color: white; }

.section-heading p {
  max-width: 700px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.section-heading--center p { margin-inline: auto; }

.section--navy .section-heading p { color: #cbddec; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  align-items: center;
  gap: clamp(44px, 7vw, 90px);
}

.feature-image {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.feature-image::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 22%;
  background: linear-gradient(transparent, rgba(3, 29, 59, 0.3));
}

.feature-image img { width: 100%; height: auto; }

.feature-copy h2 {
  max-width: 780px;
  margin: 0 0 25px;
  color: var(--navy);
  font-size: clamp(2.6rem, 5.4vw, 5.6rem);
  line-height: 0.92;
  letter-spacing: -0.07em;
  text-transform: uppercase;
}

.feature-copy h2 span { color: var(--cyan); }

.feature-copy p { margin: 0; color: var(--muted); font-size: 1.08rem; }

.experience-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.experience-tags li {
  padding: 10px 14px;
  border: 1px solid #cae5ec;
  border-radius: 999px;
  background: #f2fbfc;
  color: #066d84;
  font-size: 0.82rem;
  font-weight: 800;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.pillar {
  min-height: 330px;
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.06);
}

.pillar-number {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  margin-bottom: 45px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  color: white;
  font-size: 1.1rem;
  font-weight: 900;
}

.pillar:nth-child(2) .pillar-number { background: linear-gradient(135deg, var(--orange), #ffb01f); }
.pillar:nth-child(3) .pillar-number { background: linear-gradient(135deg, var(--purple), #bd4ec4); }

.pillar h3 { margin: 0 0 13px; font-size: 1.35rem; line-height: 1.2; }
.pillar p { margin: 0; color: #c9dae9; }

.venues {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.venue-card {
  position: relative;
  overflow: hidden;
  min-height: 330px;
  padding: 34px;
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow);
}

.venue-card::before {
  content: "";
  position: absolute;
  right: -55px;
  bottom: -60px;
  width: 170px;
  height: 170px;
  border: 34px solid rgba(20, 184, 202, 0.1);
  border-radius: 50%;
}

.venue-card:nth-child(2)::before { border-color: rgba(129, 114, 188, 0.12); }
.venue-card:nth-child(3)::before { border-color: rgba(255, 100, 31, 0.12); }

.venue-date {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--cyan-soft);
  color: #006e86;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.venue-card:nth-child(2) .venue-date { background: #efebff; color: #604aa2; }
.venue-card:nth-child(3) .venue-date { background: var(--orange-soft); color: #b83f0b; }

.venue-day {
  margin: 25px 0 3px;
  color: var(--navy);
  font-size: clamp(3.3rem, 6vw, 5.6rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.07em;
}

.venue-card h3 { margin: 28px 0 7px; color: var(--navy); font-size: 1.25rem; line-height: 1.25; }
.venue-card p { margin: 0; color: var(--muted); }

.speaker-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 280px));
  justify-content: center;
  gap: 24px;
}

.speaker-card {
  display: grid;
  align-content: start;
  gap: 14px;
  text-align: center;
}

.speaker-photo {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: white;
  box-shadow: 0 12px 28px rgba(5, 47, 85, 0.07);
}

.speaker-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.speaker-card h3 {
  margin: 0;
  padding-inline: 4px;
  color: var(--navy);
  font-size: clamp(0.98rem, 1.35vw, 1.12rem);
  line-height: 1.3;
}

.home-stand-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 280px));
  justify-content: center;
  gap: 24px;
}

.home-stand-card {
  display: grid;
  aspect-ratio: 1 / 1;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: white;
  box-shadow: 0 12px 28px rgba(5, 47, 85, 0.07);
}

.home-stand-card img {
  width: 100%;
  height: 100%;
  background: white;
  object-fit: contain;
}

.speaker-cta { margin-top: 58px; text-align: center; }

.speaker-cta-button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 27px;
  border-radius: 999px;
  background: var(--orange);
  box-shadow: 0 14px 30px rgba(255, 100, 31, 0.25);
  color: white;
  font-weight: 900;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
}

.speaker-cta-button:hover { background: #e84c0d; transform: translateY(-2px); }
.speaker-cta-button span { font-size: 1.25rem; }

.page-intro {
  overflow: hidden;
  padding: 82px 0 72px;
  background: radial-gradient(circle at 85% 20%, rgba(20, 184, 202, 0.2), transparent 27%), linear-gradient(135deg, var(--navy-deep), var(--navy));
  color: white;
}

.page-intro .kicker { color: #9bf0f8; }
.page-intro h1 { margin: 0; font-size: clamp(3rem, 7vw, 6.4rem); line-height: 0.95; letter-spacing: -0.065em; }
.page-intro p { max-width: 720px; margin: 22px 0 0; color: #d5e7f3; font-size: 1.06rem; }

.anchor-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.anchor-pills a {
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: white;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
}

.anchor-pills a:first-child { background: var(--orange); border-color: var(--orange); }

.venue-section { padding: 88px 0; scroll-margin-top: 90px; }
.venue-section:nth-of-type(even) { background: var(--mist); }

.venue-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 36px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.venue-title h2 { margin: 0; color: var(--navy); font-size: clamp(2.2rem, 4vw, 3.8rem); line-height: 1; letter-spacing: -0.05em; }
.venue-title p { margin: 8px 0 0; color: var(--muted); }

.venue-badge {
  flex: 0 0 auto;
  padding: 9px 13px;
  border-radius: 999px;
  background: var(--orange-soft);
  color: #bd430c;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.poster-button {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 22px;
  background: #eaf3f6;
  box-shadow: 0 14px 38px rgba(5, 47, 85, 0.1);
  cursor: zoom-in;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.poster-button:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 48px rgba(5, 47, 85, 0.18);
}

.poster-button img { width: 100%; height: auto; }

.pending-note {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  padding: 20px 22px;
  border: 1px solid #f5c9b8;
  border-radius: 18px;
  background: #fff8f4;
  color: #7b3718;
}

.pending-note strong { display: block; }

.story-grid {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  align-items: center;
  gap: clamp(40px, 7vw, 90px);
}

.director-card {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: var(--navy-deep);
  box-shadow: var(--shadow);
}

.director-card img { width: 100%; max-height: 690px; object-fit: cover; object-position: center 22%; }

.director-label {
  position: absolute;
  right: 20px;
  bottom: 20px;
  left: 20px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  background: rgba(3, 29, 59, 0.88);
  color: white;
  backdrop-filter: blur(12px);
}

.director-label strong { display: block; font-size: 1.03rem; }
.director-label span { color: #a8eef5; font-size: 0.83rem; font-weight: 700; }

.story-copy .malambo-logo {
  width: 125px;
  height: 125px;
  margin-bottom: 25px;
  border-radius: 50%;
  box-shadow: 0 12px 30px rgba(4, 45, 80, 0.12);
}

.story-copy h2 { margin: 0 0 24px; color: var(--navy); font-size: clamp(2.3rem, 4.5vw, 4.5rem); line-height: 1; letter-spacing: -0.055em; }
.story-copy p { margin: 0 0 17px; color: var(--muted); }

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

.mission-card {
  padding: 36px;
  border-radius: 26px;
  background: white;
  box-shadow: var(--shadow);
}

.mission-card:nth-child(2) { background: var(--navy); color: white; }
.mission-card h3 { margin: 0 0 16px; color: var(--navy); font-size: 1.7rem; }
.mission-card:nth-child(2) h3 { color: white; }
.mission-card p { margin: 0; color: var(--muted); }
.mission-card:nth-child(2) p { color: #d9e8f2; }

.objectives {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  counter-reset: objective;
  list-style: none;
}

.objectives li {
  position: relative;
  min-height: 138px;
  padding: 24px 24px 24px 74px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: white;
  color: var(--muted);
  counter-increment: objective;
}

.objectives li::before {
  content: counter(objective, decimal-leading-zero);
  position: absolute;
  top: 22px;
  left: 22px;
  color: var(--orange);
  font-size: 1.05rem;
  font-weight: 900;
}

.values {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.values li {
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.86rem;
  font-weight: 800;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  align-items: stretch;
  gap: 32px;
}

.contact-panel,
.contact-brand {
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.contact-panel { padding: clamp(28px, 5vw, 50px); background: white; }

.contact-panel h2 { margin: 0 0 8px; color: var(--navy); font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1; letter-spacing: -0.045em; }
.contact-panel > p { margin: 0 0 30px; color: var(--muted); }

.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.field { display: grid; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { color: var(--navy); font-size: 0.8rem; font-weight: 850; }
.field input,
.field textarea {
  width: 100%;
  border: 1px solid #cadbe4;
  border-radius: 13px;
  background: #fbfdfe;
  color: var(--ink);
  outline: none;
  padding: 13px 15px;
}

.field input:focus,
.field textarea:focus { border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(20, 184, 202, 0.12); }
.field textarea { min-height: 145px; resize: vertical; }

.form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 22px; }

.submit-button {
  min-height: 52px;
  padding: 0 25px;
  border: 0;
  border-radius: 999px;
  background: var(--orange);
  color: white;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.submit-button:hover { background: #e84c0d; transform: translateY(-2px); }
.form-status { margin: 0; color: #08798a; font-size: 0.84rem; font-weight: 750; }
.hp-field { position: absolute; left: -9999px; }

.contact-brand {
  display: grid;
  align-content: center;
  justify-items: center;
  overflow: hidden;
  min-height: 560px;
  padding: 48px;
  background: linear-gradient(145deg, #effcff, #fff7f0);
  text-align: center;
}

.contact-brand img { width: min(100%, 440px); }
.contact-brand a { margin-top: 15px; color: var(--navy); font-weight: 850; text-decoration: none; }

.partners-section { padding: 88px 0; }
.partners-section + .partners-section { padding-top: 0; }

.partner-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.partner-card {
  display: grid;
  aspect-ratio: 1 / 1;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: white;
  box-shadow: 0 12px 28px rgba(5, 47, 85, 0.07);
}

.partner-card img { width: 100%; height: 100%; object-fit: contain; }

.auspician-band {
  margin-bottom: 38px;
  padding: 27px;
  border-radius: 24px;
  background: var(--navy-deep);
  color: white;
  text-align: center;
}

.auspician-band h2 { margin: 0; font-size: clamp(2.2rem, 5vw, 4.3rem); letter-spacing: 0.06em; line-height: 1; }
.auspician-band::after { content: ""; display: block; width: 210px; max-width: 60%; height: 5px; margin: 16px auto 0; border-radius: 99px; background: linear-gradient(90deg, var(--orange) 0 50%, var(--cyan) 50%); }

.site-footer {
  padding: 55px 0 25px;
  background: var(--navy-deep);
  color: white;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 0.85fr;
  gap: 48px;
  align-items: start;
}

.footer-grid p { max-width: 430px; margin: 0; color: #bdcfde; }
.footer-grid h2 { margin: 0 0 12px; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; }
.footer-links { display: grid; gap: 7px; }
.footer-links a { color: #cfdeea; text-decoration: none; }
.footer-links a:hover { color: #8deaf4; }
.footer-bottom { margin-top: 42px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.12); color: #96aec2; font-size: 0.77rem; }

.lightbox {
  width: min(820px, calc(100% - 28px));
  max-height: 92vh;
  padding: 0;
  border: 0;
  border-radius: 22px;
  background: #08192b;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.55);
}

.lightbox::backdrop { background: rgba(0, 18, 37, 0.87); backdrop-filter: blur(6px); }
.lightbox img { width: 100%; max-height: 82vh; object-fit: contain; }
.lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: rgba(3, 29, 59, 0.86);
  color: white;
  font-size: 1.3rem;
  cursor: pointer;
}

.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 1100px) {
  .menu-toggle { display: grid; place-items: center; }
  .main-nav {
    position: fixed;
    top: 87px;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    align-content: start;
    gap: 5px;
    padding: 25px 20px 40px;
    background: white;
    transform: translateX(105%);
    transition: transform 0.28s ease;
  }
  .main-nav.is-open { transform: none; }
  .main-nav a { width: min(500px, 100%); margin-inline: auto; padding: 14px 18px; font-size: 0.94rem; }
  .main-nav .nav-contact { margin: 7px auto 0; text-align: center; }
}

@media (max-width: 900px) {
  .section { padding: 76px 0; }
  .split,
  .story-grid,
  .contact-layout { grid-template-columns: 1fr; }
  .feature-image { max-width: 650px; }
  .pillars,
  .venues { grid-template-columns: 1fr; }
  .pillar { min-height: auto; }
  .pillar-number { margin-bottom: 28px; }
  .speaker-grid,
  .home-stand-grid,
  .partner-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .director-card { max-width: 530px; }
  .contact-brand { min-height: 430px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 650px) {
  .container { width: min(100% - 28px, var(--container)); }
  .nav-shell { min-height: 74px; }
  .brand img { width: 185px; }
  .main-nav { top: 75px; }
  .section { padding: 62px 0; }
  .section-heading { margin-bottom: 32px; }
  .banner--official { overflow-x: auto; overscroll-behavior-x: contain; }
  .banner--official img { width: 920px; max-width: none; }
  .banner--official::after {
    content: "Desliza para ver el banner completo  →";
    position: absolute;
    right: 13px;
    bottom: 12px;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(3, 29, 59, 0.88);
    color: white;
    font-size: 0.67rem;
    font-weight: 800;
    pointer-events: none;
  }
  .banner--malambo,
  .banner--malambo img { min-height: 510px; height: 510px; }
  .banner--malambo img { object-position: 57% center; }
  .banner--malambo::after { background: linear-gradient(0deg, rgba(3, 29, 59, 0.88), rgba(3, 29, 59, 0.15)); }
  .banner-copy { align-items: flex-end; padding-bottom: 38px; }
  .banner-copy-inner { width: 100%; }
  .banner-copy h1 { font-size: 2.85rem; }
  .split { gap: 34px; }
  .feature-copy h2 { font-size: 3rem; }
  .gallery-grid,
  .mission-grid,
  .objectives,
  .form-grid { grid-template-columns: 1fr; }
  .field--full { grid-column: auto; }
  .venue-title { align-items: flex-start; flex-direction: column; }
  .speaker-grid,
  .home-stand-grid,
  .partner-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .speaker-photo,
  .home-stand-card,
  .partner-card { border-radius: 16px; }
  .contact-brand { min-height: 350px; padding: 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-grid > :first-child { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}


/* Integración con WordPress */
.main-nav-list {
  display: contents;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-nav-list li { margin: 0; list-style: none; }
.main-nav-list a { display: block; }

.wp-content-section {
  min-height: 46vh;
  padding: 90px 0;
}

.wp-content-section .entry-content {
  max-width: 860px;
  font-size: 1.05rem;
}

.wp-content-section .entry-content > *:first-child { margin-top: 0; }
.wp-content-section .entry-content > *:last-child { margin-bottom: 0; }

@media (max-width: 1100px) {
  .main-nav-list li { width: 100%; }
}
