/* =======================================
 * Página /eventos – Layout general
 * ======================================= */

.nutri-events-main {
	width: 100%;
	color: #0b3557;
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ---------------------------------------
 * Cabecera superior (faja turquesa)
 * --------------------------------------- */

.nutri-events-main .nutri-events-header {
	background: #0a7f90;
	color: #ffffff;
	padding: 32px 0;
}

.nutri-events-main .nutri-events-header__inner {
	max-width: 100%;
	margin: 0 auto;
	padding: 0 24px;
	display: flex;
	align-items: center;
	gap: 12px;
}

.nutri-events-main .nutri-events-header__icon img {
	width: 32px;
	height: 32px;
	display: block;
}

.nutri-events-main .nutri-events-header__title {
	margin: 0;
	font-size: 32px;
	line-height: 1.2;
	font-weight: 700;
}

/* ---------------------------------------
 * Shell principal (sidebar + contenido)
 * --------------------------------------- */

.nutri-events-main .nutri-events-shell {
	background: #ffffff;
	padding: 32px 0 64px;
}

.nutri-events-main .nutri-events-shell__inner {
	max-width: 100%;
	margin: 0 auto;
	padding: 0 24px;

	display: grid;
	grid-template-columns: 1fr 3fr; /* 25% / 75% */
	gap: 32px;
	align-items: flex-start;
}

/* =======================================
 * Sidebar
 * ======================================= */

.nutri-events-main .nutri-events-sidebar {
	border-radius: 16px;
	border: 1px solid #e3edf5;
	background: #ffffff;
	padding: 16px 16px 18px;
	box-shadow: 0 6px 16px rgba(10, 35, 52, 0.05);
}

.nutri-events-main .nutri-events-sidebar__label {
	margin: 0 0 12px;
	font-size: 16px;
	font-weight: 600;
	color: #0b3557;
}

.nutri-events-main .nutri-events-filters {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

/* Botones de filtro */

.nutri-events-main .nutri-events-filter {
	display: flex;
	align-items: center;
	gap: 10px;

	width: 100%;
	padding: 10px 12px;
	border-radius: 999px;
	border: 1px solid transparent;
	background: #f3f7fb;
	color: #0b3557;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;

	transition:
		background-color 0.18s ease,
		color 0.18s ease,
		border-color 0.18s ease,
		box-shadow 0.18s ease,
		transform 0.12s ease;
}

.nutri-events-main .nutri-events-filter__icon {
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	box-shadow: 0 0 0 1px rgba(11, 53, 87, 0.05);
	transition:
		background-color 0.18s ease,
		box-shadow 0.18s ease;
}

.nutri-events-main .nutri-events-filter__icon img {
	max-width: 20px;
	max-height: 20px;
	display: block;
}

.nutri-events-main .nutri-events-filter__label {
	white-space: nowrap;
}

/* Hover + focus de filtros */

.nutri-events-main .nutri-events-filter:hover,
.nutri-events-main .nutri-events-filter:focus-visible {
	background: #e4f0fb;
	border-color: #c2d7ee;
	box-shadow: 0 4px 12px rgba(10, 35, 52, 0.08);
	transform: translateY(-1px);
	outline: none;
}

.nutri-events-main .nutri-events-filter:hover .nutri-events-filter__icon,
.nutri-events-main .nutri-events-filter:focus-visible .nutri-events-filter__icon {
	background: #dff0ff;
	box-shadow: 0 0 0 1px rgba(11, 53, 87, 0.15);
}

/* Estado activo de filtros */

.nutri-events-main .nutri-events-filter.is-active {
	background: #0b3557;
	color: #ffffff;
	border-color: #0b3557;
	box-shadow: 0 6px 16px rgba(6, 32, 56, 0.35);
	transform: translateY(-1px);
}

.nutri-events-main .nutri-events-filter.is-active .nutri-events-filter__icon {
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4);
}

/* =======================================
 * Contenido (secciones + grids)
 * ======================================= */

.nutri-events-main .nutri-events-content {
	display: flex;
	flex-direction: column;
	gap: 40px;
}

/* Cabeceras de sección */

.nutri-events-main .nutri-events-section__header {
	margin-bottom: 12px;
}

.nutri-events-main .nutri-events-section__title {
	margin: 0 0 4px;
	font-size: 22px;
	font-weight: 600;
	color: #0b3557;
}

.nutri-events-main .nutri-events-section__divider {
	height: 2px;
	width: 100%;
	max-width: 100%;
	background: #0b3557;
	border-radius: 999px;
}

/* Grids de tarjetas */

.nutri-events-main .nutri-events-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 20px;
}

.nutri-events-main .nutri-events-grid--pro {
	margin-top: 14px;
}

.nutri-events-main .nutri-events-grid--public {
	margin-top: 14px;
}

/* Estado vacío */

.nutri-events-main .nutri-events-empty {
	font-size: 14px;
	color: #486587;
	margin: 12px 0 0;
}

.nutri-events-main .nutri-events-empty--center {
	text-align: center;
	font-style: italic;
}

/* =======================================
 * Tarjetas de categoría
 * ======================================= */

.nutri-events-main .nutri-event-card {
	border-radius: 18px;
	border: 1px solid #e3edf5;
	background: #e3f6ff;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	height: 100%;
	box-shadow: 0 10px 22px rgba(15, 35, 52, 0.06);
	transition:
		box-shadow 0.18s ease,
		transform 0.12s ease;
}

.nutri-events-main .nutri-event-card__media {
	display: block;
	position: relative;
	overflow: hidden;
}

.nutri-events-main .nutri-event-card__media-inner {
	display: block;
}

.nutri-events-main .nutri-event-card__img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: cover;
	transform: scale(1.01);
	transition: transform 0.25s ease;
}

.nutri-events-main .nutri-event-card__media:hover .nutri-event-card__img {
	transform: scale(1.04);
}

.nutri-events-main .nutri-event-card__body {
	padding: 14px 16px 16px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	background: #e3f6ff;
}

.nutri-events-main .nutri-event-card__title {
	font-size: 18px;
	margin: 0;
	color: #0b3557;
	font-weight: 600;
}

.nutri-events-main .nutri-event-card__excerpt {
	font-size: 14px;
	margin: 2px 0 10px;
	color: #255174;
	font-weight: 300;
}

/* Efecto hover de la tarjeta completa */

.nutri-events-main .nutri-event-card:hover {
	box-shadow: 0 14px 28px rgba(15, 35, 52, 0.12);
	transform: translateY(-2px);
}

/* =======================================
 * Botón de CTA "Ver eventos"
 * ======================================= */

.nutri-events-main .nutri-event-card__cta {
	margin-top: auto;
}

.nutri-events-main .nutri-event-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	border-radius: 999px;
	border: 1px solid #0b3557;
	background: #ffffff;
	color: #0b3557;
	font-size: 14px;
	font-weight: 500;
	padding: 7px 20px;
	text-decoration: none;
	cursor: pointer;

	transition:
		background-color 0.18s ease,
		color 0.18s ease,
		border-color 0.18s ease,
		box-shadow 0.18s ease,
		transform 0.12s ease;
	position: relative;
}

.nutri-events-main .nutri-event-btn::after {
	content: "→";
	display: inline-block;
	margin-left: 8px;
	font-size: 13px;
	transition: transform 0.18s ease;
}

/* Hover/focus del botón */

.nutri-events-main .nutri-event-btn:hover,
.nutri-events-main .nutri-event-btn:focus-visible {
	background: #0b3557;
	color: #ffffff;
	border-color: #0b3557;
	box-shadow: 0 6px 16px rgba(8, 35, 59, 0.35);
	transform: translateY(-1px);
	outline: none;
}

.nutri-events-main .nutri-event-btn:hover::after,
.nutri-events-main .nutri-event-btn:focus-visible::after {
	transform: translateX(3px);
}

/* =======================================
 * Responsive
 * (solo ajustes vía media queries)
 * ======================================= */

/* ==========================================================
 * FIX responsive del ASIDE cuando se apila arriba del listado
 * (solo media queries)
 * ========================================================== */

@media (max-width: 900px) {
	.nutri-events-main .nutri-events-shell__inner {
		grid-template-columns: 1fr;
		gap: 22px;
	}

	.nutri-events-main .nutri-events-sidebar {
		width: 100%;
		max-width: 100%;
		box-sizing: border-box;
	}

	.nutri-events-main .nutri-events-filters {
		flex-direction: row;
		flex-wrap: wrap;
		overflow-x: visible;
		overflow-y: visible;
		gap: 10px;
		padding-bottom: 0;
	}

	/* ✅ PRIMERO a ancho completo */
	.nutri-events-main .nutri-events-filters > .nutri-events-filter:first-child {
		flex: 1 1 100%;
		width: 100%;
	}

	/* ✅ RESTO en 2 columnas */
	.nutri-events-main .nutri-events-filters > .nutri-events-filter:not(:first-child) {
		flex: 1 1 calc(50% - 10px);
		min-width: 0;
		max-width: 100%;
	}

	.nutri-events-main .nutri-events-filter__label {
		white-space: normal;
		line-height: 1.2;
	}
}

@media (max-width: 600px) {
	/* en móvil: todos a 1 columna (incluido el primero) */
	.nutri-events-main .nutri-events-filters > .nutri-events-filter {
		flex: 1 1 100%;
		width: 100%;
	}
}


@media (max-width: 360px) {
	/* móvil muy pequeño: un pelín más compacto */
	.nutri-events-main .nutri-events-filter {
		padding: 9px 10px;
		font-size: 13px;
	}
}


/* Móvil */
@media (max-width: 600px) {
	.nutri-events-main .nutri-events-header__inner {
		padding-inline: 16px;
	}

	.nutri-events-main .nutri-events-shell__inner {
		padding-inline: 16px;
		gap: 18px;
	}

	.nutri-events-main .nutri-events-header__title {
		font-size: 26px;
	}

	/* Evitar “saltos” por botones muy anchos */
	.nutri-events-main .nutri-events-filter {
		min-width: 168px;
	}
}

/* Móviles pequeños: evitar desbordes y apretar UI sin tocar estilos base */
@media (max-width: 480px) {
	/* Header: permitir salto de línea si el título es largo */
	.nutri-events-main .nutri-events-header__inner {
		flex-wrap: wrap;
		row-gap: 8px;
	}

	/* Filtros: más compactos y con texto elástico */
	.nutri-events-main .nutri-events-filters {
		gap: 8px;
	}

	.nutri-events-main .nutri-events-filter {
		min-width: 148px;
		padding: 9px 10px;
		font-size: 13px;
	}

	.nutri-events-main .nutri-events-filter__label {
		white-space: normal; /* permite 2 líneas en móviles */
		line-height: 1.2;
	}

	/* Grid: asegurar 1 columna si el viewport es estrecho */
	.nutri-events-main .nutri-events-grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}
}

/* Extra-small */
@media (max-width: 360px) {
	.nutri-events-main .nutri-events-header__title {
		font-size: 24px;
	}

	.nutri-events-main .nutri-events-shell__inner {
		padding-inline: 14px;
	}

	.nutri-events-main .nutri-events-filter {
		min-width: 136px;
	}
}

/* =======================================
 * Cards de eventos concretos (página categoría)
 * ======================================= */

.nutri-events-main--category .nutri-event-card__body {
	background: #e3f6ff;
}

.nutri-events-main--category .nutri-event-card__meta {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 6px 0 10px;
}

.nutri-events-main--category .nutri-event-card__meta-row {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: #791616; /* mismo rojo que llevas usando */
}

.nutri-events-main--category .nutri-event-card__meta-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
}

.nutri-events-main--category .nutri-event-card__meta-icon img {
	width: 100%;
	height: auto;
	display: block;
}

.nutri-events-main--category .nutri-event-card__meta-text {
	line-height: 1.4;
}

/* Un pelín más de presencia para el H1 + subtítulo SEO */

.nutri-events-main--category .nutri-events-header__titles {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.nutri-events-main--category .nutri-events-header__title {
	font-size: 30px;
}

.nutri-events-main--category .nutri-events-header__subtitle {
	margin: 0;
	font-size: 16px;
	color: #e3f6ff;
	opacity: 0.9;
}


/* ===== Variables ===== */
:root{
  --teal:#0e7f8d;
  --teal-d:#0b6a75;
  --bg:#f4f8fa;
  --card:#fff;
  --text:#0b3557;
  --muted:#5b728a;
  --bd:#e6edf2;
  --shadow:0 16px 34px rgba(11,53,87,.10);
  --r:18px;

  /* Modal – color pedido (#0b6a75) */
  --modal-accent:#0b6a75;
  --modal-accent-d:#095b64;
  --modal-bg:#ffffff;
  --modal-backdrop:rgba(11,53,87,.35);
}

/* ===== HERO ===== */
.nutri-events-new .nutri-hero{
  background:var(--teal);
  color:#fff;
  padding:50px 0;
  text-align:left;
}
.nutri-events-new .nutri-hero__inner{
  width:100%;
  padding:0 20px;
  max-width:1400px;
  margin:0 auto;
  display:flex;
  flex-direction:column;
  justify-content:center;
}
@media (min-width:900px){
  .nutri-events-new .nutri-hero__inner{ padding:0 40px; }
}

/* ✅ Ajustes responsive adicionales del HERO (solo media queries) */
@media (max-width:600px){
  .nutri-events-new .nutri-hero{ padding:34px 0; }
  .nutri-events-new .nutri-hero__inner{ padding:0 16px; }
}
@media (max-width:360px){
  .nutri-events-new .nutri-hero{ padding:28px 0; }
  .nutri-events-new .nutri-hero__inner{ padding:0 14px; }
}

.nutri-events-new .nutri-hero__title{
  margin:0;
  font-weight:800;
  font-size:clamp(28px,4vw,46px);
  line-height:1.1;
}
.nutri-events-new .nutri-hero__subtitle{
  margin-top:8px;
  font-size:clamp(15px,2vw,20px);
  opacity:.95;
}

/* ===== GRID / SECTION ===== */
.nutri-events-new .nutri-section{
  width:100%;
  margin:0;
  padding:28px 20px;
  background:var(--bg);
}
@media (min-width:900px){
  .nutri-events-new .nutri-section{ padding:40px; }
}

/* ✅ Ajustes responsive adicionales SECTION (solo media queries) */
@media (max-width:600px){
  .nutri-events-new .nutri-section{ padding:22px 16px; }
}
@media (max-width:360px){
  .nutri-events-new .nutri-section{ padding:18px 14px; }
}

.nutri-events-new .nutri-grid{
  display:grid;
  gap:26px;
  grid-template-columns:repeat(1,minmax(0,1fr));
  width:100%;
}
@media (min-width:700px){
  .nutri-events-new .nutri-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (min-width:1100px){
  .nutri-events-new .nutri-grid{ grid-template-columns:repeat(3,minmax(0,1fr)); }
}

/* ✅ Evitar “2 columnas apretadas” en ciertos anchos */
@media (max-width:740px){
  .nutri-events-new .nutri-grid{ gap:18px; }
}

/* ===== Cards ===== */
.nutri-events-new .nutri-card{
  background:var(--card);
  border:1px solid var(--bd);
  border-radius:var(--r);
  box-shadow:var(--shadow);
  overflow:hidden;
  display:flex;
  flex-direction:column;
  transition:transform .18s ease, box-shadow .18s ease;
}
.nutri-events-new .nutri-card:hover{
  transform:translateY(-2px);
  box-shadow:0 20px 40px rgba(11,53,87,.14);
}
.nutri-events-new .nutri-card__media{
  display:block;
  position:relative;
  overflow:hidden;
  background:#eef5f7;
}
.nutri-events-new .nutri-card__media-inner{ display:block; width:100%; }
.nutri-events-new .nutri-card__img,
.nutri-events-new .nutri-event-card__img{
  width:100%;
  height:auto;
  display:block;
  object-fit:contain;
  background:#fff;
}
.nutri-events-new .nutri-card__body{
  padding:20px 18px;
  display:flex;
  flex-direction:column;
  gap:10px;
}
@media (min-width:900px){
  .nutri-events-new .nutri-card__body{ padding:20px 24px; }
}

/* ✅ Compactar un poco en móvil (solo media queries) */
@media (max-width:480px){
  .nutri-events-new .nutri-card__body{ padding:16px 14px; }
}

.nutri-events-new .nutri-card__title{
  margin:0;
  color:var(--text);
  font-size:22px;
  line-height:1.25;
  font-weight:800;
}
.nutri-events-new .nutri-card__excerpt{ margin:0; color:var(--muted); font-size:15px; }
.nutri-events-new .nutri-card__meta{display:flex;flex-direction:column;gap:6px;margin-top:4px}
.nutri-events-new .nutri-card__row{display:flex;align-items:flex-start;gap:8px;color:var(--muted);font-size:14px}
.nutri-events-new .nutri-ico{width:18px;height:18px;flex:0 0 18px;fill:currentColor;opacity:.85}
.nutri-events-new .nutri-ico--danger{color:#c0392b}
.nutri-events-new .nutri-card__state{margin-top:6px;color:var(--text);font-size:14px}
.nutri-events-new .nutri-card__cta{ margin-top:auto; display:flex; gap:10px; flex-wrap:wrap; }

/* ===== Botones ===== */
.nutri-events-new .nutri-btn{
  --bg:#eaf6f8; --fg:var(--teal); --bd:#cfe8ee;
  padding:11px 18px;
  border-radius:999px;
  border:1px solid var(--bd);
  background:var(--bg);
  color:var(--fg)!important;
  text-decoration:none;
  font-weight:800;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  line-height:1;
  transition:transform .12s ease, background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
  white-space:nowrap;
}
.nutri-events-new .nutri-btn:hover,
.nutri-events-new .nutri-btn:focus{ transform:translateY(-1px); color:var(--teal)!important; box-shadow:0 6px 18px rgba(11,53,87,.12); }
.nutri-events-new .nutri-btn--primary{ background:var(--teal); border-color:transparent; color:#fff!important; }
.nutri-events-new .nutri-btn--primary:hover,
.nutri-events-new .nutri-btn--primary:focus{ background:var(--teal-d); color:#fff!important; border-color:transparent; }
.nutri-events-new .nutri-btn--ghost{ background:#fff; border-color:#d7e8ec; color:var(--teal)!important; }
.nutri-events-new .nutri-btn--ghost:hover,
.nutri-events-new .nutri-btn--ghost:focus{ background:#f7fbfc; color:var(--teal)!important; border-color:#cfe8ee; }
.nutri-events-new .nutri-btn[disabled]{ opacity:.6; pointer-events:none; color:#fff!important; }

/* ✅ Botones en móvil: permitir wrap sin “romper” layout (solo media queries) */
@media (max-width:480px){
  .nutri-events-new .nutri-btn{ white-space:normal; }
}

/* ===== Outline (lo usa el modal) ===== */
.nutri-events-new .nutri-btn--outline,
body .nutri-modal .nutri-btn--outline{
  background:#f5fbff;
  border-color:#d3ecf7;
  color:#0b6a75!important;
}
.nutri-events-new .nutri-btn--outline:hover,
.nutri-events-new .nutri-btn--outline:focus,
body .nutri-modal .nutri-btn--outline:hover,
body .nutri-modal .nutri-btn--outline:focus{
  background:#e9f6ff;
  border-color:#c5e6f5;
  color:#0e7f8d!important;
}

/* ===== Paginación ===== */
.nutri-events-new .nutri-pagination{ text-align:center; margin:8px 0 38px; }
.nutri-events-new .nutri-pagination .page-numbers{
  display:inline-block; margin:0 4px; padding:8px 12px; border:1px solid var(--bd); border-radius:10px; background:#fff; color:var(--text); text-decoration:none;
}
.nutri-events-new .nutri-pagination .current{ background:var(--teal); color:#fff; border-color:var(--teal); }

/* ===== A11y ===== */
.nutri-events-new .nutri-card a:focus-visible,
.nutri-events-new .nutri-btn:focus-visible{ outline:3px solid #89cbe0; outline-offset:2px; }

/* ======= SINGLE EVENT extras ======= */

/* ==== H1 cabecera evento ==== */
.nutri-event-single .nutri-event-header {
	background: #fff;
	padding: 26px 20px 8px;
}

@media (min-width: 900px) {
	.nutri-event-single .nutri-event-header {
		padding: 34px 40px 10px;
	}
}

/* ✅ Ajuste extra de header en móvil (solo media queries) */
@media (max-width: 600px) {
	.nutri-event-single .nutri-event-header {
		padding: 22px 16px 8px;
	}
}
@media (max-width: 360px) {
	.nutri-event-single .nutri-event-header {
		padding: 20px 14px 8px;
	}
}

.nutri-event-single .nutri-event-header .nutri-event-detail {
	margin: 0 auto;
}

.nutri-event-single .nutri-event-detail__heading {
	text-align: center;
}

.nutri-event-single .nutri-event-title {
	margin: 0 0 6px;
	font-size: clamp(26px, 3vw, 36px);
	font-weight: 800;
	line-height: 1.2;
	color: #0b3557;
	letter-spacing: 0.01em;
}

.nutri-event-single .nutri-event-title__subtitle {
	display: block;
	margin-top: 6px;
	font-size: clamp(16px, 2vw, 20px);
	font-weight: 400;
	line-height: 1.35;
	color: #5b728a;
}


/* Banner full-width responsive (usa el móvil bajo 700px) */
.nutri-event-hero-banner{
  background:#fff;
  padding:0;
}
.nutri-event-hero-banner__img{
  width:100%;
  height:auto;
  display:block;
}

/* Intro + meta + avanzado */
.nutri-event-intro .nutri-event-detail{
  max-width:1100px;
  margin:0 auto;
}

/* Fila superior: botón volver + meta (fecha+ciudad) */
.nutri-event-toprow {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
	margin: 14px 0 18px;
}

.nutri-event-toprow .nutri-event-meta--single {
	margin: 0;
	flex: 1 1 260px;
}

.nutri-event-toprow .nutri-event-meta--single li {
	width: 100%;
}

.nutri-event-meta{
  list-style:none;
  margin:0 0 18px;
  padding:0;
  display:grid;
  gap:10px;
}
@media (min-width:700px){
  .nutri-event-meta{ grid-template-columns:1fr 1fr; }
}
.nutri-event-meta li{
  margin:0;
  padding:10px 14px;
  border:1px solid var(--bd);
  border-radius:14px;
  background:#fff;
  color:var(--text);
  display:flex;
  align-items:center;
  gap:10px;
  box-shadow:0 10px 20px rgba(11,53,87,.05);
  font-weight:700;
}
.nutri-event-meta li.is-date{ border-color:#d9eef3; }
.nutri-event-meta li.is-place{ border-color:#dfe7f1; }

/* ✅ En móvil, reducir padding para que no “salte” a dos líneas raras */
@media (max-width:480px){
  .nutri-event-meta li{ padding:9px 12px; }
}

/* Bloque avanzado */
.nutri-advanced{
  border-top:1px solid var(--bd);
  border-bottom:1px solid var(--bd);
  padding:22px 0;
  color:var(--text);
  margin-top: 22px;
}
.nutri-advanced p{ margin:0 0 10px; }
.nutri-advanced ul{ margin:8px 0 0 18px; }

/* Ponentes */
.nutri-speakers{
  margin-top: 40px;
  padding-top: 10px;
  border-top: 1px solid #e8eef3;
}
.nutri-event-single .nutri-section.nutri-speakers{
  padding-bottom: 42px;
}
.nutri-speakers__title{
  margin:0 0 28px;
  font-size:clamp(22px,3vw,28px);
  color:var(--text);
  font-weight:800;
  text-align:center;
}
.nutri-speakers__grid{
  display:grid;
  grid-template-columns:repeat(1,minmax(0,1fr));
  gap:24px;
  max-width:1040px;
  margin:0 auto;
}
@media (min-width:800px){
  .nutri-speakers__grid{ grid-template-columns:repeat(2,minmax(0,1fr)); }
}
.nutri-speakers__grid--single{
  grid-template-columns:minmax(0,820px);
  justify-content:center;
}
.nutri-speaker{
  display:grid;
  gap:20px;
  align-items:start;
  text-align:center;
  padding:28px 24px;
  border-radius:24px;
}
.nutri-speaker__avatar{
  width:220px; height:220px; border-radius:999px;
  margin:0 auto; overflow:hidden; border:2px solid #cfe2ea;
  display:flex; align-items:center; justify-content:center; background:#fff;
  box-shadow:0 12px 26px rgba(11,53,87,.10);
}
.nutri-speaker__avatar img{ width:100%; height:100%; object-fit:cover; display:block; }
.nutri-speaker__avatar--ph{ font-size:54px; opacity:.3; }
.nutri-speaker__content{
  display:grid;
  gap:10px;
}
.nutri-speaker__name{ margin:0; font-size:24px; color:var(--text); font-weight:800; }
.nutri-speaker__role{
  margin:0;
  color:#0e7f8d;
  font-weight:700;
  font-size:14px;
  letter-spacing:.04em;
  text-transform:uppercase;
}
.nutri-speaker__bio{
  margin:0;
  color:var(--text);
  line-height:1.65;
  max-width:58ch;
}

@media (min-width:800px){
  .nutri-speakers__grid--single .nutri-speaker{
    grid-template-columns:220px minmax(0,1fr);
    gap:32px;
    align-items:center;
    text-align:left;
    padding:34px;
  }
  .nutri-speakers__grid--single .nutri-speaker__avatar{
    margin:0;
  }
  .nutri-speakers__grid--single .nutri-speaker__content{
    align-content:center;
  }
}

/* ✅ Ponentes: avatar demasiado grande en móvil */
@media (max-width:600px){
  .nutri-speakers{ margin-top:32px; }
  .nutri-speakers__grid{ gap:20px; }
  .nutri-speaker{ padding:22px 18px; border-radius:20px; }
  .nutri-speaker__avatar{ width:170px; height:170px; }
  .nutri-speaker__name{ font-size:22px; }
  .nutri-event-single .nutri-section.nutri-speakers{ padding-bottom:30px; }
}
@media (max-width:360px){
  .nutri-speaker__avatar{ width:140px; height:140px; }
  .nutri-speaker__name{ font-size:20px; }
}

/* ===== CTA final (single) ===== */
.nutri-event-cta{
  background:var(--bg);
}
.nutri-event-cta article{
  max-width:1000px;
  margin:0 auto;
}
.nutri-event-cta__row{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  justify-content:center;    /* centrado real */
  margin-bottom:10px;
}
.nutri-event-cta__row .nutri-btn{
  display:inline-flex;
}

/* Mensaje de estado */
.nutri-msg{
  margin-top:8px;
}
.nutri-msg .nutri-msg__inner{
  border:1px solid var(--bd);
  background:#ffffff;
  border-radius:12px;
  padding:12px 14px;
  font-size:14px;
  box-shadow:var(--shadow);
}
.nutri-msg--ok{
  border-color:#cfe8d7;
  background:#f2fbf6;
}
.nutri-msg--error{
  border-color:#f0c9c9;
  background:#fff6f6;
}

/* Indicador ligero de ocupado */
.nutri-busy{
  position:relative;
  min-height:6px;
  margin-top:6px;
}
.nutri-busy[hidden]{ display:none; }
.nutri-busy::after{
  content:"";
  position:absolute;
  inset:0;
  height:3px;
  border-radius:999px;
  background:linear-gradient(90deg, rgba(14,127,141,.15), rgba(14,127,141,.45), rgba(14,127,141,.15));
  animation:nutriBusy 1.1s linear infinite;
}
@keyframes nutriBusy{
  0%{ transform:translateX(-30%); opacity:.7; }
  50%{ transform:translateX(0%); opacity:1; }
  100%{ transform:translateX(30%); opacity:.7; }
}


/* Título genérico de sección de eventos */
.nutri-section__title {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 1.5rem;
  color: #0b3557;
  letter-spacing: 0.02em;
}

/* Cuando la sección es de eventos pasados */
.nutri-section--past .nutri-section__title {
  color: #64748b;          /* un gris más suave */
  font-size: 1.8rem;
}

/* Si quieres añadir una línea debajo */
.nutri-section__title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  margin-top: 0.5rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #0ea5e9, #22c55e);
}


/* Meta unificada (fecha + ciudad centradas) */
.nutri-event-meta--single{
  grid-template-columns: 1fr;
  justify-items: center;
}

.nutri-event-meta--single li{
  justify-content: center;
  text-align: center;
}

.nutri-event-form__title {
	font-size: 2rem;
	font-weight: 800;
	color: #0b3557;
	margin: 0 0 10px;
	letter-spacing: 0.01em;
	text-align: center;
}

.nutri-event-form__subtitle {
	color: #5b728a;
	font-size: 16px;
	max-width: 600px;
	margin: 0 auto 20px;
	text-align: center;
	line-height: 1.45;
}

.nutri-event-form__title-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-bottom: 6px;
}

.nutri-event-form__title {
	font-size: 2rem;
	font-weight: 800;
	color: #0b3557;
	margin: 0;
	letter-spacing: 0.01em;
	text-align: center;
}

.nutri-event-form__subtitle {
	color: #5b728a;
	font-size: 16px;
	max-width: 700px;
	margin: 0 auto 0px;
	text-align: center;
	line-height: 1.45;
}

/* ✅ Títulos del formulario en móvil */
@media (max-width:600px){
  .nutri-event-form__title{ font-size: 1.7rem; }
}
@media (max-width:360px){
  .nutri-event-form__title{ font-size: 1.55rem; }
}

/* Botón de info + tooltip */
.nutri-event-form__info {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

/* Icono circular con "i" blanca sobre fondo teal */
.nutri-event-form__info-icon {
	width: 22px;
	height: 22px;
	border-radius: 999px;
	border: 1px solid transparent;
	background: #0e7f8d;
	color: #ffffff;
	font-size: 13px;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	padding: 0;
	margin: 0;
	line-height: 1;
	transition: background 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease;
}

.nutri-event-form__info-icon:hover,
.nutri-event-form__info-icon:focus {
	background: #0b6a75;
	box-shadow: 0 6px 14px rgba(11, 53, 87, 0.35);
	transform: translateY(-1px);
}

.nutri-event-form__info-icon:focus-visible {
	outline: 2px solid #89cbe0;
	outline-offset: 2px;
}

/* Tooltip ancho, oscuro y legible */
.nutri-event-form__info-tooltip {
	position: absolute;
	left: 50%;
	bottom: calc(100% + 14px);
	transform: translateX(-50%) translateY(6px);
	background: #0b3557;
	color: #ffffff;
	border-radius: 12px;
	padding: 14px 18px;
	font-size: 14px;
	line-height: 1.45;
	width: 320px;          /* Más ancho */
	max-width: 90vw;
	white-space: normal;
	box-shadow: 0 18px 34px rgba(11,53,87,0.26);
	opacity: 0;
	pointer-events: none;
	z-index: 20;
	transition: opacity 0.22s ease, transform 0.22s ease;
}

/* ✅ Tooltip en móviles: reducir ancho y evitar recortes laterales */
@media (max-width:480px){
  .nutri-event-form__info-tooltip{
    width: 280px;
    max-width: calc(100vw - 32px);
  }
}
@media (max-width:360px){
  .nutri-event-form__info-tooltip{
    width: 260px;
    max-width: calc(100vw - 28px);
    padding: 12px 14px;
    font-size: 13px;
  }
}

/* Flechita del tooltip, del mismo color que el fondo */
.nutri-event-form__info-tooltip::before {
	content: "";
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	border-width: 8px;
	border-style: solid;
	border-color: #0b3557 transparent transparent transparent;
}

/* Hover / focus muestran el tooltip */
.nutri-event-form__info:hover .nutri-event-form__info-tooltip,
.nutri-event-form__info-icon:focus + .nutri-event-form__info-tooltip,
.nutri-event-form__info-icon:focus-visible + .nutri-event-form__info-tooltip {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
	pointer-events: auto;
}

/* ===== Barra de volver (botón atrás a categoría) – versión genérica ===== */
.nutri-backbar {
	padding: 10px 20px 0;
	text-align: center;
}

.nutri-backbar .nutri-backbar__inner {
	max-width: 1000px;
	margin: 0 auto;
}

.nutri-backbar .nutri-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 220px;
	gap: 6px;
}

/* Flecha hacia atrás antes del texto */
.nutri-backbar .nutri-btn::before {
	content: "←";
	font-size: 14px;
	line-height: 1;
}

/* ===== Variante inline + enlace discreto ===== */

.nutri-backbar--inline {
	background: transparent;
	padding: 0;
	text-align: left;
}

.nutri-backbar--inline .nutri-backbar__inner {
	max-width: none;
	margin: 0;
	display: flex;
	align-items: center;
	justify-content: flex-start;
}

/* Botón tipo enlace discreto */
.nutri-backbar--inline .nutri-btn--backlink {
	min-width: auto;
	padding: 4px 0;
	border: none;
	background: transparent;
	box-shadow: none;
	font-size: 13px;
	font-weight: 500;
	color: #5b728a !important;
	gap: 4px;
}

/* Flecha más pequeña para el enlace */
.nutri-backbar--inline .nutri-btn--backlink::before {
	content: "←";
	font-size: 13px;
	line-height: 1;
}

/* Hover suave, estilo enlace */
.nutri-backbar--inline .nutri-btn--backlink:hover,
.nutri-backbar--inline .nutri-btn--backlink:focus-visible {
	transform: none;
	background: transparent;
	border-color: transparent;
	box-shadow: none;
	color: #0b3557 !important;
	text-decoration: underline;
}

/* Responsive: apilar en móvil */
@media (max-width: 700px) {
	.nutri-event-toprow {
		flex-direction: column;
		align-items: stretch;
	}

	.nutri-backbar--inline .nutri-backbar__inner {
		justify-content: flex-start;
	}

	.nutri-backbar--inline .nutri-btn--backlink {
		align-self: flex-start;
	}
}

/* ✅ Backbar genérica en móvil: evitar botón “min-width 220” que rompe en XS */
@media (max-width:480px){
  .nutri-backbar{ padding: 10px 16px 0; }
  .nutri-backbar .nutri-btn{ min-width: auto; }
}
@media (max-width:360px){
  .nutri-backbar{ padding: 10px 14px 0; }
}

/* ==========================================================
 * Single event – Estado "PLAZO CERRADO" (formulario bloqueado)
 * ========================================================== */

.nutri-event-single .nutri-event-form__closed{
	max-width: none;
	margin: 0;
	padding: 18px 16px;
	border-radius: 16px;
	border: 1px solid #f0c9c9;
	background: #fff6f6;
	box-shadow: 0 16px 34px rgba(11,53,87,.10);
	text-align: center;
}

.nutri-event-single .nutri-event-form__closed-title{
	margin: 0;
	font-size: clamp(20px, 2.6vw, 28px);
	font-weight: 900;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #791616; /* rojo corporativo ya usado */
}

.nutri-event-single .nutri-event-form__closed-subtitle{
	margin: 10px auto 0;
	max-width: 680px;
	font-size: 14px;
	line-height: 1.45;
	color: #0b3557;
	opacity: 0.92;
}

@media (max-width: 700px){
	.nutri-event-single .nutri-event-form__closed{
		padding: 16px 14px;
		border-radius: 14px;
	}
	.nutri-event-single .nutri-event-form__closed-title{
		letter-spacing: 0.05em;
	}
}

/* ✅ Ajuste extra XS (solo media queries) */
@media (max-width:360px){
  .nutri-event-single .nutri-event-form__closed{
    padding: 14px 12px;
  }
}


/* ==========================================================
 * Single event – CTA "Inscribirme" debajo de fecha/ciudad
 * ========================================================== */

.nutri-event-single .nutri-event-signup-cta{
	margin: 18px 0 0;
	text-align: center;
}

.nutri-event-single .nutri-event-signup-cta__btn{
	min-width: 220px;
}

/* ✅ CTA en móvil: evitar botón demasiado ancho */
@media (max-width:480px){
  .nutri-event-single .nutri-event-signup-cta__btn{ min-width: auto; }
}

/* Offset suave al hacer scroll al ancla (evita que quede pegado arriba) */
#nutri-event-form{
	scroll-margin-top: 18px;
	margin: 0 auto;
	padding: 0 20px 24px;
}

.nutri-event-form__shell{
	max-width: 980px;
	margin: 0 auto;
	display: grid;
	gap: 24px;
}
.nutri-event-single .nutri-section.nutri-event-form{
	padding-top: 42px;
}

/* ==========================================================
 * Badge "Webinar en directo" en las cards
 * ========================================================== */

/* La card necesita position:relative para el badge absoluto */
.nutri-events-main .nutri-event-card,
.nutri-events-carousel .nutri-event-card {
	position: relative;
}

.nutri-event-card__badge {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	padding: 4px 10px;
	border-radius: 100px;
	line-height: 1.4;
	pointer-events: none;
}

.nutri-event-card__badge--webinar {
	background: #0e7f8d;
	color: #ffffff;
	box-shadow: 0 2px 8px rgba(14, 127, 141, 0.45);
}

/* Punto parpadeante "en directo" */
.nutri-event-card__badge--webinar::before {
	content: "";
	display: inline-block;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #ffffff;
	opacity: 0.9;
	animation: nutriLivePulse 1.6s ease-in-out infinite;
	flex-shrink: 0;
}

@keyframes nutriLivePulse {
	0%, 100% { opacity: 0.9; transform: scale(1); }
	50%       { opacity: 0.4; transform: scale(0.7); }
}

/* ==========================================================
 * Single event – Webinar: sección "Únete al webinar"
 * ========================================================== */

.nutri-event-single .nutri-webinar-join {
	width: 100%;
	margin: 0;
	padding: 32px 24px;
	border-radius: 18px;
	border: 1px solid #cfe8ee;
	background: #f0fbfc;
	box-shadow: 0 16px 34px rgba(11, 53, 87, 0.08);
	text-align: center;
}

.nutri-event-single .nutri-event-form__header {
	width: 100%;
	margin: 0;
	padding: 28px 28px 12px;
	border-radius: 18px;
}

.nutri-event-single .nutri-event-form__closed,
.nutri-event-single .nutri-event-form__iframe{
	width: 100%;
	margin: 0;
}

.nutri-event-single .nutri-event-form__iframe{
	display: block;
	border-radius: 20px;
}

.nutri-webinar-join__header {
	margin-bottom: 20px;
}

.nutri-webinar-join__badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	background: #0e7f8d;
	color: #ffffff;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 5px 14px;
	border-radius: 100px;
	margin-bottom: 14px;
	box-shadow: 0 2px 8px rgba(14, 127, 141, 0.4);
}

/* Punto parpadeante en el badge del single */
.nutri-webinar-join__badge::before {
	content: "";
	display: inline-block;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #ffffff;
	animation: nutriLivePulse 1.6s ease-in-out infinite;
	flex-shrink: 0;
}

.nutri-webinar-join__title {
	margin: 0 0 10px;
	font-size: clamp(22px, 2.8vw, 30px);
	font-weight: 800;
	color: #0b3557;
}

.nutri-webinar-join__subtitle {
	margin: 0 auto;
	max-width: 580px;
	font-size: 16px;
	line-height: 1.5;
	color: #4a7a8a;
}

.nutri-webinar-join__cta {
	margin: 24px 0 8px;
}

.nutri-webinar-join__btn {
	min-width: 240px;
	font-size: 16px;
	padding: 14px 28px;
}

.nutri-webinar-join__note {
	margin: 0 auto;
	max-width: 480px;
	font-size: 13px;
	color: #5b728a;
	line-height: 1.4;
}

.nutri-webinar-join__pending {
	margin: 20px auto 0;
	max-width: 560px;
	font-size: 15px;
	line-height: 1.5;
	color: #5b728a;
	font-style: italic;
}

/* Responsive webinar join */
@media (max-width: 600px) {
	.nutri-event-single .nutri-webinar-join {
		padding: 24px 16px;
		border-radius: 14px;
	}

	.nutri-event-single .nutri-event-form__header {
		padding: 22px 16px 10px;
		border-radius: 14px;
	}

	.nutri-webinar-join__btn {
		min-width: auto;
		width: 100%;
	}
}

@media (max-width: 360px) {
	.nutri-event-single .nutri-webinar-join {
		padding: 20px 14px;
	}
}

@media (max-width:480px){
	#nutri-event-form{
		padding: 0 16px 20px;
	}

	.nutri-event-form__shell{
		gap: 18px;
	}

	.nutri-event-single .nutri-section.nutri-event-form{
		padding-top: 30px;
	}
}
