/*
 * Andrés El Paisa · estilos del tema.
 * Las clases ep-* se ponen en Elementor (Avanzado > Clases CSS) y le dan el diseño a cada bloque.
 * Lo que cambies en los paneles de Elementor (colores, márgenes, tamaños) manda sobre estos estilos.
 */

/* ---------- Colores y letras ---------- */
body.ep {
	--ep-noche: #0A1238;
	--ep-noche-2: #16226A;
	--ep-amarillo: #FFC400;
	--ep-azul: #1747D1;
	--ep-rojo: #E5202E;
	--ep-py-rojo: #D52B1E;
	--ep-py-azul: #0038A8;
	--ep-fibra: #F1E6C8;
	--ep-yerba: #2F8F4E;
	--ep-tinta: #14151B;
	--ep-tinta-2: #4A4E5E;
	--ep-papel: #FFFFFF;
	--ep-papel-2: #F3F5FC;
	--ep-linea: #DCE1EF;
	--ep-acento: var(--ep-amarillo);
	--ep-display: "Bagel Fat One", "Arial Rounded MT Bold", system-ui, sans-serif;
	--ep-texto: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
	--ep-ancho: 1200px;
	margin: 0;
	background: var(--ep-papel);
	color: var(--ep-tinta);
	font-family: var(--ep-texto);
	font-size: 16px;
	line-height: 1.6;
	overflow-x: hidden;
}
html[data-modo="py"] body.ep { --ep-acento: #FF4A55; }

/* ---------- Ajustes sobre los estilos base de Hello Elementor ---------- */
body.ep a { color: inherit; }
body.ep img { max-width: 100%; height: auto; }
body.ep h1, body.ep h2, body.ep h3, body.ep h4 { text-wrap: balance; }
body.ep button,
body.ep [type="button"],
body.ep [type="submit"] { border: 0; border-radius: 0; padding: 0; background: none; color: inherit; font: inherit; cursor: pointer; white-space: normal; text-align: inherit; }
body.ep button:hover, body.ep button:focus,
body.ep [type="button"]:hover, body.ep [type="button"]:focus,
body.ep [type="submit"]:hover, body.ep [type="submit"]:focus { background: none; color: inherit; }
body.ep :focus-visible { outline: 3px solid var(--ep-amarillo); outline-offset: 3px; border-radius: 8px; }
body.ep .elementor-widget-text-editor p:last-child,
body.ep .elementor-widget-text-editor ul:last-child { margin-bottom: 0; }
body.ep .elementor-widget-text-editor p { margin-top: 0; }
body.ep .skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 100; background: var(--ep-papel); color: var(--ep-tinta); padding: 10px 16px; border-radius: 8px; clip: auto; width: auto; height: auto; }
[hidden] { display: none !important; }
/* El espacio entre bloques lo da el "Espacio" de cada contenedor de Elementor. */
:where(body.ep .e-con, body.ep .e-con-inner) > .elementor-widget:not(:last-child) { margin-block-end: 0; }

/* ---------- Encabezado ---------- */
body.ep::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--ep-noche); }
.ep-nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(10, 18, 56, .95); backdrop-filter: blur(10px); color: var(--ep-papel); }
body.admin-bar .ep-nav { top: calc(32px + env(safe-area-inset-top, 0px)); }
@media (max-width: 782px) { body.admin-bar .ep-nav { top: env(safe-area-inset-top, 0px); } }
.ep-nav-dentro { max-width: var(--ep-ancho); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px max(16px, env(safe-area-inset-right, 0px)) 8px max(16px, env(safe-area-inset-left, 0px)); box-sizing: content-box; }
.ep-nav-logo { display: block; flex: none; }
body.ep .ep-nav-logo img { display: block; height: 52px; width: auto; }
.ep-menu { display: flex; align-items: center; gap: 18px; }
.ep-menu-lista { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.ep-menu-lista a { display: block; padding: 8px 13px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ep-papel); opacity: .85; }
.ep-menu-lista a:hover { opacity: 1; background: rgba(255, 255, 255, .08); }
.ep-menu-lista .current-menu-item > a,
.ep-menu-lista .current_page_item > a,
.ep-menu-lista .current_page_parent > a { opacity: 1; background: var(--ep-acento); color: var(--ep-tinta); }
body.ep .ep-hamburguesa { display: none; padding: 8px; }
.ep-hamburguesa span { display: block; width: 24px; height: 2px; background: var(--ep-papel); margin: 5px 0; transition: transform .25s, opacity .25s; }
.ep-hamburguesa[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ep-hamburguesa[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.ep-hamburguesa[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 1000px) {
	body.ep .ep-hamburguesa { display: block; }
	.ep-menu { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 10px; background: var(--ep-noche); padding: 8px max(16px, env(safe-area-inset-right, 0px)) 20px max(16px, env(safe-area-inset-left, 0px)); display: none; }
	.ep-menu.ep-abierto { display: flex; }
	.ep-menu-lista { flex-direction: column; }
	.ep-menu-lista a { font-size: 18px; padding: 12px 14px; }
	.ep-nav-cta { align-self: flex-start; }
}

/* ---------- Botones ----------
 * En Elementor la clase de color (ep-boton-amarillo, ep-boton-rojo...) va en el widget Botón;
 * solo se pinta el botón de adentro, nunca la caja que lo contiene. */
.ep-boton,
body.ep .ep-boton-amarillo .elementor-button,
body.ep .ep-boton-rojo .elementor-button,
body.ep .ep-boton-tinta .elementor-button,
body.ep .ep-boton-borde .elementor-button {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	padding: 13px 24px; border-radius: 999px; border: 2px solid transparent;
	font-family: var(--ep-texto); font-weight: 700; font-size: 15px; line-height: 1.2; text-decoration: none;
	transition: transform .2s ease, box-shadow .2s ease, background-color .2s;
}
.ep-boton:hover,
body.ep .elementor-button:hover { transform: translateY(-2px); }
.ep-boton.ep-boton-amarillo,
body.ep .ep-boton-amarillo .elementor-button { background: var(--ep-amarillo); color: var(--ep-tinta); box-shadow: 0 5px 0 #B98C00; }
body.ep .ep-boton-amarillo .elementor-button:hover { background: var(--ep-amarillo); color: var(--ep-tinta); }
.ep-boton.ep-boton-rojo,
body.ep .ep-boton-rojo .elementor-button,
body.ep button.ep-boton-rojo { background: var(--ep-rojo); color: var(--ep-papel); box-shadow: 0 5px 0 #A3121C; }
body.ep .ep-boton-rojo .elementor-button:hover,
body.ep button.ep-boton-rojo:hover { background: var(--ep-rojo); color: var(--ep-papel); }
.ep-boton.ep-boton-tinta,
body.ep .ep-boton-tinta .elementor-button { background: var(--ep-tinta); color: var(--ep-papel); }
body.ep .ep-boton-tinta .elementor-button:hover { background: var(--ep-tinta); color: var(--ep-papel); }
body.ep .ep-boton-borde .elementor-button { background: transparent; border-color: currentColor; color: inherit; }
body.ep .ep-boton-borde .elementor-button:hover { background: rgba(255, 255, 255, .1); color: inherit; }
body.ep .ep-enlace .elementor-button { background: none; padding: 12px 0; color: inherit; font-weight: 700; font-size: 14px; border-radius: 0; }
body.ep .ep-enlace .elementor-button:hover { background: none; color: inherit; text-decoration: underline; }
body.ep .elementor-widget-button.ep-boton-amarillo,
body.ep .elementor-widget-button.ep-boton-rojo,
body.ep .elementor-widget-button.ep-boton-tinta,
body.ep .elementor-widget-button.ep-boton-borde,
body.ep .elementor-widget-button.ep-enlace { width: auto; max-width: max-content; }

/* ---------- Textos ---------- */
body.ep .ep-etiqueta,
body.ep p.ep-etiqueta { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ep-azul); }
body.ep .ep-etiqueta p { margin: 0; }
body.ep .ep-titulo .elementor-heading-title,
body.ep h1.ep-titulo, body.ep h2.ep-titulo { font-family: var(--ep-display); font-weight: 400; font-size: clamp(32px, 4.6vw, 54px); line-height: 1.1; margin: 0; }
body.ep .ep-subtitulo .elementor-heading-title { font-family: var(--ep-display); font-weight: 400; font-size: clamp(24px, 3vw, 32px); line-height: 1.15; }
body.ep .ep-lead,
body.ep p.ep-lead { font-size: 17px; color: var(--ep-tinta-2); max-width: 62ch; }
body.ep .ep-lead strong { color: var(--ep-tinta); }
body.ep .ep-oscuro { color: var(--ep-papel); }
body.ep .ep-oscuro .ep-etiqueta { color: var(--ep-acento); }
body.ep .ep-oscuro .ep-lead { color: rgba(255, 255, 255, .82); }
body.ep .ep-oscuro .ep-lead strong { color: var(--ep-papel); }
body.ep .ep-gris { background-color: var(--ep-papel-2); }
.ep-dentro { max-width: var(--ep-ancho); margin: 0 auto; display: grid; gap: 14px; }

/* ---------- Secciones oscuras y franja de sombrero vueltiao ---------- */
body.ep .ep-hero { background: radial-gradient(120% 90% at 70% 10%, var(--ep-noche-2) 0%, var(--ep-noche) 60%); }
body.ep .ep-cab,
body.ep .ep-programas { background-color: var(--ep-noche); }
body.ep .ep-vueltiao { position: relative; }
body.ep .ep-vueltiao::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 26px; z-index: 2; pointer-events: none;
	background:
		linear-gradient(135deg, var(--ep-tinta) 25%, transparent 25%) -13px 0 / 26px 26px,
		linear-gradient(225deg, var(--ep-tinta) 25%, transparent 25%) -13px 0 / 26px 26px,
		linear-gradient(315deg, var(--ep-tinta) 25%, transparent 25%) 0 0 / 26px 26px,
		linear-gradient(45deg, var(--ep-tinta) 25%, transparent 25%) 0 0 / 26px 26px,
		var(--ep-fibra);
}
:is(section, header).ep-cab { padding: 64px 16px 82px; }
:is(section, div:not(.e-con)).ep-seccion { padding: 88px 16px; }
@media (max-width: 767px) { :is(section, div:not(.e-con)).ep-seccion { padding: 60px 16px; } }

/* ---------- Portada ---------- */
body.ep .ep-chips ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
body.ep .ep-chips li { background: rgba(255, 255, 255, .1); padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
body.ep .ep-chips li:first-child { background: var(--ep-acento); color: var(--ep-tinta); }
body.ep .ep-saludo .elementor-heading-title { font-family: var(--ep-display); font-weight: 400; font-size: clamp(22px, 2.6vw, 30px); color: var(--ep-acento); line-height: 1.2; }
body.ep .ep-hero-logo { text-align: left; }
body.ep .ep-hero-logo img { width: min(480px, 92%); filter: drop-shadow(0 12px 24px rgba(0, 0, 0, .35)); }
body.ep .ep-hero-titulo .elementor-heading-title { font-family: var(--ep-texto); font-size: clamp(20px, 2.2vw, 26px); font-weight: 700; line-height: 1.25; letter-spacing: -.01em; }
body.ep .ep-bajada { font-size: 17px; opacity: .88; max-width: 540px; }
body.ep .ep-pista p { font-size: 13px; opacity: .7; display: flex; gap: 8px; align-items: center; }
body.ep .ep-pista p::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ep-acento); animation: ep-latido 1.6s ease-in-out infinite; flex: none; }
@keyframes ep-latido { 50% { transform: scale(1.8); opacity: .4; } }

/* Modo Colombia / Modo Paraguay */
html:not([data-modo="py"]) body.ep .ep-solo-py,
html[data-modo="py"] body.ep .ep-solo-co { display: none; }
.ep-modo { display: inline-flex; flex-wrap: wrap; padding: 5px; border-radius: 28px; background: rgba(255, 255, 255, .1); gap: 4px; max-width: 100%; }
body.ep .ep-modo button { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--ep-papel); transition: background .3s, color .3s; }
body.ep .ep-modo button[aria-checked="true"],
body.ep .ep-modo button[aria-checked="true"]:hover { background: var(--ep-papel); color: var(--ep-tinta); }
.ep-bandera { width: 20px; height: 20px; border-radius: 50%; flex: none; border: 1px solid rgba(255, 255, 255, .4); display: inline-block; }
.ep-bandera-co { background: linear-gradient(var(--ep-amarillo) 0 50%, var(--ep-azul) 50% 75%, var(--ep-rojo) 75%); }
.ep-bandera-py { background: linear-gradient(var(--ep-py-rojo) 0 33%, #fff 33% 66%, var(--ep-py-azul) 66%); }
@media (max-width: 767px) { .ep-solo-pc { display: none; } }

/* Foto en arco con las franjas de la bandera */
body.ep .ep-marco {
	position: relative; width: min(100%, 430px); max-width: 100%; aspect-ratio: 3 / 4; border-radius: 999px 999px 28px 28px; overflow: hidden;
	margin: 0 42px 42px 0; box-shadow: 14px 14px 0 var(--ep-amarillo), 28px 28px 0 var(--ep-azul), 42px 42px 0 var(--ep-rojo); transition: box-shadow .6s ease;
}
html[data-modo="py"] body.ep .ep-marco { box-shadow: 14px 14px 0 var(--ep-py-rojo), 28px 28px 0 #FFFFFF, 42px 42px 0 var(--ep-py-azul); }
body.ep .ep-marco > .elementor-widget-image { position: absolute; inset: 0; margin: 0; }
body.ep .ep-marco > .elementor-widget-image * { height: 100%; }
body.ep .ep-marco img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
body.ep .ep-marco-chip { position: absolute; left: 16px; bottom: 16px; width: auto; z-index: 2; }
body.ep .ep-marco-chip p { margin: 0; background: var(--ep-papel); color: var(--ep-tinta); border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 700; display: inline-flex; gap: 8px; align-items: center; }
body.ep .ep-marco-chip.ep-solo-co p::before,
body.ep .ep-marco-chip.ep-solo-py p::before { content: ""; width: 16px; height: 16px; border-radius: 50%; }
body.ep .ep-marco-chip.ep-solo-co p::before { background: linear-gradient(var(--ep-amarillo) 0 50%, var(--ep-azul) 50% 75%, var(--ep-rojo) 75%); }
body.ep .ep-marco-chip.ep-solo-py p::before { background: linear-gradient(var(--ep-py-rojo) 0 33%, #fff 33% 66%, var(--ep-py-azul) 66%); box-shadow: inset 0 0 0 1px var(--ep-linea); }
@media (max-width: 767px) {
	body.ep .ep-marco { width: min(78%, 340px); margin: 0 30px 30px 0; box-shadow: 10px 10px 0 var(--ep-amarillo), 20px 20px 0 var(--ep-azul), 30px 30px 0 var(--ep-rojo); }
	html[data-modo="py"] body.ep .ep-marco { box-shadow: 10px 10px 0 var(--ep-py-rojo), 20px 20px 0 #FFFFFF, 30px 30px 0 var(--ep-py-azul); }
	body.ep .ep-hero-logo img { width: min(320px, 86%); }
}

/* ---------- Grillas ---------- */
body.ep .ep-grilla { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); }
body.ep .ep-grilla-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body.ep .ep-grilla-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
body.ep .ep-grilla-auto { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
body.ep .ep-grilla > .e-con,
body.ep .ep-grilla > .elementor-element { width: auto; min-width: 0; max-width: none; }
@media (max-width: 1000px) {
	body.ep .ep-grilla-3, body.ep .ep-grilla-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
	body.ep .ep-grilla-2, body.ep .ep-grilla-3 { grid-template-columns: minmax(0, 1fr); }
}

/* Cifras */
body.ep .ep-cifras { background-color: var(--ep-amarillo); color: var(--ep-tinta); }
body.ep .ep-cifra-num .elementor-heading-title { font-family: var(--ep-display); font-weight: 400; font-size: clamp(38px, 5vw, 60px); line-height: 1; font-variant-numeric: tabular-nums; }
body.ep .ep-cifra-texto p { font-size: 15px; font-weight: 600; }

/* ---------- Multinicho ---------- */
body.ep .ep-desplegar { margin-top: 4px; }
body.ep .ep-desplegable { background: var(--ep-fibra); border-radius: 22px; padding: 22px 24px; max-width: 60ch; }
body.ep .ep-desplegable h3 { font-family: var(--ep-texto); font-size: 17px; font-weight: 700; margin: 0 0 6px; }
body.ep .ep-desplegable p { color: var(--ep-tinta-2); margin: 0 0 12px; }
body.ep.ep-js .ep-desplegable:not(.ep-abierto) { display: none; }
body.ep .ep-desplegable.ep-abierto { animation: ep-entrar .4s ease; }
@keyframes ep-entrar { from { opacity: .3; transform: translateY(8px); } }
body.ep .ep-sello p { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--ep-tinta-2); border: 2px dashed var(--ep-rojo); border-radius: 20px; padding: 8px 16px 8px 8px; margin: 0; }
body.ep .ep-sello strong { flex: none; font-family: var(--ep-display); font-weight: 400; font-size: 18px; color: var(--ep-papel); background: var(--ep-rojo); border-radius: 14px; padding: 4px 14px; }

/* Pestañas de nichos (el JS las arma con los títulos de cada nicho) */
.ep-nichos-chips { display: flex; flex-wrap: wrap; gap: 12px; }
body.ep .ep-nichos-chips button { border-radius: 999px; padding: 12px 20px; font-weight: 700; font-size: 16px; transition: transform .25s cubic-bezier(.3, 1.6, .5, 1), box-shadow .25s; }
body.ep .ep-nichos-chips button:hover,
body.ep .ep-nichos-chips button[aria-selected="true"] { transform: translateY(-3px) scale(1.06); box-shadow: 0 6px 0 rgba(0, 0, 0, .18); }
body.ep .ep-nichos-chips button:nth-child(6n+1),
body.ep .ep-nichos-chips button:nth-child(6n+1):hover { background: var(--ep-amarillo); color: var(--ep-tinta); }
body.ep .ep-nichos-chips button:nth-child(6n+2),
body.ep .ep-nichos-chips button:nth-child(6n+2):hover { background: var(--ep-azul); color: var(--ep-papel); }
body.ep .ep-nichos-chips button:nth-child(6n+3),
body.ep .ep-nichos-chips button:nth-child(6n+3):hover { background: var(--ep-rojo); color: var(--ep-papel); }
body.ep .ep-nichos-chips button:nth-child(6n+4),
body.ep .ep-nichos-chips button:nth-child(6n+4):hover { background: var(--ep-yerba); color: var(--ep-papel); }
body.ep .ep-nichos-chips button:nth-child(6n+5),
body.ep .ep-nichos-chips button:nth-child(6n+5):hover { background: var(--ep-tinta); color: var(--ep-papel); }
body.ep .ep-nichos-chips button:nth-child(6n),
body.ep .ep-nichos-chips button:nth-child(6n):hover { background: var(--ep-fibra); color: var(--ep-tinta); }
body.ep .ep-nicho { background: var(--ep-papel); border: 2px solid var(--ep-tinta); border-radius: 22px; padding: 22px 24px; }
body.ep .ep-nichos-listo .ep-nicho:not(.ep-activo) { display: none; }
body.ep .ep-nichos-listo .ep-nicho { animation: ep-entrar .35s ease; }
body.ep .ep-nicho-nombre .elementor-heading-title { font-family: var(--ep-display); font-weight: 400; font-size: 26px; line-height: 1.1; }
body.ep .ep-nicho-texto p { color: var(--ep-tinta-2); }
body.ep .ep-nicho-texto ul,
body.ep .ep-tags ul,
body.ep .ep-viaje-texto ul { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
body.ep .ep-nicho-texto li,
body.ep .ep-tags li { background: var(--ep-papel-2); border-radius: 999px; padding: 5px 12px; font-size: 13px; font-weight: 600; color: var(--ep-tinta); }

/* ---------- Programas ---------- */
body.ep .ep-prog { position: relative; border-radius: 24px; overflow: hidden; color: var(--ep-tinta); transition: transform .25s ease; }
body.ep .ep-prog:hover { transform: translateY(-5px); }
body.ep .ep-prog-terere { background-color: #E6F4D2; }
body.ep .ep-prog-cocina { background-color: #FFE6D6; }
body.ep .ep-prog-viajando { background-color: #FFF1CC; }
body.ep .ep-prog::after { content: ""; position: absolute; width: 150px; aspect-ratio: 1; right: -50px; bottom: -50px; border-radius: 50%; opacity: .18; background: repeating-radial-gradient(circle, currentColor 0 6px, transparent 6px 14px); pointer-events: none; }
body.ep .ep-prog-logo img { width: 100%; max-width: 300px; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .18)); }
body.ep .ep-prog-texto p { font-size: 15px; }
body.ep .ep-nuevo { position: absolute; top: 16px; right: 16px; width: auto; z-index: 2; }
body.ep .ep-nuevo p { margin: 0; background: var(--ep-rojo); color: var(--ep-papel); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; }
body.ep .ep-podcast { border-radius: 24px; background: linear-gradient(100deg, #1C2468, #0E1546); border: 1px dashed rgba(255, 255, 255, .35); }
body.ep .ep-podcast-logo { width: 260px; max-width: 100%; flex: none; }
body.ep .ep-podcast-info { flex: 1 1 0; min-width: 0; }
body.ep .ep-podcast-info .ep-etiqueta { color: var(--ep-amarillo); }
body.ep .ep-podcast-texto p { opacity: .85; }
body.ep .ep-podcast-fecha { width: auto; }
body.ep .ep-podcast-fecha .elementor-heading-title { font-family: var(--ep-display); font-weight: 400; font-size: 44px; color: var(--ep-amarillo); }
@media (max-width: 767px) { body.ep .ep-podcast { align-items: flex-start; } }

/* ---------- Diccionario: tarjetas que giran ---------- */
body.ep .ep-palabra { border-radius: 22px; background: var(--ep-azul); color: var(--ep-papel); padding: 22px 24px; min-height: 200px; }
body.ep .ep-tema p, body.ep .ep-cara-etiqueta { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin: 0; }
body.ep .ep-co .elementor-heading-title,
body.ep .ep-py .elementor-heading-title { font-family: var(--ep-display); font-weight: 400; font-size: clamp(26px, 3vw, 34px); line-height: 1.1; }
body.ep .ep-co .elementor-heading-title { color: var(--ep-amarillo); }
body.ep .ep-py .elementor-heading-title { color: var(--ep-py-rojo); }
body.ep .ep-sig p { font-size: 14px; opacity: .85; }
body.ep .ep-palabra.ep-palabra-lista { padding: 0; background: none; perspective: 1000px; cursor: pointer; min-height: 200px; display: block !important; }
.ep-cara-in { position: relative; min-height: 200px; height: 100%; transition: transform .6s cubic-bezier(.3, 1.4, .5, 1); transform-style: preserve-3d; }
.ep-palabra[aria-pressed="true"] .ep-cara-in { transform: rotateY(180deg); }
.ep-cara { position: absolute; inset: 0; border-radius: 22px; padding: 22px 24px; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.ep-cara-co { background: var(--ep-azul); color: var(--ep-papel); }
.ep-cara-py { background: var(--ep-papel); color: var(--ep-tinta); transform: rotateY(180deg); border: 2px solid var(--ep-tinta); background-image: repeating-radial-gradient(circle at 100% 100%, transparent 0 22px, rgba(213, 43, 30, .12) 22px 24px); }
.ep-cara .elementor-widget { width: 100%; }
.ep-cara-etiqueta { display: flex; align-items: center; gap: 8px; }
.ep-cara-etiqueta::before { content: ""; width: 14px; height: 14px; border-radius: 50%; flex: none; }
.ep-cara-co .ep-cara-etiqueta::before { background: linear-gradient(var(--ep-amarillo) 0 50%, var(--ep-azul) 50% 75%, var(--ep-rojo) 75%); box-shadow: 0 0 0 1px rgba(255, 255, 255, .5); }
.ep-cara-py .ep-cara-etiqueta::before { background: linear-gradient(var(--ep-py-rojo) 0 33%, #fff 33% 66%, var(--ep-py-azul) 66%); box-shadow: 0 0 0 1px var(--ep-linea); }
.ep-girar { font-size: 13px; font-weight: 600; opacity: .75; margin: 0; }
@media (max-width: 520px) { body.ep .ep-palabra.ep-palabra-lista, .ep-cara-in { min-height: 170px; } }

/* ---------- Videos de cocina ---------- */
/* Cada bloque .ep-video es el marco de color: adentro va el recuadro vacío o el video que pegues. */
/* Sirve igual si el contenedor de Elementor es de "ancho completo" o "encajonado" (con .e-con-inner). */
body.ep :is(.ep-videos:not(.e-con-boxed), .ep-videos > .e-con-inner) { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; width: 100%; }
body.ep :is(.ep-videos:not(.e-con-boxed), .ep-videos > .e-con-inner) > .elementor-element { width: auto; min-width: 0; max-width: none; }
body.ep :is(.ep-videos-5:not(.e-con-boxed), .ep-videos-5 > .e-con-inner) { display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; }
body.ep :is(.ep-videos-5:not(.e-con-boxed), .ep-videos-5 > .e-con-inner) > .ep-video { flex: 0 0 300px !important; width: 300px !important; scroll-snap-align: start; }
body.ep .ep-video {
	position: relative; border-radius: 20px; padding: 12px; box-sizing: border-box; color: #fff; overflow: hidden;
	background: radial-gradient(circle at 50% 38%, rgba(255, 255, 255, .12) 0 22%, transparent 23%), linear-gradient(160deg, #B0122B, #5C0412);
}
body.ep .ep-video:nth-child(3n+2) { background: radial-gradient(circle at 50% 38%, rgba(255, 255, 255, .12) 0 22%, transparent 23%), linear-gradient(160deg, #F08A00, #A34E00); }
body.ep .ep-video:nth-child(3n) { background: radial-gradient(circle at 50% 38%, rgba(255, 255, 255, .12) 0 22%, transparent 23%), linear-gradient(160deg, #2E8B2A, #0E4A12); }
body.ep .ep-video::after { content: ""; position: absolute; inset: 5px; border: 2px dashed rgba(255, 255, 255, .5); border-radius: 16px; pointer-events: none; z-index: 2; }
/* Instagram ajusta solo la altura de su recuadro: a ese no se le fija altura. */
body.ep .ep-video iframe:not(.instagram-media) { display: block; width: 100% !important; max-width: 100% !important; min-width: 0 !important; aspect-ratio: 9 / 16; height: auto; border: 0; border-radius: 12px; margin: 0 !important; background: #000; }
body.ep .ep-video-ancho iframe { aspect-ratio: 16 / 9; }
body.ep .ep-video blockquote,
body.ep .ep-video iframe.instagram-media { width: 100% !important; max-width: 100% !important; min-width: 0 !important; margin: 0 !important; border-radius: 12px !important; }
body.ep .ep-video iframe.instagram-media { display: block; background: #fff; border: 0 !important; box-shadow: none !important; }
body.ep .ep-video blockquote.instagram-media { aspect-ratio: 9 / 16; background: rgba(0, 0, 0, .25); border: 0; padding: 0; }
.ep-video-vacio { aspect-ratio: 9 / 16; display: grid; place-items: center; align-content: center; gap: 10px; text-align: center; padding: 8px; }
.ep-play { width: 58px; height: 58px; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.ep-play::before { content: ""; border-left: 18px solid #14151B; border-top: 11px solid transparent; border-bottom: 11px solid transparent; margin-left: 5px; }
.ep-video-vacio strong { font-family: var(--ep-display); font-weight: 400; font-size: 22px; }
.ep-video-vacio small { font-size: 12px; opacity: .85; line-height: 1.35; }
.ep-video-aviso { aspect-ratio: 9 / 16; display: grid; place-items: center; text-align: center; padding: 16px; font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
body.elementor-editor-active .ep-video { min-height: 120px; overflow-wrap: anywhere; font-size: 12px; }
@media (max-width: 1000px) { body.ep :is(.ep-videos:not(.e-con-boxed), .ep-videos > .e-con-inner) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 580px) {
	body.ep :is(.ep-videos:not(.e-con-boxed), .ep-videos > .e-con-inner) { grid-template-columns: minmax(0, 1fr); justify-items: center; }
	body.ep :is(.ep-videos:not(.e-con-boxed), .ep-videos > .e-con-inner) > .ep-video { width: 100%; max-width: 360px; }
	body.ep :is(.ep-videos-5:not(.e-con-boxed), .ep-videos-5 > .e-con-inner) > .ep-video { flex-basis: 78vw !important; width: 78vw !important; max-width: 320px; }
}
body.ep .ep-mas-videos { background-color: var(--ep-fibra); border-radius: 22px; }
body.ep .ep-mas-texto { width: auto; flex: 1 1 260px; }
body.ep .ep-mas-texto p { font-weight: 600; font-size: 17px; }

/* ---------- Para marcas ---------- */
body.ep .ep-kpi { background: var(--ep-papel); border: 1px solid var(--ep-linea); border-radius: 22px; }
body.ep .ep-kpi-num .elementor-heading-title { font-family: var(--ep-display); font-weight: 400; font-size: clamp(38px, 4.6vw, 54px); line-height: 1; font-variant-numeric: tabular-nums; }
body.ep .ep-kpi-texto p { font-weight: 600; color: var(--ep-tinta-2); }
body.ep .ep-kpi-meta { background: var(--ep-noche); color: var(--ep-papel); border-color: var(--ep-noche); }
body.ep .ep-kpi-meta .ep-kpi-num .elementor-heading-title { color: var(--ep-amarillo); }
body.ep .ep-kpi-meta .ep-kpi-texto p { color: rgba(255, 255, 255, .8); }
.ep-meta-barra { height: 16px; border-radius: 999px; background: rgba(255, 255, 255, .15); overflow: hidden; margin-top: 10px; }
.ep-meta-barra i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--ep-amarillo), var(--ep-rojo)); }
.ep-meta p { margin: 8px 0 0; font-size: 14px; color: rgba(255, 255, 255, .8); }
.ep-barras { display: grid; gap: 14px; background: var(--ep-papel); border-radius: 26px; padding: 28px; border: 1px solid var(--ep-linea); height: 100%; box-sizing: border-box; }
body.ep .ep-barras h3 { font-family: var(--ep-texto); font-size: 15px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ep-tinta-2); margin: 0; }
.ep-barras ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ep-barras li { display: grid; grid-template-columns: 96px 1fr 84px; align-items: center; gap: 14px; font-weight: 600; }
.ep-barras i { height: 18px; border-radius: 999px; background: var(--ep-papel-2); overflow: hidden; }
.ep-barras b { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--ep-amarillo), var(--ep-rojo)); }
.ep-barras strong { text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) {
	.ep-barras { padding: 22px 20px; }
	.ep-barras li { grid-template-columns: 1fr auto; gap: 6px 12px; }
	.ep-barras li span { grid-column: 1; grid-row: 1; }
	.ep-barras li strong { grid-column: 2; grid-row: 1; }
	.ep-barras i { grid-column: 1 / -1; grid-row: 2; height: 14px; }
}
body.ep .ep-fuente p { font-size: 13px; color: var(--ep-tinta-2); }
.ep-barras-fecha { margin: 0; font-size: 12px; color: var(--ep-tinta-2); }
body.ep .ep-paquete { background: var(--ep-papel); border: 2px solid var(--ep-tinta); border-radius: 26px; }
body.ep .ep-paquete-titulo .elementor-heading-title { font-family: var(--ep-display); font-weight: 400; font-size: clamp(24px, 2.6vw, 30px); line-height: 1.15; }

/* ---------- Cabeceras de páginas internas ---------- */
body.ep .ep-cab::before { content: ""; position: absolute; width: 520px; aspect-ratio: 1; right: -140px; bottom: -260px; border-radius: 50%; opacity: .16; background: repeating-radial-gradient(circle, transparent 0 14px, var(--ep-fibra) 14px 28px); pointer-events: none; }
body.ep .ep-foto-cab img { border-radius: 26px; aspect-ratio: 4 / 5; object-fit: cover; width: 100%; max-width: 340px; box-shadow: 14px 14px 0 var(--ep-amarillo); }
body.ep .ep-foto-cab { text-align: right; }
body.ep .ep-cab-logo { text-align: left; }
body.ep .ep-cab-logo img { width: min(320px, 70%); filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .35)); }
@media (max-width: 767px) {
	body.ep .ep-foto-cab { text-align: left; }
	body.ep .ep-foto-cab img { max-width: 260px; }
}

/* ---------- Mi historia ---------- */
body.ep .ep-paso { display: grid !important; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-content: center; column-gap: 28px; background: var(--ep-papel); border: 1px solid var(--ep-linea); border-radius: 26px; }
body.ep .ep-paso > .elementor-element { grid-column: 1; width: auto; }
body.ep .ep-paso > .ep-paso-foto { grid-column: 2; grid-row: 1 / span 4; align-self: center; }
body.ep .ep-paso-foto img { border-radius: 18px; aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
body.ep .ep-paso-nombre .elementor-heading-title { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ep-azul); }
body.ep .ep-paso-titulo .elementor-heading-title { font-family: var(--ep-display); font-weight: 400; font-size: clamp(26px, 3vw, 34px); line-height: 1.1; color: var(--ep-azul); }
body.ep .ep-paso-texto p { color: var(--ep-tinta-2); }
body.ep .ep-historia-lista .ep-paso:not(.ep-activo) { display: none !important; }
body.ep .ep-historia-lista .ep-paso { animation: ep-entrar .35s ease; }
.ep-paradas { position: relative; display: flex; justify-content: space-between; gap: 8px; padding-block: 18px; margin-bottom: 8px; }
.ep-paradas::before { content: ""; position: absolute; left: 4%; right: 4%; top: 31px; border-top: 3px dashed var(--ep-tinta); opacity: .35; }
body.ep .ep-paradas button { position: relative; display: grid; justify-items: center; gap: 8px; font-weight: 700; font-size: 14px; flex: 1; min-width: 0; text-align: center; line-height: 1.2; }
.ep-paradas i { width: 26px; height: 26px; border-radius: 50%; background: var(--ep-papel); border: 4px solid var(--ep-tinta); box-sizing: border-box; transition: transform .3s, background .3s; }
.ep-paradas button[aria-selected="true"] i { background: var(--ep-rojo); transform: scale(1.35); }
@media (max-width: 767px) {
	body.ep .ep-paso { grid-template-columns: minmax(0, 1fr); padding: 20px !important; }
	body.ep .ep-paso > .ep-paso-foto { grid-column: 1; grid-row: auto; }
	body.ep .ep-paradas button { font-size: clamp(11px, 3.4vw, 14px); overflow-wrap: break-word; }
	.ep-paradas { gap: 4px; }
}

/* En los medios */
body.ep .ep-medio { background: var(--ep-papel); border: 1px solid var(--ep-linea); border-left: 6px solid var(--ep-rojo); border-radius: 18px; padding: 20px; transition: transform .2s; }
body.ep .ep-medio:hover { transform: translateY(-4px); }
body.ep .ep-medio p { margin: 0 0 8px; }
body.ep .ep-medio-fecha { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ep-tinta-2); }
body.ep .ep-medio-titulo { font-size: 17px; font-weight: 700; line-height: 1.3; }
body.ep .ep-medio a { font-weight: 700; color: var(--ep-azul); font-size: 14px; text-decoration: none; }

/* Libro y valores */
body.ep .ep-libro { background-color: var(--ep-fibra); border-radius: 26px; }
body.ep .ep-portada-libro { width: 150px; flex: none; }
body.ep .ep-portada-libro p { aspect-ratio: 2 / 3; border-radius: 4px 12px 12px 4px; background: linear-gradient(90deg, rgba(0, 0, 0, .25) 0 8px, transparent 8px), var(--ep-noche); color: var(--ep-papel); display: grid; place-items: center; text-align: center; padding: 16px; margin: 0; font-family: var(--ep-display); font-size: 20px; line-height: 1.1; box-shadow: 10px 12px 0 var(--ep-rojo); }
body.ep .ep-libro-texto { flex: 1 1 0; min-width: 0; }
body.ep .ep-libro-texto p { color: var(--ep-tinta-2); }
body.ep .ep-valor { border-radius: 22px; }
body.ep .ep-valor-titulo .elementor-heading-title { font-family: var(--ep-display); font-weight: 400; font-size: 30px; }
body.ep .ep-valores > .ep-valor:nth-child(3n+1) { background-color: var(--ep-amarillo); }
body.ep .ep-valores > .ep-valor:nth-child(3n+2) { background-color: var(--ep-azul); color: var(--ep-papel); }
body.ep .ep-valores > .ep-valor:nth-child(3n) { background-color: var(--ep-rojo); color: var(--ep-papel); }
@media (max-width: 767px) { body.ep .ep-libro { align-items: flex-start; } }

/* ---------- Viajes: mapa y fotos ---------- */
.ep-mapa { display: grid; gap: 22px; }
.ep-mapa-caja { background: var(--ep-noche); border-radius: 28px; padding: 18px; width: 100%; max-width: 760px; justify-self: center; box-sizing: border-box; }
.ep-mapa-caja svg { width: 100%; height: auto; display: block; max-height: 78vh; }
.ep-pais { fill: #26306E; stroke: #0A1238; stroke-width: .8; transition: fill .3s, opacity .2s; }
.ep-pais-visitado { fill: var(--ep-amarillo); cursor: pointer; }
.ep-pais-casa { fill: #FF4A55; cursor: pointer; }
.ep-pais-tierra { fill: url(#ep-rayas-co); cursor: pointer; }
.ep-pais-pronto { stroke: var(--ep-fibra); stroke-width: 1.6; stroke-dasharray: 4 3; cursor: pointer; }
.ep-pais[data-pais]:hover { opacity: .85; }
.ep-pais.ep-activo { stroke: #fff; stroke-width: 2.6; stroke-dasharray: none; filter: drop-shadow(0 0 8px rgba(255, 255, 255, .6)); }
.ep-pais:focus-visible { outline: none; stroke: #fff; stroke-width: 3; }
.ep-leyenda { display: flex; flex-wrap: wrap; gap: 8px 16px; color: #fff; font-size: 13px; font-weight: 600; padding: 8px 6px 2px; margin: 0; }
.ep-leyenda span { display: inline-flex; align-items: center; gap: 6px; }
.ep-leyenda i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; box-sizing: border-box; }
.ep-ley-tierra { background: linear-gradient(var(--ep-amarillo) 0 50%, var(--ep-azul) 50% 75%, var(--ep-rojo) 75%); }
.ep-ley-casa { background: #FF4A55; }
.ep-ley-visitado { background: var(--ep-amarillo); }
.ep-ley-pronto { border: 2px dashed var(--ep-fibra); }
.ep-mapa-cuentas { display: flex; gap: 28px; flex-wrap: wrap; }
.ep-mapa-cuentas p { display: grid; margin: 0; }
.ep-mapa-cuentas strong { font-family: var(--ep-display); font-size: 44px; line-height: 1; font-weight: 400; }
.ep-mapa-cuentas span { font-size: 14px; color: var(--ep-tinta-2); font-weight: 600; }

body.ep .ep-viaje { position: relative; border-radius: 26px; overflow: hidden; min-height: 440px; justify-content: flex-end; color: #fff; background: var(--ep-noche); }
body.ep .ep-viaje::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 35%, rgba(6, 10, 36, .85)); pointer-events: none; z-index: 1; }
body.ep .ep-viaje > .elementor-element { position: relative; z-index: 2; }
body.ep .ep-viaje > .ep-viaje-foto { position: absolute; inset: 0; z-index: 0; margin: 0; }
body.ep .ep-viaje-foto * { height: 100%; }
body.ep .ep-viaje-foto img { width: 100%; height: 100%; object-fit: cover; }
body.ep .ep-viaje-estado { width: auto; }
body.ep .ep-viaje-estado p { display: inline-block; margin: 0; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; background: #fff; color: var(--ep-tinta); }
body.ep .ep-viaje-pronto .ep-viaje-estado p { background: transparent; color: #fff; border: 2px dashed #fff; }
body.ep .ep-viaje-pais .elementor-heading-title { font-family: var(--ep-display); font-weight: 400; font-size: clamp(34px, 4.6vw, 52px); line-height: 1; }
body.ep .ep-viaje-texto p { max-width: 48ch; opacity: .92; }
body.ep .ep-viaje-texto li { background: rgba(255, 255, 255, .18); border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 600; }
body.ep .ep-viajes-lista { display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding-bottom: 4px; }
body.ep .ep-viajes-lista::-webkit-scrollbar { display: none; }
body.ep .ep-viajes-lista > .ep-viaje { flex: 0 0 min(100%, 520px) !important; width: min(100%, 520px) !important; scroll-snap-align: start; }
.ep-bandera-colombia { background: linear-gradient(#FFC400 0 50%, #1747D1 50% 75%, #E5202E 75%) !important; }
.ep-bandera-paraguay { background: linear-gradient(#D52B1E 0 33%, #fff 33% 66%, #0038A8 66%) !important; }
.ep-bandera-panama { background: conic-gradient(from 90deg at 50% 50%, #D21034 0 25%, #fff 25% 50%, #005293 50% 75%, #fff 75%) !important; }
.ep-bandera-venezuela { background: linear-gradient(#FFCC00 0 33%, #00247D 33% 66%, #CF142B 66%) !important; }
.ep-bandera-ecuador { background: linear-gradient(#FFDD00 0 50%, #034EA2 50% 75%, #ED1C24 75%) !important; }
.ep-bandera-peru { background: linear-gradient(90deg, #D91023 0 33%, #fff 33% 66%, #D91023 66%) !important; }
.ep-bandera-argentina { background: linear-gradient(#74ACDF 0 33%, #fff 33% 66%, #74ACDF 66%) !important; }
.ep-bandera-chile { background: linear-gradient(90deg, #0039A6 0 40%, transparent 40%) top / 100% 50% no-repeat, linear-gradient(#fff 0 50%, #D52B1E 50%) !important; }
.ep-bandera-uruguay { background: repeating-linear-gradient(#fff 0 11.1%, #0038A8 11.1% 22.2%) !important; }
.ep-bandera-brasil { background: radial-gradient(circle, #002776 0 18%, transparent 18.5%), conic-gradient(from 45deg, #FEDF00 0 25%, #009C3B 25% 50%, #FEDF00 50% 75%, #009C3B 75%) !important; }
.ep-bandera-bolivia { background: linear-gradient(#D52B1E 0 33%, #F9E300 33% 66%, #007934 66%) !important; }
.ep-controles { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; }
.ep-flechas { display: flex; gap: 10px; }
body.ep .ep-flechas button { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--ep-tinta); background: var(--ep-papel); font-size: 20px; }
body.ep .ep-flechas button:hover { background: var(--ep-amarillo); color: var(--ep-tinta); }
.ep-puntos { display: flex; gap: 6px; flex-wrap: wrap; }
body.ep .ep-puntos button { position: relative; width: 10px; height: 10px; border-radius: 50%; padding: 0; background: var(--ep-linea); }
/* El punto se ve chico, pero se toca en un área de 44 px de alto. */
body.ep .ep-puntos button::after { content: ""; position: absolute; inset: -17px -3px; }
body.ep .ep-puntos button[aria-current="true"],
body.ep .ep-puntos button[aria-current="true"]:hover { background: var(--ep-tinta); width: 26px; border-radius: 6px; }

/* ---------- Contacto ---------- */
body.ep .ep-caja { background: var(--ep-papel); border: 1px solid var(--ep-linea); border-radius: 26px; }
body.ep .ep-caja-titulo .elementor-heading-title { font-size: 24px; font-weight: 700; }
.ep-correo { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; background: var(--ep-noche); color: #fff; border-radius: 18px; padding: 16px 16px 16px 20px; }
body.ep .ep-correo-texto { font-size: clamp(16px, 2.4vw, 20px); font-weight: 700; text-decoration: none; overflow-wrap: anywhere; min-width: 0; color: #fff; }
body.ep .ep-copiar { background: var(--ep-amarillo); color: var(--ep-tinta); font-weight: 700; font-size: 14px; padding: 10px 18px; min-height: 44px; border-radius: 999px; }
body.ep .ep-copiar:hover { background: var(--ep-amarillo); color: var(--ep-tinta); }
.ep-redes-lista { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
body.ep .ep-redes-lista a { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; background: var(--ep-papel-2); text-decoration: none; font-weight: 600; min-width: 0; transition: background .2s; }
body.ep .ep-redes-lista a:hover { background: var(--ep-amarillo); }
.ep-redes-lista svg { width: 26px; height: 26px; flex: none; }
.ep-redes-lista span { min-width: 0; overflow-wrap: anywhere; }
.ep-redes-lista small, .ep-redes-tarjetas small { display: block; font-weight: 500; font-size: 12px; color: var(--ep-tinta-2); overflow-wrap: anywhere; }
@media (max-width: 420px) { .ep-redes-lista { grid-template-columns: 1fr; } }
.ep-form { display: grid; gap: 14px; }
.ep-form p { display: grid; gap: 6px; margin: 0; }
.ep-form label { font-size: 14px; font-weight: 600; }
body.ep .ep-form input,
body.ep .ep-form select,
body.ep .ep-form textarea { font: inherit; font-size: 15px; padding: 12px 14px; border-radius: 14px; border: 2px solid var(--ep-linea); background: var(--ep-papel); color: var(--ep-tinta); width: 100%; box-sizing: border-box; }
body.ep .ep-form input:focus,
body.ep .ep-form select:focus,
body.ep .ep-form textarea:focus { outline: none; border-color: var(--ep-azul); }
.ep-form-fila { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .ep-form-fila { grid-template-columns: 1fr; } }
.ep-form .ep-trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
body.ep .ep-form button[type="submit"] { justify-self: start; padding: 13px 24px; border-radius: 999px; font-weight: 700; }
.ep-form-error { color: var(--ep-rojo); font-size: 14px; font-weight: 600; }
.ep-form-ok { background: #E8F7EE; border-radius: 16px; padding: 18px 20px; }
.ep-form-ok p { margin: 6px 0 0; }

/* ---------- Banda "Mis redes sociales" y pie ---------- */
.ep-redes-final { background-color: var(--ep-rojo); padding: 72px 16px; }
.ep-redes-final::before { content: ""; position: absolute; inset: 0; opacity: .12; background: repeating-radial-gradient(circle at 12% 120%, transparent 0 26px, #fff 26px 29px); pointer-events: none; }
.ep-redes-final-dentro { max-width: var(--ep-ancho); margin: 0 auto; display: grid; gap: 30px; }
body.ep .ep-redes-final h2 { font-family: var(--ep-display); font-weight: 400; font-size: clamp(38px, 6.4vw, 78px); line-height: 1; text-align: center; text-shadow: 0 4px 0 rgba(0, 0, 0, .18); margin: 0; color: #fff; }
.ep-redes-tarjetas { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; }
body.ep .ep-redes-tarjetas a { display: grid; justify-items: center; gap: 8px; padding: 20px 10px; border-radius: 22px; background: #fff; color: var(--ep-tinta); text-decoration: none; font-weight: 700; font-size: 15px; transition: transform .25s cubic-bezier(.3, 1.6, .5, 1), background .2s; text-align: center; min-width: 0; }
body.ep .ep-redes-tarjetas a:hover { transform: translateY(-6px); background: var(--ep-amarillo); }
.ep-redes-tarjetas svg { width: 34px; height: 34px; }
.ep-redes-tarjetas span { display: grid; gap: 4px; }
.ep-redes-tarjetas em { font-style: normal; font-size: 13px; font-weight: 800; color: var(--ep-rojo); font-variant-numeric: tabular-nums; }
@media (max-width: 1000px) { .ep-redes-tarjetas { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 560px) { .ep-redes-tarjetas { grid-template-columns: repeat(2, 1fr); } .ep-redes-tarjetas a:last-child:nth-child(odd) { grid-column: 1 / -1; } }
.ep-pie { background: var(--ep-tinta); color: #fff; position: relative; }
.ep-pie::before { content: ""; position: absolute; left: 0; right: 0; top: -26px; height: 26px; background: linear-gradient(135deg, var(--ep-tinta) 25%, transparent 25%) -13px 0 / 26px 26px, linear-gradient(225deg, var(--ep-tinta) 25%, transparent 25%) -13px 0 / 26px 26px, linear-gradient(315deg, var(--ep-tinta) 25%, transparent 25%) 0 0 / 26px 26px, linear-gradient(45deg, var(--ep-tinta) 25%, transparent 25%) 0 0 / 26px 26px, var(--ep-fibra); }
.ep-pie-dentro { max-width: var(--ep-ancho); margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; padding: 36px 16px; }
.ep-pie-marca { display: grid; gap: 6px; }
.ep-pie small { opacity: .65; }
.ep-pie-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 18px; }
body.ep .ep-pie-menu a { display: inline-block; min-width: 44px; padding: 10px 0; text-decoration: none; opacity: .8; }
body.ep .ep-pie-menu a:hover { opacity: 1; color: var(--ep-amarillo); }

/* ---------- Blog ---------- */
.ep-main { display: block; }
.ep-entradas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 1000px) { .ep-entradas { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 580px) { .ep-entradas { grid-template-columns: minmax(0, 1fr); } }
.ep-tarjeta { background: #fff; border-radius: 22px; overflow: hidden; border: 1px solid var(--ep-linea); display: grid; grid-template-rows: auto 1fr; transition: transform .25s, box-shadow .25s; }
.ep-tarjeta:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -22px rgba(10, 18, 56, .45); }
.ep-tarjeta-foto { display: grid; place-items: center; aspect-ratio: 4 / 3; overflow: hidden; background: repeating-radial-gradient(circle at 0 100%, transparent 0 24px, rgba(255, 255, 255, .14) 24px 27px), linear-gradient(135deg, var(--ep-azul), var(--ep-noche)); color: #fff; text-decoration: none; }
.ep-tarjeta-foto img { width: 100%; height: 100%; object-fit: cover; }
body.ep .ep-tarjeta-foto span { font-family: var(--ep-display); font-size: 28px; padding: 16px; text-align: center; color: #fff; }
.ep-tarjeta-cuerpo { padding: 18px 20px 22px; display: grid; gap: 6px; align-content: start; }
.ep-tarjeta-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; font-weight: 600; color: var(--ep-tinta-2); margin: 0; }
.ep-tarjeta-meta span { color: var(--ep-azul); }
body.ep .ep-tarjeta h2 { font-family: var(--ep-texto); font-size: 19px; font-weight: 700; line-height: 1.3; margin: 0; }
body.ep .ep-tarjeta h2 a { text-decoration: none; }
.ep-tarjeta-cuerpo > p:last-child { font-size: 15px; color: var(--ep-tinta-2); margin: 0; }
.ep-blog-vacio { display: grid; gap: 14px; justify-items: center; text-align: center; padding: 64px 24px; border: 3px dashed var(--ep-linea); border-radius: 28px; background: rgba(255, 255, 255, .85); }
.ep-paginacion { margin-top: 32px; }
.ep-paginacion .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.ep-paginacion .page-numbers { padding: 8px 14px; border-radius: 999px; border: 2px solid var(--ep-tinta); text-decoration: none; font-weight: 600; }
.ep-paginacion .current { background: var(--ep-tinta); color: #fff; }
.ep-entrada-cuerpo { max-width: 760px; width: 100%; }
.ep-entrada-foto { margin: 0; }
.ep-entrada-foto img { border-radius: 22px; width: 100%; }
.ep-entrada-texto { font-size: 18px; line-height: 1.7; overflow-wrap: break-word; }
.ep-entrada-texto > * { max-width: 100%; }
.ep-entrada-texto h2 { font-size: clamp(26px, 5.6vw, 36px); }
.ep-entrada-texto h3 { font-size: clamp(21px, 4.6vw, 26px); }
.ep-entrada-texto :is(ul, ol) { padding-left: 1.3em; margin: 0 0 1.2em; }
.ep-entrada-texto li { margin: .35em 0; }
.ep-entrada-texto figure { margin: 1.6em 0; }
.ep-entrada-texto figcaption { font-size: 14px; color: var(--ep-tinta-2); text-align: center; margin-top: 8px; }
.ep-entrada-texto iframe { width: 100%; border: 0; border-radius: 16px; }
.ep-entrada-texto :is(.wp-block-embed.is-type-video, .wp-embed-aspect-16-9) iframe { aspect-ratio: 16 / 9; height: auto; }
/* Los códigos de Instagram y TikTok traen un ancho mínimo fijo: en celular se ajustan a la pantalla. */
body.ep .ep-entrada-texto :is(.instagram-media, iframe.instagram-media) { min-width: 0 !important; width: 100% !important; max-width: min(540px, 100%) !important; margin-inline: auto !important; }
body.ep .ep-entrada-texto .tiktok-embed { min-width: 0 !important; max-width: min(605px, 100%) !important; margin-inline: auto !important; }
.ep-entrada-texto table { display: block; overflow-x: auto; border-collapse: collapse; }
.ep-entrada-texto :is(td, th) { border: 1px solid var(--ep-linea); padding: 8px 12px; }
.ep-entrada-texto pre { overflow-x: auto; }
.ep-entrada-texto blockquote:not(.instagram-media):not(.tiktok-embed) { margin: 1.5em 0; padding: 4px 0 4px 18px; border-left: 4px solid var(--ep-amarillo); }
.ep-entrada-texto hr { border: 0; border-top: 2px dashed var(--ep-linea); margin: 2em 0; }
/* Tabla de contenido de Rank Math */
.ep-entrada-texto .wp-block-rank-math-toc-block { background: var(--ep-papel-2); border-radius: 18px; padding: 18px 22px; margin: 1.5em 0; }
.ep-entrada-texto .wp-block-rank-math-toc-block :is(h2, h3) { margin-top: 0; font-size: 22px; }
.ep-entrada-texto .wp-block-rank-math-toc-block :is(ul, ol) { margin-bottom: 0; }
@media (max-width: 767px) { .ep-entrada-texto { font-size: 17px; } }
.ep-entrada-texto h2, .ep-entrada-texto h3 { font-family: var(--ep-display); font-weight: 400; line-height: 1.15; margin: 1.4em 0 .5em; }
.ep-entrada-texto a { color: var(--ep-azul); overflow-wrap: anywhere; }
.ep-entrada-texto img { border-radius: 16px; height: auto; }

/* ---------- Ilustraciones que aparecen y desaparecen ---------- */
body.ep .ep-cultura { position: relative; overflow: hidden; }
body.ep .ep-cultura > :not(.ep-capa) { position: relative; z-index: 1; }
.ep-capa { position: absolute; inset: 0; z-index: 0; pointer-events: none; color: var(--ep-tinta); }
.ep-oscuro > .ep-capa { color: #fff; }
.ep-pieza { position: absolute; width: var(--t); translate: -50% -50%; }
.ep-pieza > div { opacity: 0; animation: ep-aparecer .9s cubic-bezier(.3, 1.5, .5, 1) forwards, ep-flotar 3.6s ease-in-out .9s infinite alternate; }
.ep-pieza.ep-sale > div { animation: ep-desaparecer .9s ease forwards; }
.ep-pieza svg, .ep-pieza img { width: 100%; height: auto; display: block; }
@keyframes ep-aparecer { from { opacity: 0; transform: scale(.35); } to { opacity: var(--o); transform: scale(1); } }
@keyframes ep-flotar { from { translate: 0 0; } to { translate: 0 -12px; } }
@keyframes ep-desaparecer { from { opacity: var(--o); transform: scale(1); } to { opacity: 0; transform: scale(.5); } }
body.ep .ep-cultura-modo { cursor: pointer; }

/* ---------- En el editor de Elementor se ve todo, sin animar ---------- */
body.elementor-editor-active .ep-solo-py { display: block !important; opacity: .55; }
body.elementor-editor-active .ep-marco > .ep-solo-py { display: none !important; }
body.elementor-editor-active .ep-desplegable { display: block !important; }

@media (prefers-reduced-motion: reduce) {
	.ep-pieza > div, body.ep .ep-pista p::before { animation: none; opacity: var(--o); }
	.ep-cara-in, body.ep .ep-prog, .ep-tarjeta, body.ep .elementor-button, .ep-boton, body.ep .ep-marco { transition: none; }
	body.ep .ep-viajes-lista { scroll-behavior: auto; }
}

/* ---------- Lo último del blog (Inicio) ---------- */
.ep-ultimas { display: grid; gap: 28px; }
.ep-ultimas-cabeza { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; }
.ep-ultimas-cabeza > div { display: grid; gap: 12px; }
body.ep .ep-tarjeta h3 { font-family: var(--ep-texto); font-size: 19px; font-weight: 700; line-height: 1.3; margin: 0; }
body.ep .ep-tarjeta h3 a { text-decoration: none; }
body:not(.elementor-editor-active) .ep-ultimas-seccion:not(:has(.ep-ultimas)) { display: none; }
.ep-ultimas-aviso { padding: 28px; border: 3px dashed var(--ep-linea); border-radius: 22px; text-align: center; font-weight: 600; color: var(--ep-tinta-2); }

/* ---------- Celular y tablet: que todo encaje ----------
 * Reglas de seguridad que también cuidan lo que edites en Elementor: nada puede ser más
 * ancho que la pantalla y una palabra larga nunca se corta (además, el tema achica la letra
 * de un título si una palabra no entra; ver "Títulos que no caben" en el JS). */
body.ep { overflow-x: clip; }
:where(body.ep) :where(.e-con, .e-con-inner, .elementor-widget, .elementor-widget-container, .ep-dentro > *) { min-width: 0; }
:where(body.ep) :where(.elementor-widget) { max-width: 100%; }
:where(body.ep) :where(h1, h2, h3, h4, h5, h6, .elementor-heading-title, p, li, a, td, th, figcaption, blockquote, label, span) { overflow-wrap: break-word; }
:where(body.ep) :where(iframe, video, embed, object) { max-width: 100%; }
.ep-midiendo { overflow-wrap: normal !important; word-break: normal !important; }

/* Diccionario en celular: una fila que se desliza en vez de 8 tarjetas una debajo de otra. */
@media (max-width: 767px) {
	body.ep .ep-grilla.ep-palabras { display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: -16px; padding: 4px 16px 12px; scroll-padding-inline: 16px; gap: 12px !important; }
	body.ep .ep-grilla.ep-palabras::-webkit-scrollbar { display: none; }
	body.ep .ep-grilla.ep-palabras > .elementor-element { flex: 0 0 80% !important; width: 80% !important; max-width: 300px; scroll-snap-align: start; }
}
