/* FULL BLEED (fuerza que el hero ocupe todo el ancho, aunque el theme encierre el contenido)
   Nota: algunos themes/constructores aplican max-width con !important; por eso aquí también usamos !important. */
.iead-evento{ overflow-x:hidden; }

/* Método robusto: margin-left/right calculado desde el centro del viewport */
.iead-evento .iead-hero,
.iead-evento .iead-subnav{
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  left: auto !important;
  right: auto !important;
  position: relative !important;
  display: block !important;
}

/* Evita que el contenedor del theme recorte el “bleed” */
.iead-evento,
.iead-evento .iead-hero{
  overflow: visible;
}

/* =========================
   FASE 6.2 — Sticky nav + anclas
   ========================= */

/* Offset superior para sticky teniendo en cuenta la Admin Bar de WP */
:root{
  --iead-sticky-top: 0px;
  /* margen extra para que las anclas no queden pegadas */
  --iead-anchor-gap: 14px;
  /* estimación de altura de la subnav sticky (ajuste fino si hace falta) */
  --iead-subnav-height: 56px;
}

/* WordPress agrega la clase admin-bar al body cuando estás logueado */
body.admin-bar{
  --iead-sticky-top: 32px;
}

/* En móviles (barra admin más alta en WP) */
@media (max-width: 782px){
  body.admin-bar{
    --iead-sticky-top: 46px;
  }
}

/* Sticky real para la subnav */
.iead-subnav{
  position: sticky;
  top: var(--iead-sticky-top);
  z-index: 50;
}

/* Asegura que el scroll a #seccion no quede tapado por la subnav sticky */
.iead-section{
  scroll-margin-top: calc(var(--iead-sticky-top) + var(--iead-subnav-height) + var(--iead-anchor-gap));
}

/* (Opcional, pero recomendado) suaviza el desplazamiento al clickear anclas */
html{
  scroll-behavior: smooth;
}

/* HERO */
.iead-hero{
  position: relative;
  background: var(--c-bg);
  color: var(--c-text-on-dark);
  overflow: hidden;
}
.iead-hero__bg{
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(.95) contrast(1.05);
}
.iead-hero__overlay{
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1200px 600px at 20% 20%, rgba(215,180,106,.18), transparent 60%),
    radial-gradient(900px 500px at 80% 10%, rgba(143,182,200,.14), transparent 55%),
    linear-gradient(to bottom, rgba(0,0,0,.65), rgba(0,0,0,.86));
}
.iead-hero__content{
  position: relative;
  padding: var(--s-10) 0 var(--s-9) 0;
}
@media (max-width: 640px){
  .iead-hero__content{ padding: var(--s-9) 0 var(--s-8) 0; }
}

.iead-hero__grid{
  display: grid;
  gap: var(--s-7);
  align-items: end;
}
.iead-hero__meta{
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: var(--s-6);
}
.iead-hero__actions{
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: var(--s-6);
}

/* Espaciado de título/subtítulo (reemplaza inline style margin-top) */
.iead-hero .iead-h1{
  margin-top: var(--s-6);
}
.iead-hero .iead-hero__subtitle{
  margin-top: var(--s-5);
  max-width: 70ch;
}

/* FASE 3 — Hero “decisión rápida” (prioridad de CTAs) */
.iead-hero__actions .iead-btn--primary{ order: 1; }
.iead-hero__actions .iead-btn--secondary{ order: 2; }
.iead-hero__actions a.iead-btn--ghost{ order: 3; }
.iead-hero__actions .iead-btn--wa{ order: 10; }
.iead-hero__actions button[data-copy-link]{ order: 11; }

@media (max-width: 640px){
  .iead-hero__actions{ flex-direction: column; align-items: stretch; }
  .iead-hero__actions .iead-btn{ justify-content: center; }
}

/* SUBNAV (estética) */
.iead-subnav{
  position: sticky;
  top: var(--iead-sticky-top);
  z-index: 50;

  background: rgba(0,0,0,.35);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.iead-subnav__inner{
  display: flex;
  gap: var(--s-2);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: var(--s-3) 0;
}
.iead-subnav__inner a{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  color: rgba(255,255,255,.92);
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
}
.iead-subnav__inner a:hover{
  background: rgba(255,255,255,.08);
}

/* Chips (modo dark) */
.iead-chip--dark{
  background: rgba(255,255,255,.10);
  color: rgba(255,255,255,.95);
  border: 1px solid rgba(255,255,255,.10);
}

/* Botones (ajuste visual en hero) */
.iead-hero .iead-btn{
  border-radius: 999px;
}

/* Badge */
.iead-badge{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  font-weight: 800;
  font-size: var(--fs-sm);
  white-space: nowrap;
}

/* Layout blocks */
.iead-grid-2{
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: var(--s-7);
}
@media (max-width: 900px){
  .iead-grid-2{ grid-template-columns: 1fr; }
}

/* Cards spacing inside sections */
.iead-stack{
  display: grid;
  gap: var(--s-6);
}

/* =========================
   FASE 6.1 — Programa (Agenda)
   ========================= */
.iead-prose{
  margin-bottom: 20px;
}
.iead-box__title{
  cursor: pointer;
}
.iead-programa-item{
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}
.iead-programa-row{
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.iead-programa-actividad{
  font-weight: 700;
}
.iead-programa-hora{
  font-weight: 700;
  white-space: nowrap;
}
.iead-programa-detalle{
  margin-top: 6px;
  font-size: 14px;
}

/* =========================
   FASE 6.1 — Utilidades mínimas
   ========================= */
.iead-mt-0{ margin-top: 0; }
.iead-mt-4{ margin-top: 4px; }
.iead-mt-6{ margin-top: 6px; }
.iead-mt-8{ margin-top: 8px; }
.iead-mt-12{ margin-top: 12px; }
.iead-mb-12{ margin-bottom: 12px; }

/* =========================
   FASE 6.1 — Hospedaje
   ========================= */
.iead-stack--gap-14{ gap: 14px; }

.iead-flex-row-wrap{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

/* =========================
   FASE 6.1 — Oradores
   ========================= */
.iead-orador-nombre{
  font-weight: 900;
  font-size: 16px;
  line-height: 1.25;
}

.iead-flex-wrap-gap-8{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* =========================
   FASE 6.1 — Contacto
   ========================= */
.iead-stack--gap-12{ gap: 12px; }

.iead-flex-wrap-gap-12{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* =========================
   FASE 6.1 — Cierre / resumen
   ========================= */
.iead-flex-between-wrap-gap-10{
  display: flex;
  gap: 10px;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
}

.iead-text-xs-tight{
  font-size: 12px;
  line-height: 1.2;
}

.iead-text-lg-strong{
  font-weight: 700;
  font-size: 18px;
  line-height: 1.2;
}

.iead-text-xs-tight-max520{
  font-size: 12px;
  line-height: 1.2;
  max-width: 520px;
}