/* ==========================================================================
   III EMA Congreso — sistema de diseño (identidad verde conservada)
   Se carga después de Divi. Todo está acotado a clases .ema-* para no
   afectar la tienda ni las plantillas que aún no se rediseñan.
   ========================================================================== */

:root {
	--ema-green-950: #0b241a;
	--ema-green-900: #0f2e21;
	--ema-green-800: #143d2b;
	--ema-green-600: #1f6144;
	--ema-green-500: #1d7c57;
	--ema-green-text: #17694a; /* texto verde sobre fondos claros: 5.8:1 sobre menta */
	--ema-mint-100: #e8f1ec;
	--ema-mint-50: #f3f8f5;
	--ema-cream: #f6f4ee;
	--ema-ink: #14201a;
	--ema-ink-soft: #46544c;
	--ema-line: rgba(20, 61, 43, 0.16);
	--ema-white: #ffffff;
	--ema-font: "Montserrat", "Helvetica Neue", Arial, sans-serif;
	--ema-radius: 14px;
	--ema-wrap: 1180px;
	--ema-gutter: clamp(20px, 5vw, 56px);
	--ema-space-section: clamp(64px, 9vw, 128px);
}

/* ---- Estructura: secciones y filas de Divi ------------------------------ */

.et_pb_section.ema-section {
	padding: var(--ema-space-section) var(--ema-gutter);
}
body .et_pb_section.ema-section > .et_pb_row.et_pb_row {
	width: 100%;
	max-width: var(--ema-wrap) !important;
	padding: 0;
	margin-left: auto;
	margin-right: auto;
}
.et_pb_section.ema-section .et_pb_row .et_pb_column {
	margin-bottom: 0;
}
.ema-section .et_pb_text_inner > *:first-child { margin-top: 0; }
.ema-section .et_pb_text_inner > *:last-child { margin-bottom: 0; }

.et_pb_section.ema-light { background: var(--ema-cream); }
.et_pb_section.ema-mint { background: var(--ema-mint-100); }
.et_pb_section.ema-white { background: var(--ema-white); }
.et_pb_section.ema-dark { background: var(--ema-green-800); }
.et_pb_section.ema-deep { background: var(--ema-green-950); }

/* ---- Tipografía ---------------------------------------------------------- */

.ema-section,
.ema-section p,
.ema-section li,
.ema-section a {
	font-family: var(--ema-font);
}
.ema-section h1,
.ema-section h2,
.ema-section h3,
.ema-section h4 {
	font-family: var(--ema-font);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.08;
	padding-bottom: 0;
	color: var(--ema-green-800);
	text-wrap: balance;
}
.ema-section h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); margin: 0 0 0.5em; }
.ema-section h3 { font-size: clamp(1.1rem, 1.6vw, 1.35rem); line-height: 1.25; letter-spacing: -0.01em; margin: 0 0 0.4em; }
.ema-section p { font-size: clamp(1rem, 1.15vw, 1.0625rem); line-height: 1.7; color: var(--ema-ink-soft); padding-bottom: 0; margin: 0 0 1em; max-width: 62ch; }
.ema-dark h2, .ema-dark h3, .ema-deep h2, .ema-deep h3, .ema-hero h1, .ema-cta h2 { color: var(--ema-white); }
.ema-dark p, .ema-deep p, .ema-hero p, .ema-cta p { color: rgba(255, 255, 255, 0.82); }

.ema-kicker {
	font-size: 0.78rem !important;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--ema-green-text) !important;
	margin: 0 0 1.25rem !important;
	max-width: none !important;
}
.ema-dark .ema-kicker, .ema-deep .ema-kicker, .ema-hero .ema-kicker, .ema-cta .ema-kicker { color: #9fd9bd !important; }

.ema-head { max-width: 720px; margin-bottom: clamp(32px, 4.5vw, 56px); }
.ema-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.ema-head--center p { margin-left: auto; margin-right: auto; }

/* ---- Botones ------------------------------------------------------------- */

.ema-btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2rem; }
.ema-section a.ema-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 0 28px;
	border-radius: 999px;
	font-size: 0.9rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
	border: 2px solid transparent;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.ema-section a.ema-btn:active { transform: scale(0.98); }
.ema-section a.ema-btn--solid { background: var(--ema-white); color: var(--ema-green-800); }
.ema-section a.ema-btn--solid:hover { background: var(--ema-mint-100); }
.ema-section a.ema-btn--green { background: var(--ema-green-600); color: var(--ema-white); }
.ema-section a.ema-btn--green:hover { background: var(--ema-green-500); }
.ema-section a.ema-btn--ghost { border-color: rgba(255, 255, 255, 0.55); color: var(--ema-white); }
.ema-section a.ema-btn--ghost:hover { border-color: var(--ema-white); background: rgba(255, 255, 255, 0.1); }
.ema-section a.ema-btn--line { border-color: var(--ema-green-600); color: var(--ema-green-600); }
.ema-section a.ema-btn--line:hover { background: var(--ema-green-600); color: var(--ema-white); }
.ema-section a.ema-btn:focus-visible { outline: 3px solid #9fd9bd; outline-offset: 3px; }

/* ---- Hero ---------------------------------------------------------------- */

.et_pb_section.ema-hero {
	min-height: min(92vh, 860px);
	display: flex;
	align-items: flex-end;
	padding-top: clamp(150px, 18vw, 210px);
	padding-bottom: clamp(48px, 6vw, 80px);
	background-color: var(--ema-green-900);
	background-image:
		linear-gradient(180deg, rgba(11, 36, 26, 0.72) 0%, rgba(11, 36, 26, 0.35) 38%, rgba(11, 36, 26, 0.92) 100%),
		linear-gradient(90deg, rgba(20, 61, 43, 0.85) 0%, rgba(20, 61, 43, 0.2) 70%),
		url("/wp-content/uploads/2025/09/hero_1_08b3b2.jpg");
	background-size: cover;
	background-position: center 30%;
}
.et_pb_section.ema-hero > .et_pb_row { width: 100%; }
.ema-hero h1 {
	font-size: clamp(2.35rem, 5.6vw, 5rem);
	line-height: 1.02;
	letter-spacing: -0.03em;
	margin: 0 0 1.5rem;
	max-width: 17ch;
}
.ema-hero .ema-lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.6; max-width: 54ch; }
.ema-facts {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0;
	margin: clamp(40px, 6vw, 72px) 0 0;
	padding: 0;
	border-top: 1px solid rgba(255, 255, 255, 0.28);
}
.ema-facts li {
	padding: 22px 24px 0 0;
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.45;
	color: rgba(255, 255, 255, 0.85);
}
.ema-facts strong { display: block; font-size: clamp(1.25rem, 2vw, 1.75rem); font-weight: 700; color: var(--ema-white); letter-spacing: -0.01em; margin-bottom: 4px; }

/* ---- Pilares ------------------------------------------------------------- */

.ema-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 7vw, 96px); align-items: start; }
.ema-pillars { list-style: none; margin: 0; padding: 0; counter-reset: pillar; }
.ema-pillars li {
	counter-increment: pillar;
	display: grid;
	grid-template-columns: 56px minmax(0, 1fr);
	gap: 8px 24px;
	padding: 28px 0;
	margin: 0;
	border-top: 1px solid var(--ema-line);
}
.ema-pillars li:last-child { border-bottom: 1px solid var(--ema-line); }
.ema-pillars li::before {
	content: counter(pillar, decimal-leading-zero);
	grid-row: span 2;
	font-size: 0.95rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	color: var(--ema-green-text);
	padding-top: 4px;
}
.ema-pillars h3 { margin: 0; font-size: clamp(1.25rem, 2vw, 1.6rem); }
.ema-pillars p { margin: 0; }

/* ---- Detalles del evento ------------------------------------------------- */

.ema-details { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px); }
.ema-details > div { padding-top: 22px; border-top: 3px solid var(--ema-green-600); }
.ema-details h3 { font-size: 1.15rem; }
.ema-details dl { margin: 0; }
.ema-details dt { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ema-green-text); margin-top: 14px; }
.ema-details dd { margin: 4px 0 0; font-size: 0.98rem; line-height: 1.55; color: var(--ema-ink); }

/* ---- Comité científico --------------------------------------------------- */

.ema-people { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(28px, 4vw, 48px) clamp(20px, 3vw, 36px); }
.ema-person { margin: 0; text-align: left; }
.ema-person img { display: block; width: 100%; max-width: 168px; aspect-ratio: 1; object-fit: cover; border-radius: 50%; background: var(--ema-mint-100); margin: 0 0 18px; }
.ema-person strong { display: block; font-size: 1.05rem; line-height: 1.3; color: var(--ema-green-800); font-weight: 700; }
.ema-person span { display: block; font-size: 0.92rem; color: var(--ema-ink-soft); margin-top: 4px; line-height: 1.45; }
.ema-person--lead { grid-column: span 2; display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 28px; align-items: center; }
.ema-person--lead img { max-width: 200px; margin: 0; }
.ema-person--lead strong { font-size: 1.35rem; }
.ema-person em { display: block; font-style: normal; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ema-green-text); margin-bottom: 8px; }

/* ---- Marcas aliadas: carrusel continuo de logos (sin plugins) ------------ */

.ema-marquee {
	--ema-logo-h: 44px;
	--ema-gap: clamp(48px, 6vw, 88px);
	position: relative;
	overflow: hidden;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ema-marquee__track {
	display: flex;
	width: max-content;
	animation: ema-scroll 70s linear infinite;
}
.ema-marquee:hover .ema-marquee__track,
.ema-marquee:focus-within .ema-marquee__track { animation-play-state: paused; }
.ema-marquee__set { display: flex; align-items: center; gap: var(--ema-gap); padding-right: var(--ema-gap); list-style: none; margin: 0; }
.ema-marquee__set li { margin: 0; padding: 0; flex: none; display: flex; align-items: center; }
.ema-marquee__set img { display: block; height: var(--ema-logo-h); width: auto; max-width: 220px; object-fit: contain; opacity: 0.88; transition: opacity 0.2s ease; }
.ema-marquee__set img:hover { opacity: 1; }
@keyframes ema-scroll { to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
	.ema-marquee { -webkit-mask-image: none; mask-image: none; overflow-x: auto; }
	.ema-marquee__track { animation: none; }
	.ema-marquee__set[aria-hidden="true"] { display: none; }
}

/* ---- Instituciones ------------------------------------------------------- */

.ema-orgs { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(32px, 6vw, 80px); }
.ema-orgs img { display: block; height: clamp(64px, 8vw, 96px); width: auto; }

/* ---- Hoteles ------------------------------------------------------------- */

.ema-hotels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 32px); }
.ema-hotel { background: var(--ema-white); border-radius: var(--ema-radius); padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.ema-hotel h3 { margin: 0; font-size: 1.3rem; }
.ema-hotel p { margin: 0 0 18px; font-size: 0.95rem; }
.ema-hotel .ema-btn { margin-top: auto; }

/* ---- CTA final (pie de página global) ----------------------------------- */

.et_pb_section.ema-cta { background: var(--ema-green-600); padding: 0; }
body .et_pb_section.ema-cta > .et_pb_row.et_pb_row { max-width: none !important; width: 100% !important; padding: 0 !important; }
.ema-cta .ema-cta__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: clamp(360px, 38vw, 520px); }
.ema-cta .ema-cta__img { background: url("/wp-content/uploads/2025/09/hero_3_464817.jpg") center / cover no-repeat; min-height: 260px; }
.ema-cta .ema-cta__body { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: clamp(40px, 6vw, 96px) var(--ema-gutter); }
.ema-cta h2 { color: #fff; font-size: clamp(2rem, 3.8vw, 3.25rem); margin: 0 0 1rem; max-width: 14ch; }
.ema-cta .ema-btns { margin-top: 1.25rem; }
.ema-cta p { margin: 0; }

/* ---- Encabezado (Theme Builder) ------------------------------------------ */

body .ema-header .et_pb_row.et_pb_row.et_pb_row { padding-left: var(--ema-gutter) !important; padding-right: var(--ema-gutter) !important; }
.ema-header .et_pb_column, .ema-header .et_pb_menu { width: 100%; max-width: none; }
.ema-header .et_pb_menu .et_pb_menu_inner_container { width: 100%; max-width: var(--ema-wrap); margin: 0 auto; justify-content: space-between; }
.ema-header .et_pb_menu .et-menu > li { padding-left: 14px; padding-right: 14px; }
.ema-header .et_pb_menu .et-menu a { letter-spacing: 0.04em; transition: opacity 0.2s ease; }
.ema-header .et_pb_menu .et-menu a:hover { opacity: 0.75; }
.ema-header .et_pb_menu .et-menu li.cta-btn > a,
.ema-header .et_pb_menu .et-menu li.menu-item-cta > a {
	border: 2px solid #fff; border-radius: 999px; padding: 10px 22px !important;
}

/* ---- Pie de página --------------------------------------------------------- */

.et_pb_section.ema-footer { background: var(--ema-green-950); padding-top: clamp(56px, 7vw, 96px); padding-bottom: clamp(40px, 5vw, 64px); }
.ema-footer__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1.7fr); gap: clamp(32px, 5vw, 80px); }
.ema-footer h3 { color: #fff !important; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; margin: 0 0 1.25rem; }
.ema-footer p, .ema-footer li, .ema-footer dd { color: rgba(255, 255, 255, 0.75); font-size: 0.95rem; line-height: 1.6; }
.ema-footer ul, .ema-footer dl { list-style: none; margin: 0; padding: 0; }
.ema-footer li { margin: 0 0 0.6rem; padding: 0; }
.ema-footer dt { color: #9fd9bd; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; margin-top: 1rem; }
.ema-footer dt:first-child { margin-top: 0; }
.ema-footer dd { margin: 4px 0 0; overflow-wrap: anywhere; font-size: 0.92rem; }
.ema-footer a { color: #fff; text-decoration: none; background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size 0.25s ease; }
.ema-footer a:hover { background-size: 100% 1px; }
.ema-footer a:focus-visible { outline: 2px solid #9fd9bd; outline-offset: 3px; }
.ema-footer__brand img { display: block; width: 200px; height: auto; margin-bottom: 1.25rem; }
.ema-footer__brand p { max-width: 34ch; }
.ema-footer__social { display: flex; gap: 20px; margin-top: 1.25rem !important; }
.et_pb_section.ema-footer-bar { background: #071a12; padding: 18px var(--ema-gutter); }
body .et_pb_section.ema-footer-bar > .et_pb_row.et_pb_row { max-width: var(--ema-wrap) !important; width: 100%; padding: 0; margin: 0 auto; }
.ema-footer-bar p { margin: 0; color: rgba(255, 255, 255, 0.6); font-size: 0.85rem; max-width: none; }

/* ---- Responsive ---------------------------------------------------------- */

@media (max-width: 980px) {
	.ema-split, .ema-hotels, .ema-footer__grid { grid-template-columns: 1fr; }
	.ema-cta .ema-cta__inner { grid-template-columns: 1fr; }
	.ema-cta .ema-cta__img { min-height: 220px; }
	.ema-details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ema-people { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.ema-person--lead { grid-column: span 3; }
}
@media (max-width: 640px) {
	.ema-facts { grid-template-columns: 1fr; }
	.ema-facts li { padding: 18px 0 0; }
	.ema-details { grid-template-columns: 1fr; }
	.ema-people { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ema-person--lead { grid-column: span 2; grid-template-columns: 1fr; }
	.ema-person img { max-width: 132px; }
	.ema-pillars li { grid-template-columns: 40px minmax(0, 1fr); gap: 6px 14px; }
	.ema-section a.ema-btn { width: 100%; }
	.ema-marquee { --ema-logo-h: 36px; }
}

@media (max-width: 640px) {
	.ema-hero h1 { font-size: clamp(1.65rem, 7.4vw, 2.4rem); max-width: none; hyphens: auto; overflow-wrap: break-word; }
}

.ema-section .et_pb_text_inner ul.ema-facts, .ema-section .et_pb_text_inner ul.ema-pillars,
.ema-section .et_pb_text_inner ul.ema-people, .ema-section .et_pb_text_inner ul.ema-marquee__set,
.ema-section .et_pb_text_inner ul.ema-footer__social { list-style: none; padding-left: 0; }
.ema-hero { --ema-hero-h1: clamp(2.35rem, 5vw, 4.4rem); }
.ema-hero h1 { font-size: var(--ema-hero-h1); }
@media (min-width: 981px) { .et_pb_section.ema-hero { min-height: min(100svh, 920px); padding-top: 180px; } }

/* ---- Cabeceras de página interior ------------------------------------------ */

.et_pb_section.ema-subhero {
	min-height: clamp(380px, 52vh, 520px);
	display: flex;
	align-items: flex-end;
	padding-top: clamp(150px, 15vw, 190px);
	padding-bottom: clamp(40px, 5vw, 64px);
	background-color: var(--ema-green-900);
	background-size: cover;
	background-position: center 25%;
}
.ema-subhero--programa { background-image: linear-gradient(180deg, rgba(11, 36, 26, 0.7), rgba(11, 36, 26, 0.9)), linear-gradient(90deg, rgba(20, 61, 43, 0.8), rgba(20, 61, 43, 0.25)), url("/wp-content/uploads/2025/09/hero_2_8b8f6d.jpg"); }
.ema-subhero--pagos { background-image: linear-gradient(180deg, rgba(11, 36, 26, 0.7), rgba(11, 36, 26, 0.9)), linear-gradient(90deg, rgba(20, 61, 43, 0.8), rgba(20, 61, 43, 0.25)), url("/wp-content/uploads/2025/09/hero_4_109730.jpg"); }
.ema-subhero--registro { background-image: linear-gradient(180deg, rgba(11, 36, 26, 0.7), rgba(11, 36, 26, 0.9)), linear-gradient(90deg, rgba(20, 61, 43, 0.8), rgba(20, 61, 43, 0.25)), url("/wp-content/uploads/2025/09/hero_3_464817.jpg"); }
.ema-subhero h1 { color: #fff; font-size: clamp(2.1rem, 4.6vw, 3.75rem); line-height: 1.04; letter-spacing: -0.03em; margin: 0 0 1rem; max-width: 20ch; }
.ema-subhero .ema-lead { color: rgba(255, 255, 255, 0.85); font-size: clamp(1.05rem, 1.4vw, 1.2rem); max-width: 54ch; margin: 0; }
.ema-subhero .ema-btns { margin-top: 1.75rem; }

/* ---- Programa: embed responsivo ------------------------------------------------- */

.ema-embed { position: relative; width: 100%; aspect-ratio: 16 / 11.7; border-radius: var(--ema-radius); overflow: hidden; background: var(--ema-mint-100); box-shadow: 0 1px 2px rgba(15, 46, 33, 0.08), 0 12px 32px rgba(15, 46, 33, 0.1); }
.ema-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---- Registro ----------------------------------------------------------------------- */

body .et_pb_section.ema-section > .et_pb_row.ema-register { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.ema-register > .et_pb_column { width: 100% !important; margin: 0 !important; }
.ema-register__form { background: var(--ema-white); border-radius: var(--ema-radius); padding: clamp(24px, 3.5vw, 48px); box-shadow: 0 1px 2px rgba(15, 46, 33, 0.08), 0 12px 32px rgba(15, 46, 33, 0.08); }
.ema-register__aside h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.ema-register__aside h3 { margin-top: 2rem; }
.ema-checks { list-style: none; margin: 0 0 2rem; padding: 0; }
.ema-section .et_pb_text_inner ul.ema-checks { list-style: none; padding-left: 0; }
.ema-checks li { position: relative; padding: 0 0 0 30px; margin: 0 0 0.9rem; font-size: 0.98rem; line-height: 1.55; color: var(--ema-ink); }
.ema-checks li::before { content: ""; position: absolute; left: 0; top: 0.35em; width: 16px; height: 9px; border-left: 3px solid var(--ema-green-500); border-bottom: 3px solid var(--ema-green-500); transform: rotate(-45deg) scale(0.9); transform-origin: center; }

/* Gravity Forms */
.ema-register__form .gform_wrapper { margin: 0; }
.ema-register__form .gform_title { font-family: var(--ema-font); color: var(--ema-green-800); font-size: 1.5rem; margin: 0 0 1rem; }
.ema-register__form .gfield_label { font-family: var(--ema-font); font-weight: 600; font-size: 0.9rem; color: var(--ema-ink); }
.ema-register__form input[type="text"], .ema-register__form input[type="email"], .ema-register__form input[type="tel"], .ema-register__form input[type="number"], .ema-register__form select, .ema-register__form textarea {
	font-family: var(--ema-font); min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--ema-line); border-radius: 10px; background: #fff; color: var(--ema-ink); font-size: 1rem; box-shadow: none;
}
.ema-register__form input:focus, .ema-register__form select:focus, .ema-register__form textarea:focus { outline: 3px solid rgba(29, 124, 87, 0.25); border-color: var(--ema-green-500); }
.ema-register__form .gform_button, .ema-register__form .gform_next_button, .ema-register__form .gform_previous_button {
	background: var(--ema-green-600) !important; color: #fff !important; border: 0 !important; border-radius: 999px !important; min-height: 52px; padding: 0 32px !important; font-family: var(--ema-font); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.9rem; cursor: pointer; transition: background-color 0.2s ease;
}
.ema-register__form .gform_button:hover, .ema-register__form .gform_next_button:hover { background: var(--ema-green-500) !important; }

/* ---- Tienda / tarifas (módulo Tienda de Divi) ---------------------------------------- */

.ema-shop ul.products { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: clamp(16px, 2vw, 28px); margin: 0 !important; padding: 0; }
.ema-shop ul.products::before, .ema-shop ul.products::after { display: none !important; }
.ema-shop ul.products li.product { width: auto !important; float: none !important; margin: 0 !important; padding: 20px; background: var(--ema-cream); border-radius: var(--ema-radius); display: flex; flex-direction: column; text-align: left; transition: transform 0.25s ease, box-shadow 0.25s ease; }
.ema-shop ul.products li.product:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(15, 46, 33, 0.14); }
.ema-shop ul.products li.product img { border-radius: 10px; margin: 0 0 16px !important; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.ema-shop .woocommerce-loop-product__title { font-family: var(--ema-font); font-size: 1.05rem !important; font-weight: 700 !important; line-height: 1.3; color: var(--ema-green-800) !important; padding: 0 !important; margin: 0 0 6px; text-align: left !important; }
.ema-shop .price { font-family: var(--ema-font); font-size: 1rem !important; font-weight: 700 !important; color: var(--ema-green-600) !important; }

@media (max-width: 980px) {
	body .et_pb_section.ema-section > .et_pb_row.ema-register { grid-template-columns: 1fr; }
}

/* ---- Prioridad sobre el preset de texto de Divi (h2 = 24px) ------------------------ */

body .et_pb_section.ema-section .et_pb_text_inner h1,
body .et_pb_section.ema-section .et_pb_text_inner h2,
body .et_pb_section.ema-section .et_pb_text_inner h3 { font-family: var(--ema-font); font-weight: 700; letter-spacing: -0.02em; padding-bottom: 0; }
body .et_pb_section.ema-section .et_pb_text_inner h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); line-height: 1.08; margin: 0 0 0.5em; }
body .et_pb_section.ema-section .et_pb_text_inner h3 { font-size: clamp(1.1rem, 1.6vw, 1.35rem); line-height: 1.25; margin: 0 0 0.4em; }
body .et_pb_section.ema-section .et_pb_text_inner .ema-pillars h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); margin: 0; }
body .et_pb_section.ema-section .et_pb_text_inner .ema-details h3 { font-size: 1.15rem; }
body .et_pb_section.ema-section .et_pb_text_inner .ema-hotel h3 { font-size: 1.3rem; margin: 0; }
body .et_pb_section.ema-section .et_pb_text_inner .ema-register__aside h2,
body .et_pb_section.ema-section .et_pb_text_inner h2.ema-aside-title { font-size: clamp(1.5rem, 2.4vw, 2rem); }
body .et_pb_section.ema-cta .et_pb_text_inner h2 { font-size: clamp(2rem, 3.8vw, 3.25rem); color: #fff; margin: 0 0 1rem; max-width: 14ch; line-height: 1.05; }
body .et_pb_section.ema-footer .et_pb_text_inner h3 { font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; color: #fff; margin: 0 0 1.25rem; }
body .et_pb_section.ema-subhero .et_pb_text_inner h1 { font-size: clamp(2.1rem, 4.6vw, 3.75rem); color: #fff; }
body .et_pb_section.ema-dark .et_pb_text_inner h2, body .et_pb_section.ema-deep .et_pb_text_inner h2 { color: #fff; }
body .et_pb_section.ema-subhero .ema-kicker { color: #9fd9bd !important; }
.ema-person strong, .ema-person--lead strong { font-family: var(--ema-font); }

/* Tarjetas de producto: título y precio */
body .ema-shop.et_pb_shop .woocommerce ul.products li.product h2.woocommerce-loop-product__title,
body .ema-shop.et_pb_shop .woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-family: var(--ema-font); font-size: 1.1rem !important; font-weight: 700 !important; text-transform: none !important; letter-spacing: -0.01em; line-height: 1.3; color: var(--ema-green-800) !important; text-align: left !important; padding: 0 !important; margin: 0 0 6px;
}

/* ==========================================================================
   Tienda: carrito, finalizar compra y mi cuenta (WooCommerce)
   ========================================================================== */

body.woocommerce-checkout, body.woocommerce-cart, body.woocommerce-account { font-family: var(--ema-font); background: var(--ema-white); }
body.woocommerce-checkout #main-content, body.woocommerce-cart #main-content, body.woocommerce-account #main-content { padding-top: clamp(24px, 4vw, 56px); padding-bottom: clamp(48px, 6vw, 96px); }
body.woocommerce-checkout .woocommerce, body.woocommerce-cart .woocommerce, body.woocommerce-account .woocommerce { font-family: var(--ema-font); color: var(--ema-ink); }
body.woocommerce-page .woocommerce h1, body.woocommerce-page .woocommerce h2, body.woocommerce-page .woocommerce h3,
body.woocommerce-checkout .et_pb_title_container h1, body.woocommerce-checkout h1.entry-title { font-family: var(--ema-font); font-weight: 700; letter-spacing: -0.02em; color: var(--ema-green-800); }
body.woocommerce-checkout h3, body.woocommerce-checkout #order_review_heading { font-size: 1.35rem; margin-bottom: 1rem; }

/* Avisos */
.woocommerce .woocommerce-message, .woocommerce .woocommerce-info, .woocommerce .woocommerce-error {
	background: var(--ema-mint-100); color: var(--ema-ink); border: 0; border-left: 4px solid var(--ema-green-600); border-radius: 10px; padding: 16px 20px; font-size: 0.95rem;
}
.woocommerce .woocommerce-error { background: #fdecea; border-left-color: #c0392b; }
.woocommerce .woocommerce-message::before, .woocommerce .woocommerce-info::before { color: var(--ema-green-600); }
.woocommerce .woocommerce-message a.button, .woocommerce .woocommerce-info a { color: var(--ema-green-600); font-weight: 600; }

/* Campos */
.woocommerce form .form-row label { font-family: var(--ema-font); font-weight: 600; font-size: 0.9rem; color: var(--ema-ink); margin-bottom: 6px; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select, .woocommerce .select2-container .select2-selection--single {
	font-family: var(--ema-font); min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--ema-line); border-radius: 10px; background: #fff; color: var(--ema-ink); font-size: 1rem;
}
.woocommerce form .form-row input.input-text:focus, .woocommerce form .form-row textarea:focus { outline: 3px solid rgba(29, 124, 87, 0.25); border-color: var(--ema-green-500); }

/* Tablas de pedido y carrito */
.woocommerce table.shop_table { border: 1.5px solid var(--ema-line); border-radius: var(--ema-radius); border-collapse: separate; border-spacing: 0; overflow: hidden; }
.woocommerce table.shop_table th, .woocommerce table.shop_table td { padding: 14px 18px; border-color: var(--ema-line); font-size: 0.95rem; }
.woocommerce table.shop_table th { font-weight: 700; color: var(--ema-green-800); }

/* Pago */
.woocommerce-checkout #payment { background: var(--ema-mint-50); border-radius: var(--ema-radius); border: 1.5px solid var(--ema-line); }
.woocommerce-checkout #payment ul.payment_methods { border-bottom: 1px solid var(--ema-line); padding: 18px 22px; }
.woocommerce-checkout #payment div.payment_box { background: transparent; color: var(--ema-ink); }
.woocommerce-checkout #payment div.payment_box::before { display: none; }
.woocommerce-checkout #payment div.form-row { padding: 18px 22px 22px; }

/* Botones */
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit,
.woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce #place_order {
	font-family: var(--ema-font); background: var(--ema-green-600); color: #fff; border: 2px solid var(--ema-green-600); border-radius: 999px; min-height: 48px; padding: 0 28px; font-weight: 700; font-size: 0.88rem; letter-spacing: 0.04em; text-transform: uppercase; line-height: 44px; transition: background-color 0.2s ease, border-color 0.2s ease;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover, .woocommerce #place_order:hover { background: var(--ema-green-500); border-color: var(--ema-green-500); color: #fff; }
.woocommerce a.button::after, .woocommerce button.button::after, .woocommerce #place_order::after { display: none; }
.woocommerce #place_order { float: none; width: 100%; font-size: 1rem; margin-top: 8px; }
.woocommerce a.button:focus-visible, .woocommerce button.button:focus-visible, .woocommerce #place_order:focus-visible { outline: 3px solid rgba(29, 124, 87, 0.35); outline-offset: 3px; }

/* Sin llamado a la acción final en compra, carrito, cuenta, pagos ni registro */
body.woocommerce-checkout .ema-cta, body.woocommerce-cart .ema-cta, body.woocommerce-account .ema-cta,
body.page-id-88 .ema-cta, body.page-id-90 .ema-cta { display: none !important; }

/* Avisos de WooCommerce por encima de los estilos de Divi */
body .woocommerce .woocommerce-message, body .woocommerce .woocommerce-info, body .woocommerce-page .woocommerce-message, body .woocommerce-page .woocommerce-info,
body .woocommerce-NoticeGroup .woocommerce-message {
	background: var(--ema-mint-100) !important; color: var(--ema-ink) !important; border-top: 0 !important; border-left: 4px solid var(--ema-green-600) !important; border-radius: 10px; padding: 16px 20px 16px 52px !important; font-size: 0.95rem; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
body .woocommerce .woocommerce-message::before, body .woocommerce .woocommerce-info::before { color: var(--ema-green-600) !important; top: 50%; transform: translateY(-50%); left: 18px; }
body .woocommerce .woocommerce-message a.button { margin: 0; float: none; order: 2; }
body .woocommerce .woocommerce-info a, body .woocommerce .woocommerce-message a:not(.button) { color: var(--ema-green-600) !important; font-weight: 600; }

/* El color de fondo del tema (verde) hacía ilegibles carrito y cuenta */
body.woocommerce-page, body.woocommerce-page.custom-background, body.woocommerce-page #page-container,
body.woocommerce-page #main-content { background-color: var(--ema-white) !important; }
body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button, body.woocommerce-cart .wc-proceed-to-checkout .button {
	display: block; width: 100%; background: var(--ema-green-600) !important; border: 2px solid var(--ema-green-600) !important; color: #fff !important; border-radius: 999px !important; text-align: center; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.9rem; padding: 0 28px !important; line-height: 48px; min-height: 52px;
}
body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover { background: var(--ema-green-500) !important; }
body.woocommerce-cart .woocommerce-cart-form, body.woocommerce-cart .cart_totals { color: var(--ema-ink); }
body.woocommerce-account .woocommerce-form-login, body.woocommerce-account .woocommerce-form-register { border: 1.5px solid var(--ema-line); border-radius: var(--ema-radius); padding: clamp(20px, 3vw, 36px); }
body.woocommerce-account .woocommerce-form-login .woocommerce-form-login__rememberme { display: flex; align-items: center; gap: 8px; }
body.woocommerce-account .lost_password a { color: var(--ema-green-600); }

/* Encabezado sólido en páginas sin cabecera fotográfica (tienda, cuenta, textos legales, 404) */
body:not(.home):not(.page-id-86):not(.page-id-88):not(.page-id-90):not(.page-id-94) .ema-header .et_pb_row.et_pb_row { background: var(--ema-green-800) !important; }
body.custom-background { background-color: var(--ema-white) !important; }

@media (max-width: 640px) {
	.ema-hero h1 { font-size: clamp(1.55rem, 6.6vw, 2.2rem); hyphens: manual; }
	.ema-footer dd { font-size: 0.82rem; }
}

/* ---- Pagos: tarjetas de tarifa, pasos y ayuda ------------------------------------------ */

.ema-pay-options .ema-head { margin-bottom: clamp(28px, 4vw, 48px); }
.ema-shop ul.products li.product { background: var(--ema-white); border: 1.5px solid var(--ema-line); padding: 0 !important; overflow: hidden; }
.ema-shop ul.products li.product:hover { border-color: var(--ema-green-500); }
.ema-shop ul.products li.product a.woocommerce-LoopProduct-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.ema-shop ul.products li.product img { background: var(--ema-mint-100); border-radius: 0 !important; margin: 0 0 20px !important; aspect-ratio: 1 / 1 !important; object-fit: contain !important; padding: 12px; }
.ema-shop .woocommerce-loop-product__title { padding: 0 22px !important; }
.ema-shop ul.products li.product .price { display: block; padding: 0 22px; margin: 4px 0 18px; font-size: 1.6rem !important; letter-spacing: -0.02em; line-height: 1.1; }
.ema-shop ul.products li.product .price .woocommerce-Price-currencySymbol { font-size: 0.7em; margin-right: 2px; font-weight: 600; }
.ema-shop ul.products li.product a.woocommerce-LoopProduct-link::after {
	content: "Inscribirme"; display: flex; align-items: center; justify-content: center; margin: auto 22px 22px; min-height: 48px; border-radius: 999px; background: var(--ema-green-600); color: #fff;
	font-family: var(--ema-font); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; transition: background-color 0.2s ease;
}
.ema-shop ul.products li.product:hover a.woocommerce-LoopProduct-link::after { background: var(--ema-green-500); }

.ema-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); counter-reset: step; }
.ema-section .et_pb_text_inner ol.ema-steps { list-style: none; padding-left: 0; }
.ema-steps li { counter-increment: step; margin: 0; padding-top: 22px; border-top: 3px solid var(--ema-green-600); position: relative; }
.ema-steps li::before { content: counter(step); display: block; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.12em; color: var(--ema-green-text); margin-bottom: 10px; }
.ema-steps li::before { content: "0" counter(step); }
body .et_pb_section.ema-section .et_pb_text_inner .ema-steps h3 { font-size: clamp(1.2rem, 1.8vw, 1.45rem); margin: 0 0 0.5em; }
.ema-steps p { margin: 0; font-size: 0.98rem; }

.ema-help { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 6vw, 88px); align-items: center; }
.ema-help__list { margin: 0; display: grid; gap: 22px; }
.ema-help__list > div { padding-bottom: 20px; border-bottom: 1px solid var(--ema-line); }
.ema-help__list > div:last-child { border-bottom: 0; padding-bottom: 0; }
.ema-help__list dt { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ema-green-text); }
.ema-help__list dd { margin: 6px 0 0; font-size: 1.05rem; overflow-wrap: anywhere; }
.ema-section .ema-help__list dd a:not(.ema-btn) { color: var(--ema-green-800); text-decoration: none; background-image: linear-gradient(currentColor, currentColor); background-size: 100% 1px; background-position: 0 100%; background-repeat: no-repeat; }
.ema-section .ema-help__list dd a:not(.ema-btn):hover { color: var(--ema-green-text); }

@media (max-width: 980px) {
	.ema-steps { grid-template-columns: 1fr; }
	.ema-help { grid-template-columns: 1fr; }
}

body .ema-shop.et_pb_shop .woocommerce ul.products li.product .woocommerce-loop-product__title { padding: 0 22px !important; }

body .ema-shop.et_pb_shop .woocommerce ul.products { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); width: 100%; margin: 0 !important; padding: 0 !important; }
body .ema-shop.et_pb_shop .woocommerce ul.products li.product { width: 100% !important; max-width: none !important; margin: 0 !important; float: none !important; clear: none !important; }
body .ema-shop.et_pb_shop .woocommerce ul.products li.product .woocommerce-loop-product__title { padding: 0 22px !important; margin-bottom: 4px; }
@media (max-width: 980px) { body .ema-shop.et_pb_shop .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { body .ema-shop.et_pb_shop .woocommerce ul.products { grid-template-columns: minmax(0, 1fr); } }
body .ema-header .et_pb_row.et_pb_row.et_pb_row { padding-top: 12px !important; padding-bottom: 12px !important; }

/* ---- Documentos legales (privacidad y condiciones de uso) ------------------------------- */

.ema-subhero--legal { background-image: linear-gradient(135deg, var(--ema-green-950), var(--ema-green-800)); min-height: clamp(300px, 38vh, 400px); }
.ema-legal { display: grid; grid-template-columns: minmax(220px, 280px) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.ema-legal__toc { position: sticky; top: 120px; max-height: calc(100vh - 150px); overflow: auto; padding-right: 8px; }
body .et_pb_section.ema-section .et_pb_text_inner .ema-legal__toc h2 { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ema-green-text); margin: 0 0 14px; }
.ema-legal__toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--ema-line); }
.ema-section .et_pb_text_inner .ema-legal__toc ol { list-style: none; padding-left: 0; }
.ema-legal__toc li { margin: 0; }
.ema-legal__toc a { display: block; padding: 7px 0 7px 16px; margin-left: -2px; border-left: 2px solid transparent; font-size: 0.88rem; line-height: 1.4; color: var(--ema-ink-soft); text-decoration: none; transition: color 0.15s ease, border-color 0.15s ease; }
.ema-legal__toc a:hover, .ema-legal__toc a:focus-visible { color: var(--ema-green-600); border-left-color: var(--ema-green-500); }
.ema-legal__body { max-width: 780px; }
.ema-legal__body section { padding: 0 0 clamp(28px, 3.5vw, 44px); margin: 0 0 clamp(28px, 3.5vw, 44px); border-bottom: 1px solid var(--ema-line); scroll-margin-top: 120px; }
.ema-legal__body section:last-child { border-bottom: 0; }
body .et_pb_section.ema-section .et_pb_text_inner .ema-legal__body h2 { font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.25; margin: 0 0 0.8em; }
.ema-legal__body p, .ema-legal__body li { font-size: 1rem; line-height: 1.75; max-width: none; color: var(--ema-ink); }
.ema-legal__body p { margin: 0 0 1em; }
.ema-legal__body ul { margin: 0 0 1em; padding-left: 1.2em; list-style: disc; }
.ema-section .et_pb_text_inner .ema-legal__body ul { list-style: disc; padding-left: 1.2em; }
.ema-legal__body li { margin: 0 0 0.5em; padding: 0; }
.ema-legal__body a { color: var(--ema-green-600); text-underline-offset: 3px; }
.ema-legal__summary { background: var(--ema-mint-100); border-radius: var(--ema-radius); padding: clamp(20px, 3vw, 32px); margin: 0 0 clamp(32px, 4vw, 48px); }
body .et_pb_section.ema-section .et_pb_text_inner .ema-legal__summary h2 { font-size: 1.15rem; margin: 0 0 0.8em; }
.ema-legal__summary ul { margin: 0 0 1em; }
.ema-legal__note { font-size: 0.85rem !important; color: var(--ema-ink-soft) !important; margin: 0 !important; }
@media (max-width: 980px) {
	.ema-legal { grid-template-columns: 1fr; }
	.ema-legal__toc { position: static; max-height: none; padding: 0 0 8px; border-bottom: 1px solid var(--ema-line); }
}

/* Aviso de aceptación en Pagos */
.ema-consent { max-width: 62ch; margin: clamp(24px, 3vw, 36px) auto 0; text-align: center; font-size: 0.88rem !important; color: var(--ema-ink-soft) !important; }
.ema-consent a { color: var(--ema-green-600); }

/* ---- Preguntas frecuentes ----------------------------------------------------------------- */

.ema-faq__list { border-top: 1px solid var(--ema-line); }
.ema-faq__item { border-bottom: 1px solid var(--ema-line); }
.ema-faq__item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 0; font-family: var(--ema-font); font-weight: 700; font-size: clamp(1.02rem, 1.5vw, 1.2rem); line-height: 1.35; color: var(--ema-green-800); }
.ema-faq__item summary::-webkit-details-marker { display: none; }
.ema-faq__item summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 2.5px solid var(--ema-green-500); border-bottom: 2.5px solid var(--ema-green-500); transform: rotate(45deg) translateY(-3px); transition: transform 0.2s ease; }
.ema-faq__item[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.ema-faq__item summary:hover { color: var(--ema-green-text); }
.ema-faq__item summary:focus-visible { outline: 3px solid rgba(29, 124, 87, 0.35); outline-offset: 4px; border-radius: 4px; }
.ema-faq__a { padding: 0 0 22px; }
.ema-faq__a p { margin: 0; font-size: 1rem; line-height: 1.7; max-width: 60ch; }
.ema-faq__a a { color: var(--ema-green-600); }
.ema-section .et_pb_text_inner .ema-faq__list { list-style: none; padding-left: 0; }

/* ---- Pagos: ajuste fino de las tarjetas de tarifa ------------------------------------------- */

body .ema-shop.et_pb_shop.et_pb_shop .woocommerce ul.products li.product a.woocommerce-LoopProduct-link h2.woocommerce-loop-product__title {
	padding: 0 !important; margin: 0 22px 6px !important; width: auto !important; text-align: left !important; font-size: 1.1rem !important; line-height: 1.3 !important; overflow-wrap: anywhere;
}
body .ema-shop.et_pb_shop.et_pb_shop .woocommerce ul.products li.product a.woocommerce-LoopProduct-link .price {
	display: block !important; padding: 0 !important; margin: 0 22px 18px !important; font-size: clamp(1.35rem, 1.9vw, 1.6rem) !important; white-space: nowrap; line-height: 1.1 !important;
}
body .ema-shop.et_pb_shop.et_pb_shop .woocommerce ul.products li.product a.woocommerce-LoopProduct-link::after { margin: auto 22px 22px !important; }
body .ema-shop.et_pb_shop.et_pb_shop .woocommerce ul.products li.product img { margin: 0 0 20px !important; }
/* tablet: dos columnas con aire; móvil: una columna */
body .ema-section p.ema-consent { max-width: 62ch; margin: clamp(24px, 3vw, 36px) auto 0 !important; text-align: center; }
@media (min-width: 769px) { body .ema-shop.et_pb_shop.et_pb_shop .woocommerce ul.products li.product a.woocommerce-LoopProduct-link h2.woocommerce-loop-product__title { min-height: 2.6em; } }

/* Rejilla de tarifas: 4 columnas en escritorio, 2 en tableta, 1 en móvil */
@media (min-width: 900px) { body .ema-shop.et_pb_shop .woocommerce ul.products { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 521px) and (max-width: 899px) { body .ema-shop.et_pb_shop .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { body .ema-shop.et_pb_shop .woocommerce ul.products { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 899px) { body .ema-shop.et_pb_shop.et_pb_shop .woocommerce ul.products li.product img { aspect-ratio: 4 / 3 !important; } }


/* ==========================================================================
   Accesibilidad: enlaces, foco, salto de contenido y control del carrusel
   ========================================================================== */

/* Los enlaces dentro de texto se distinguen sin depender solo del color (WCAG 1.4.1) */
.ema-section p a:not(.ema-btn), .ema-section li a:not(.ema-btn), .ema-section dd a:not(.ema-btn), .ema-section .ema-head a:not(.ema-btn) {
	color: var(--ema-green-600); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; background-image: none;
}
.ema-section p a:not(.ema-btn):hover, .ema-section li a:not(.ema-btn):hover, .ema-section dd a:not(.ema-btn):hover { color: var(--ema-green-800); text-decoration-thickness: 2px; }
.ema-dark p a:not(.ema-btn), .ema-deep p a:not(.ema-btn), .ema-hero p a:not(.ema-btn), .ema-subhero p a:not(.ema-btn) { color: #fff; }
.ema-footer li a, .ema-footer dd a { text-decoration: none; }

/* Foco visible en todos los enlaces y controles */
.ema-section a:focus-visible, .ema-header a:focus-visible, .ema-footer a:focus-visible, .ema-footer-bar a:focus-visible,
.ema-section button:focus-visible, .ema-section summary:focus-visible { outline: 3px solid var(--ema-green-500); outline-offset: 3px; border-radius: 3px; }
.ema-dark a:focus-visible, .ema-deep a:focus-visible, .ema-hero a:focus-visible, .ema-subhero a:focus-visible, .ema-cta a:focus-visible,
.ema-header a:focus-visible, .ema-footer a:focus-visible, .ema-footer-bar a:focus-visible { outline-color: #9fd9bd; }

/* Enlace para saltar al contenido */
.ema-skip-link { position: fixed; left: 12px; top: -80px; z-index: 100000; background: #fff; color: var(--ema-green-800); font: 700 0.9rem/1 var(--ema-font); padding: 14px 20px; border-radius: 999px; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25); text-decoration: none; transition: top 0.15s ease; }
.ema-skip-link:focus { top: 12px; outline: 3px solid var(--ema-green-500); outline-offset: 2px; }

/* Pausa del carrusel de logos (WCAG 2.2.2) */
.ema-marquee.is-paused .ema-marquee__track { animation-play-state: paused; }
.ema-marquee__toggle { display: block; margin: 20px auto 0; background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, 0.5); border-radius: 999px; padding: 8px 18px; font: 600 0.8rem/1 var(--ema-font); letter-spacing: 0.04em; cursor: pointer; transition: border-color 0.2s ease, background-color 0.2s ease; }
.ema-marquee__toggle:hover { border-color: #fff; background: rgba(255, 255, 255, 0.1); }
.ema-marquee__toggle:focus-visible { outline: 3px solid #9fd9bd; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .ema-marquee__toggle { display: none; } }

/* Enlaces de texto en WooCommerce (checkout, carrito, cuenta) */
body.woocommerce-page .woocommerce a:not(.button):not(.checkout-button) { color: var(--ema-green-600); text-decoration: underline; text-underline-offset: 3px; }
body.woocommerce-page .woocommerce a:not(.button):not(.checkout-button):hover { color: var(--ema-green-800); }
.woocommerce-checkout #payment div.payment_box a, .woocommerce-checkout .woocommerce-privacy-policy-text a { color: var(--ema-green-600); }

/* Excepciones del bloque de enlaces: pie de página (fondo oscuro) y tienda */
body .et_pb_section.ema-section.ema-footer li a:not(.ema-btn), body .et_pb_section.ema-section.ema-footer dd a:not(.ema-btn),
body .et_pb_section.ema-footer-bar a { color: #fff; text-decoration: none; }
body .et_pb_section.ema-section.ema-footer .ema-footer__brand p a { color: #fff; }
.wc-block-grid__product-title, .wc-block-grid__product .wc-block-grid__product-link { color: var(--ema-green-800); font-family: var(--ema-font); font-weight: 700; font-size: 0.95rem; text-decoration: none; }
.woocommerce-result-count, .woocommerce-ordering select { color: #4a5650; }
.woocommerce form .show-password-input, .woocommerce-page .show-password-input { min-width: 24px; min-height: 24px; }
.wc-block-grid__product-price, .wc-block-grid__product .price { color: var(--ema-green-600); font-weight: 700; }
body .woocommerce-result-count { color: #4a5650 !important; }

/* Foco visible también en el menú principal (Divi lo anula con outline: 0) */
body .ema-header a:focus-visible, body .ema-header .et-menu a:focus-visible, body .ema-header .et_pb_menu__logo a:focus-visible,
body .et_pb_menu .et-menu-nav a:focus-visible, body .et_pb_menu_inner_container button:focus-visible {
	outline: 3px solid #9fd9bd !important; outline-offset: 4px !important; border-radius: 4px;
}
body .ema-header .et-menu li.cta-btn > a:focus-visible { outline-offset: 5px !important; }

/* ---- Formulario de registro: listas desplegables y archivos ------------------------------------ */

/* La regla "background" anterior reiniciaba la flecha del select y se repetía en mosaico */
.ema-register__form select, .ema-register__form .gfield select {
	-webkit-appearance: none; appearance: none;
	background-color: #fff;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1.5l6 6 6-6' fill='none' stroke='%2317694a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
	background-size: 14px 9px;
	padding: 10px 44px 10px 14px;
	text-overflow: ellipsis;
	white-space: nowrap;
	overflow: hidden;
	line-height: 1.4;
	cursor: pointer;
}
.ema-register__form select:focus { outline: 3px solid rgba(29, 124, 87, 0.25); border-color: var(--ema-green-500); }
#field_1_7 { grid-column: 1 / -1 !important; }   /* Modalidad: ancho completo para que se lea el texto */
.ema-register__form input[type="file"] {
	width: 100%; min-height: 48px; padding: 8px; border: 1.5px dashed var(--ema-line); border-radius: 10px; background: var(--ema-mint-50); font-family: var(--ema-font); font-size: 0.9rem; color: var(--ema-ink);
}
.ema-register__form input[type="file"]::file-selector-button {
	margin-right: 14px; padding: 10px 18px; border: 0; border-radius: 999px; background: var(--ema-green-600); color: #fff; font: 700 0.78rem/1 var(--ema-font); letter-spacing: 0.04em; text-transform: uppercase; cursor: pointer;
}
.ema-register__form input[type="file"]::file-selector-button:hover { background: var(--ema-green-500); }
.ema-register__form .gform_fileupload_rules, .ema-register__form .gfield_description { font-size: 0.82rem; color: #4a5650; }
.ema-register__form input[type="checkbox"], .ema-register__form input[type="radio"] { accent-color: var(--ema-green-600); width: 18px; height: 18px; }
html body #page-container .ema-header .et_pb_menu a:focus-visible,
html body #page-container .et-l--header .et_pb_menu a:focus-visible,
html body #page-container .et-l--header .et_pb_menu__logo a:focus-visible {
	outline: 3px solid #9fd9bd !important; outline-offset: 4px !important; box-shadow: 0 0 0 3px rgba(11, 36, 26, 0.55);
}
html body .et-l--header a:focus-visible, html body .et-l--header .et_pb_menu a:focus-visible, html body .et_pb_menu .et-menu-nav li a:focus-visible {
	outline: 3px solid #9fd9bd !important; outline-offset: 4px !important;
}

/* ==========================================================================
   Formulario de registro — campos, archivos y buscador de país
   ========================================================================== */

/* Bordes de campos con contraste suficiente (WCAG 1.4.11: 3:1 como mínimo) */
.ema-register__form input[type="text"], .ema-register__form input[type="email"], .ema-register__form input[type="tel"],
.ema-register__form input[type="number"], .ema-register__form select, .ema-register__form textarea { border-color: #68807a; }
.ema-register__form input::placeholder, .ema-register__form textarea::placeholder { color: #5b6b63; opacity: 1; }

/* Subida de archivos: zona clara, botón secundario y texto legible */
.ema-register__form .ginput_container_fileupload { margin-top: 6px; }
.ema-register__form input[type="file"] {
	display: block; width: 100%; box-sizing: border-box; min-height: 68px; padding: 14px 16px; margin: 0;
	border: 2px dashed #5f7d6f; border-radius: 12px; background: var(--ema-mint-50);
	font: 500 0.95rem/1.4 var(--ema-font); color: #33423a; cursor: pointer;
	transition: border-color 0.2s ease, background-color 0.2s ease;
}
.ema-register__form input[type="file"]:hover { border-color: var(--ema-green-600); background: var(--ema-mint-100); }
.ema-register__form input[type="file"]:focus-visible { outline: 3px solid rgba(29, 124, 87, 0.35); outline-offset: 3px; border-color: var(--ema-green-600); }
.ema-register__form input[type="file"]::file-selector-button {
	display: inline-flex; align-items: center; margin-right: 16px; padding: 11px 20px 11px 44px; border: 1.5px solid var(--ema-green-600); border-radius: 999px;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%231f6144' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 16V4M7 9l5-5 5 5M4 20h16'/%3E%3C/svg%3E") no-repeat 18px center;
	color: var(--ema-green-600); font: 700 0.85rem/1 var(--ema-font); letter-spacing: 0.02em; text-transform: none; cursor: pointer; transition: background-color 0.2s ease, color 0.2s ease;
}
.ema-register__form input[type="file"]:hover::file-selector-button {
	background-color: var(--ema-green-600); color: #fff;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 16V4M7 9l5-5 5 5M4 20h16'/%3E%3C/svg%3E");
}
.ema-register__form .gfield_description, .ema-register__form .gform_fileupload_rules { display: block; margin: 8px 2px 0; font: 400 0.84rem/1.4 var(--ema-font); color: #4a5650; }
@media (max-width: 520px) {
	.ema-register__form input[type="file"] { padding: 12px; font-size: 0.88rem; }
	.ema-register__form input[type="file"]::file-selector-button { display: flex; margin: 0 0 10px; width: 100%; justify-content: center; }
}

/* Buscador de país (Enhanced UI de Gravity Forms / Chosen) */
.ema-register__form .chosen-container { width: 100% !important; font-family: var(--ema-font); font-size: 1rem; }
.ema-register__form .chosen-container-single .chosen-single {
	display: flex; align-items: center; height: auto; min-height: 48px; padding: 10px 44px 10px 14px; border: 1.5px solid #68807a; border-radius: 10px; background: #fff; box-shadow: none; color: var(--ema-ink); line-height: 1.4;
}
.ema-register__form .chosen-container-single .chosen-single span { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ema-register__form .chosen-container-single .chosen-single div { right: 0; width: 44px; }
.ema-register__form .chosen-container-single .chosen-single div b { background: none !important; position: relative; display: block; width: 100%; height: 100%; }
.ema-register__form .chosen-container-single .chosen-single div b::after {
	content: ""; position: absolute; right: 16px; top: 50%; width: 14px; height: 9px; transform: translateY(-50%); transition: transform 0.2s ease;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1.5l6 6 6-6' fill='none' stroke='%2317694a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.ema-register__form .chosen-container-active.chosen-with-drop .chosen-single div b::after { transform: translateY(-50%) rotate(180deg); }
.ema-register__form .chosen-container-active .chosen-single, .ema-register__form .chosen-container-active.chosen-with-drop .chosen-single { border-color: var(--ema-green-500); outline: 3px solid rgba(29, 124, 87, 0.25); background-image: none; box-shadow: none; }
.ema-register__form .chosen-container .chosen-drop { margin-top: 6px; border: 1.5px solid var(--ema-green-500); border-radius: 12px; background: #fff; box-shadow: 0 12px 32px rgba(15, 46, 33, 0.16); overflow: hidden; z-index: 50; }
.ema-register__form .chosen-container-single .chosen-search { padding: 10px; border-bottom: 1px solid var(--ema-line); }
.ema-register__form .chosen-container-single .chosen-search input[type="text"] {
	width: 100% !important; box-sizing: border-box; min-height: 44px; padding: 8px 14px 8px 40px; border: 1.5px solid #68807a; border-radius: 10px; font: 500 0.95rem/1.4 var(--ema-font); color: var(--ema-ink); box-shadow: none;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2346544c' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") no-repeat 13px center;
}
.ema-register__form .chosen-container-single .chosen-search input[type="text"]:focus { outline: 3px solid rgba(29, 124, 87, 0.25); border-color: var(--ema-green-500); }
.ema-register__form .chosen-container .chosen-results { max-height: 260px; margin: 0; padding: 6px; }
.ema-register__form .chosen-container .chosen-results li { padding: 10px 12px; border-radius: 8px; font-size: 0.95rem; line-height: 1.3; color: var(--ema-ink); }
.ema-register__form .chosen-container .chosen-results li.highlighted { background: var(--ema-green-600); color: #fff; background-image: none; }
.ema-register__form .chosen-container .chosen-results li.result-selected { font-weight: 700; color: var(--ema-green-text); }
.ema-register__form .chosen-container .chosen-results li.highlighted.result-selected { color: #fff; }
.ema-register__form .chosen-container .chosen-results li.no-results { background: transparent; color: #4a5650; }

/* ==========================================================================
   Pagos: las fotos tocan la parte blanca de la tarjeta (sin franja verde debajo)
   ========================================================================== */
body .ema-shop.et_pb_shop.et_pb_shop .woocommerce ul.products li.product img { padding: 14px 14px 0 !important; margin: 0 0 18px !important; object-fit: contain !important; object-position: center bottom !important; background: var(--ema-mint-100) !important; display: block; }
body .ema-shop.et_pb_shop.et_pb_shop .woocommerce ul.products li.product a.woocommerce-LoopProduct-link { gap: 0; }

/* Ajustes finales: botón de archivo sin mosaico y resultado resaltado del buscador */
.ema-register__form input[type="file"]::file-selector-button { background-repeat: no-repeat !important; background-position: 18px center !important; background-size: 18px 18px !important; }
.ema-register__form input[type="file"]:hover::file-selector-button,
.ema-register__form input[type="file"]::file-selector-button:hover { background-repeat: no-repeat !important; background-position: 18px center !important; background-size: 18px 18px !important; background-color: var(--ema-green-600) !important; color: #fff !important; }
.ema-register__form .chosen-container .chosen-results li.highlighted { background-color: var(--ema-green-600) !important; background-image: none !important; color: #fff !important; }
.ema-register__form .chosen-container-single .chosen-single span { font-size: 1rem; }
.ema-register__form .chosen-container .chosen-results li.result-selected:not(.highlighted) { background: var(--ema-mint-100); }

/* Corrección: una sola flecha en el buscador de país y botón de archivo sin icono (evita el mosaico) */
.ema-register__form .chosen-container-single .chosen-single,
.ema-register__form .chosen-container-single .chosen-single:hover,
.ema-register__form .chosen-container-active .chosen-single,
.ema-register__form .chosen-container-active.chosen-with-drop .chosen-single { background-image: none !important; background-color: #fff !important; }
.ema-register__form input[type="file"]::file-selector-button,
.ema-register__form input[type="file"]:hover::file-selector-button,
.ema-register__form input[type="file"]::file-selector-button:hover { background-image: none !important; padding: 11px 22px !important; }
.ema-register__form input[type="file"]::file-selector-button { background-color: #fff !important; color: var(--ema-green-600) !important; }

/* ==========================================================================
   Finalizar inscripción (/finalizar-compra/): dos columnas, pasos claros y resumen fijo
   ========================================================================== */

body.woocommerce-checkout, body.woocommerce-checkout.custom-background, body.woocommerce-checkout #page-container, body.woocommerce-checkout #main-content { background-color: var(--ema-cream) !important; }
body.woocommerce-checkout .et_pb_section.ema-checkout { background: transparent; padding-left: var(--ema-gutter); padding-right: var(--ema-gutter); }
body.woocommerce-checkout .et_pb_section.ema-checkout > .et_pb_row { width: 100%; max-width: var(--ema-wrap) !important; margin: 0 auto; padding: 0 !important; }
body.woocommerce-checkout .ema-checkout .et_pb_column { margin-bottom: 0 !important; }

/* --- Encabezado y pasos --- */
body.woocommerce-checkout .et_pb_section.ema-checkout--intro { padding-top: clamp(150px, 15vw, 190px); padding-bottom: 8px; }
body.woocommerce-checkout .ema-ck-intro .et_pb_text_inner > *:first-child { margin-top: 0; }
body.woocommerce-checkout .ema-ck-kicker { font: 700 0.78rem/1 var(--ema-font); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ema-green-text); margin: 0 0 14px; }
body.woocommerce-checkout .ema-ck-intro h1 { font: 700 clamp(2rem, 4vw, 3rem)/1.05 var(--ema-font); letter-spacing: -0.03em; color: var(--ema-green-800); margin: 0 0 12px; padding: 0; }
body.woocommerce-checkout .ema-ck-lead { font: 400 clamp(1rem, 1.3vw, 1.125rem)/1.6 var(--ema-font); color: var(--ema-ink-soft); margin: 0 0 24px; max-width: 56ch; }
body.woocommerce-checkout .ema-ck-steps { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 0; padding: 0; counter-reset: none; }
body.woocommerce-checkout .et_pb_text_inner ol.ema-ck-steps { list-style: none; padding-left: 0; }
body.woocommerce-checkout .ema-ck-steps li { display: flex; align-items: center; gap: 10px; margin: 0; padding: 0; font: 600 0.92rem/1.2 var(--ema-font); color: #4a5650; }
body.woocommerce-checkout .ema-ck-steps li span { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; border: 2px solid #8aa196; font-size: 0.8rem; font-weight: 700; color: #4a5650; background: #fff; }
body.woocommerce-checkout .ema-ck-steps li.is-done span { background: var(--ema-green-600); border-color: var(--ema-green-600); color: transparent; position: relative; }
body.woocommerce-checkout .ema-ck-steps li.is-done span::after { content: ""; position: absolute; left: 9px; top: 6px; width: 6px; height: 11px; border-right: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: rotate(45deg); }
body.woocommerce-checkout .ema-ck-steps li.is-current { color: var(--ema-green-800); }
body.woocommerce-checkout .ema-ck-steps li.is-current span { background: var(--ema-green-800); border-color: var(--ema-green-800); color: #fff; }
body.woocommerce-checkout .ema-ck-steps li + li::before { content: ""; width: 28px; height: 2px; background: #b9c8bf; margin-right: 0; order: -1; display: none; }

/* --- Avisos y cupón --- */
body.woocommerce-checkout .et_pb_section.ema-checkout--notices { padding-top: 20px; padding-bottom: 0; }
body.woocommerce-checkout .ema-ck-notices .woocommerce-message { display: none !important; }   /* "se ha añadido a tu carrito": ruido en este flujo directo */
body.woocommerce-checkout .ema-ck-notices .woocommerce-info { background: #fff !important; border: 1.5px dashed #5f7d6f !important; border-left-width: 1.5px !important; border-radius: 12px; padding: 14px 18px 14px 18px !important; font-size: 0.95rem; justify-content: flex-start; gap: 6px; }
body.woocommerce-checkout .ema-ck-notices .woocommerce-info::before { display: none; }
body.woocommerce-checkout .ema-ck-notices .woocommerce-info a { font-weight: 700; }

/* --- Rejilla principal --- */
body.woocommerce-checkout .et_pb_section.ema-checkout--grid { padding-top: 28px; padding-bottom: clamp(56px, 7vw, 104px); }
body.woocommerce-checkout .ema-ck-grid { display: grid !important; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
body.woocommerce-checkout .ema-ck-grid > .et_pb_column { width: 100% !important; margin: 0 !important; float: none !important; }
body.woocommerce-checkout .ema-ck-aside { position: sticky; top: 130px; }

/* --- Títulos numerados --- */
body.woocommerce-checkout .ema-ck-head h2 { display: flex; align-items: center; gap: 12px; font: 700 clamp(1.25rem, 2vw, 1.55rem)/1.2 var(--ema-font); letter-spacing: -0.01em; color: var(--ema-green-800); margin: 0 0 6px; padding: 0; }
body.woocommerce-checkout .ema-ck-num { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--ema-green-600); color: #fff; font: 700 0.95rem/1 var(--ema-font); }
body.woocommerce-checkout .ema-ck-head p { margin: 0 0 14px; font-size: 0.95rem; color: var(--ema-ink-soft); max-width: 52ch; }

/* --- Tarjetas --- */
body.woocommerce-checkout .ema-ck-card { background: #fff; border-radius: var(--ema-radius); box-shadow: 0 1px 2px rgba(15, 46, 33, 0.06), 0 10px 28px rgba(15, 46, 33, 0.07); padding: clamp(20px, 2.6vw, 32px); margin: 0 0 20px; }
body.woocommerce-checkout .ema-ck-card h3 { font: 700 1.05rem/1.3 var(--ema-font); color: var(--ema-green-800); margin: 0 0 14px; padding: 0; }
body.woocommerce-checkout .ema-ck-billing h3, body.woocommerce-checkout .ema-ck-summary h3, body.woocommerce-checkout .ema-ck-shipping { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0 !important; padding: 0 !important; }
body.woocommerce-checkout .ema-ck-shipping { display: none; }
body.woocommerce-checkout .ema-ck-notes h3 { font-size: 0.95rem; }

/* --- Campos --- */
body.woocommerce-checkout .ema-ck-card .form-row { margin: 0 0 18px; padding: 0; width: 100% !important; float: none !important; }
body.woocommerce-checkout .ema-ck-card .form-row label { display: block; font: 700 0.92rem/1.3 var(--ema-font); color: var(--ema-ink); margin: 0 0 8px; }
body.woocommerce-checkout .ema-ck-card .form-row .required { color: #b3261e; text-decoration: none; }
body.woocommerce-checkout .ema-ck-card .form-row input.input-text, body.woocommerce-checkout .ema-ck-card .form-row textarea {
	width: 100%; box-sizing: border-box; min-height: 54px; padding: 12px 16px; border: 1.5px solid #68807a; border-radius: 10px; background: #fff; font: 400 1.05rem/1.4 var(--ema-font); color: var(--ema-ink); box-shadow: none;
}
body.woocommerce-checkout .ema-ck-card .form-row textarea { min-height: 96px; }
body.woocommerce-checkout .ema-ck-card .form-row input.input-text:focus, body.woocommerce-checkout .ema-ck-card .form-row textarea:focus { outline: 3px solid rgba(29, 124, 87, 0.25); border-color: var(--ema-green-500); }
body.woocommerce-checkout .ema-ck-card .form-row input::placeholder, body.woocommerce-checkout .ema-ck-card .form-row textarea::placeholder { color: #5b6b63; opacity: 1; }
body.woocommerce-checkout .ema-ck-card .form-row.woocommerce-invalid input.input-text { border-color: #b3261e; }
body.woocommerce-checkout .ema-ck-card .form-row.woocommerce-invalid label { color: #8c1d18; }

/* --- Resumen del pedido --- */
body.woocommerce-checkout .ema-ck-summary table.shop_table { border: 0; border-radius: 0; margin: 0; width: 100%; }
body.woocommerce-checkout .ema-ck-summary table.shop_table thead { display: none; }
body.woocommerce-checkout .ema-ck-summary table.shop_table th, body.woocommerce-checkout .ema-ck-summary table.shop_table td { padding: 14px 0; border: 0; border-bottom: 1px solid var(--ema-line); font: 500 1rem/1.4 var(--ema-font); color: var(--ema-ink); background: transparent; }
body.woocommerce-checkout .ema-ck-summary .cart_item td { font-weight: 700; color: var(--ema-green-800); }
body.woocommerce-checkout .ema-ck-summary .cart_item td.product-total, body.woocommerce-checkout .ema-ck-summary .order-total td { text-align: right; white-space: nowrap; }
body.woocommerce-checkout .ema-ck-summary .product-quantity { font-weight: 500; color: var(--ema-ink-soft); }
body.woocommerce-checkout .ema-ck-summary tr.cart-subtotal { display: none; }
body.woocommerce-checkout .ema-ck-summary tr.order-total th { font-size: 1rem; color: var(--ema-ink-soft); border-bottom: 0; padding-top: 18px; }
body.woocommerce-checkout .ema-ck-summary tr.order-total td { border-bottom: 0; padding-top: 18px; }
body.woocommerce-checkout .ema-ck-summary tr.order-total td .woocommerce-Price-amount { font: 700 clamp(1.7rem, 2.6vw, 2.1rem)/1 var(--ema-font); letter-spacing: -0.02em; color: var(--ema-green-600); }
body.woocommerce-checkout .ema-ck-summary tr.order-total td .woocommerce-Price-currencySymbol { font-size: 0.7em; margin-right: 3px; }

/* --- Pago --- */
body.woocommerce-checkout .ema-ck-pay { padding: clamp(18px, 2.4vw, 26px); }
body.woocommerce-checkout .ema-ck-pay #payment { background: transparent; border: 0; border-radius: 0; padding: 0; }
body.woocommerce-checkout .ema-ck-pay #payment ul.payment_methods { padding: 0 0 12px; border: 0; margin: 0; }
body.woocommerce-checkout .ema-ck-pay #payment ul.payment_methods > li { list-style: none; margin: 0; padding: 0; }
body.woocommerce-checkout .ema-ck-pay #payment ul.payment_methods > li > label { font: 700 0.95rem/1.3 var(--ema-font); color: var(--ema-ink); display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
body.woocommerce-checkout .ema-ck-pay #payment div.payment_box { background: var(--ema-mint-50); border: 1px solid var(--ema-line); border-radius: 12px; padding: 14px; margin: 10px 0 0; }
body.woocommerce-checkout .ema-ck-pay #payment div.payment_box::before { display: none; }
body.woocommerce-checkout .ema-ck-pay #payment div.form-row { padding: 14px 0 0; margin: 0; }
body.woocommerce-checkout .ema-ck-pay .woocommerce-privacy-policy-text p, body.woocommerce-checkout .ema-ck-pay .woocommerce-terms-and-conditions-wrapper p { font-size: 0.82rem; line-height: 1.55; color: #4a5650; margin: 0 0 14px; }
body.woocommerce-checkout .ema-ck-pay #place_order { width: 100%; min-height: 58px; line-height: 54px; margin: 0; font-size: 1rem; letter-spacing: 0.04em; border-radius: 999px; padding: 0 24px; }

/* --- Garantías --- */
body.woocommerce-checkout .ema-ck-trust { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 12px; }
body.woocommerce-checkout .et_pb_text_inner ul.ema-ck-trust { list-style: none; padding-left: 0; }
body.woocommerce-checkout .ema-ck-trust li { position: relative; margin: 0; padding: 0 0 0 30px; font: 400 0.92rem/1.45 var(--ema-font); color: var(--ema-ink-soft); }
body.woocommerce-checkout .ema-ck-trust li strong { color: var(--ema-ink); }
body.woocommerce-checkout .ema-ck-trust li::before { content: ""; position: absolute; left: 3px; top: 0.35em; width: 14px; height: 8px; border-left: 3px solid var(--ema-green-500); border-bottom: 3px solid var(--ema-green-500); transform: rotate(-45deg); }

/* --- Móvil y tableta --- */
@media (max-width: 980px) {
	body.woocommerce-checkout .ema-ck-grid { grid-template-columns: 1fr; }
	body.woocommerce-checkout .ema-ck-aside { position: static; }
}
@media (max-width: 520px) {
	body.woocommerce-checkout .ema-ck-steps { flex-direction: column; gap: 8px; }
	body.woocommerce-checkout .ema-ck-card { padding: 18px; }
}

/* Divi añade pseudo-elementos de limpieza a las filas; en una rejilla se convertían en una celda vacía */
body.woocommerce-checkout .ema-ck-grid::before, body.woocommerce-checkout .ema-ck-grid::after { display: none !important; content: none !important; }
body.woocommerce-checkout .ema-ck-notes h3 { display: none; }
body.woocommerce-checkout .ema-ck-summary { padding-bottom: 8px; }
body.woocommerce-checkout .ema-ck-summary table.shop_table tr:last-child th, body.woocommerce-checkout .ema-ck-summary table.shop_table tr:last-child td { padding-bottom: 14px; }
body.woocommerce-checkout .woocommerce-privacy-policy-link, body.woocommerce-checkout .woocommerce-terms-and-conditions-link { text-decoration: underline; text-underline-offset: 3px; color: var(--ema-green-600); }

/* ==========================================================================
   Página de gracias (/finalizar-compra/order-received/…)
   ========================================================================== */

/* En esta página no se muestra el flujo de compra: solo el encabezado de gracias y el resumen */
body:not(.woocommerce-order-received) .ema-checkout--thanks { display: none; }
body.woocommerce-order-received .ema-checkout--intro,
body.woocommerce-order-received .ema-checkout--notices,
body.woocommerce-order-received .ema-ck-head,
body.woocommerce-order-received .ema-ck-main,
body.woocommerce-order-received .ema-ck-trust-box,
body.woocommerce-order-received .woocommerce-thankyou-order-received,
body.woocommerce-order-received .woocommerce-notice--success { display: none !important; }
body.woocommerce-order-received .et_pb_section.ema-checkout--thanks { padding-top: clamp(150px, 15vw, 190px); padding-bottom: 8px; }
body.woocommerce-order-received .ema-ck-grid { grid-template-columns: minmax(0, 820px); justify-content: center; }
body.woocommerce-order-received .ema-ck-aside { position: static; }
body.woocommerce-order-received .et_pb_section.ema-checkout--thanks > .et_pb_row { max-width: 820px !important; }

/* Encabezado */
.ema-ty { text-align: center; }
.ema-ty__icon { display: inline-flex; align-items: center; justify-content: center; width: 72px; height: 72px; border-radius: 50%; background: var(--ema-green-600); box-shadow: 0 0 0 10px rgba(31, 97, 68, 0.12); margin: 0 0 22px; }
.ema-ty--wait .ema-ty__icon { background: #8a6a12; box-shadow: 0 0 0 10px rgba(138, 106, 18, 0.14); }
.ema-ty--fail .ema-ty__icon { background: #b3261e; box-shadow: 0 0 0 10px rgba(179, 38, 30, 0.12); }
body .ema-ty .ema-ty__kicker { font: 700 0.78rem/1 var(--ema-font); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ema-green-text); margin: 0 0 14px; max-width: none; }
body .ema-ty h1 { font: 700 clamp(1.9rem, 4vw, 2.9rem)/1.1 var(--ema-font); letter-spacing: -0.03em; color: var(--ema-green-800); margin: 0 0 14px; padding: 0; text-wrap: balance; }
body .ema-ty .ema-ty__lead { font: 400 clamp(1rem, 1.3vw, 1.125rem)/1.65 var(--ema-font); color: var(--ema-ink-soft); max-width: 56ch; margin: 0 auto; }
body .ema-ty .ema-ty__lead strong { color: var(--ema-ink); overflow-wrap: anywhere; }
.ema-ty .ema-btns { justify-content: center; margin-top: 26px; }
body .ema-ty a.ema-btn--green { background: var(--ema-green-600); color: #fff; text-decoration: none; }
body .ema-ty a.ema-btn--line { border-color: var(--ema-green-600); color: var(--ema-green-600); text-decoration: none; }

/* Próximos pasos */
.ema-ty__steps { list-style: none; counter-reset: ty; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 36px 0 0; padding: 0; text-align: left; }
.et_pb_text_inner ol.ema-ty__steps { list-style: none; padding-left: 0; }
.ema-ty__steps li { counter-increment: ty; background: #fff; border-radius: var(--ema-radius); padding: 20px; margin: 0; box-shadow: 0 1px 2px rgba(15, 46, 33, 0.06), 0 8px 22px rgba(15, 46, 33, 0.06); }
.ema-ty__steps li::before { content: counter(ty); display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ema-mint-100); color: var(--ema-green-text); font: 700 0.85rem/1 var(--ema-font); margin-bottom: 12px; }
.ema-ty__steps strong { display: block; font: 700 1rem/1.3 var(--ema-font); color: var(--ema-green-800); margin-bottom: 4px; }
.ema-ty__steps span { display: block; font: 400 0.9rem/1.5 var(--ema-font); color: var(--ema-ink-soft); }

/* Resumen del pedido (lo que imprime WooCommerce) */
body.woocommerce-order-received .ema-ck-pay { padding: clamp(20px, 3vw, 32px); }
body.woocommerce-order-received .ema-ck-pay .woocommerce-order { display: grid; gap: 22px; }
body.woocommerce-order-received .woocommerce-order-overview { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; margin: 0; padding: 0 0 22px; border-bottom: 1px solid var(--ema-line); }
body.woocommerce-order-received .woocommerce-order-overview li { margin: 0; padding: 0; border: 0; float: none; font: 500 0.78rem/1.3 var(--ema-font); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ema-ink-soft); }
body.woocommerce-order-received .woocommerce-order-overview li strong { display: block; margin-top: 6px; font: 700 1.05rem/1.3 var(--ema-font); letter-spacing: 0; text-transform: none; color: var(--ema-ink); }
body.woocommerce-order-received .woocommerce-order-overview li.total strong { color: var(--ema-green-600); font-size: 1.35rem; }
body.woocommerce-order-received .woocommerce-order-details__title, body.woocommerce-order-received .woocommerce-column__title, body.woocommerce-order-received .woocommerce-customer-details h2 { font: 700 1.1rem/1.3 var(--ema-font); color: var(--ema-green-800); margin: 0 0 12px; padding: 0; }
body.woocommerce-order-received table.woocommerce-table--order-details { border: 1.5px solid var(--ema-line); border-radius: 12px; margin: 0; width: 100%; }
body.woocommerce-order-received table.woocommerce-table--order-details th, body.woocommerce-order-received table.woocommerce-table--order-details td { padding: 13px 16px; font: 500 0.95rem/1.4 var(--ema-font); color: var(--ema-ink); border-color: var(--ema-line); text-align: left; }
body.woocommerce-order-received table.woocommerce-table--order-details tfoot tr:last-child th, body.woocommerce-order-received table.woocommerce-table--order-details tfoot tr:last-child td { color: var(--ema-ink-soft); }
body.woocommerce-order-received table.woocommerce-table--order-details td:last-child, body.woocommerce-order-received table.woocommerce-table--order-details th:last-child { text-align: right; }
body.woocommerce-order-received table.woocommerce-table--order-details a { color: var(--ema-green-800); font-weight: 700; text-decoration: none; }
body.woocommerce-order-received .woocommerce-customer-details address { border: 1.5px solid var(--ema-line); border-radius: 12px; padding: 16px 18px; font: 400 0.95rem/1.7 var(--ema-font); font-style: normal; color: var(--ema-ink); }
body.woocommerce-order-received .woocommerce-customer-details .woocommerce-customer-details--phone, body.woocommerce-order-received .woocommerce-customer-details .woocommerce-customer-details--email { margin: 4px 0 0; padding: 0; }

@media (max-width: 760px) { .ema-ty__steps { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .ema-ty .ema-btns .ema-btn { width: 100%; } body.woocommerce-order-received .ema-ck-pay { padding: 18px; } }

/* Gracias: botones propios, resumen sin celdas vacías ni filas repetidas */
.ema-ty a.ema-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border-radius: 999px; font: 700 0.9rem/1 var(--ema-font); letter-spacing: 0.04em; text-transform: uppercase; border: 2px solid transparent; transition: background-color 0.2s ease, color 0.2s ease; }
.ema-ty a.ema-btn--green { border-color: var(--ema-green-600); }
.ema-ty a.ema-btn--green:hover { background: var(--ema-green-500); border-color: var(--ema-green-500); }
.ema-ty a.ema-btn--line:hover { background: var(--ema-green-600); color: #fff; }
.ema-ty a.ema-btn:focus-visible { outline: 3px solid rgba(29, 124, 87, 0.4); outline-offset: 3px; }
body.woocommerce-order-received .woocommerce-order-overview::before, body.woocommerce-order-received .woocommerce-order-overview::after { display: none !important; content: none !important; }
body.woocommerce-order-received table.woocommerce-table--order-details tfoot tr:first-child, body.woocommerce-order-received table.woocommerce-table--order-details tfoot tr:last-child { display: none; }
body.woocommerce-order-received .woocommerce-customer-details--phone::before, body.woocommerce-order-received .woocommerce-customer-details--email::before { display: none !important; content: none !important; }
body.woocommerce-order-received .woocommerce-customer-details address { padding: 16px 18px; }
body.woocommerce-order-received .woocommerce-columns--addresses { display: block; margin: 0; }
body.woocommerce-order-received .woocommerce-columns--addresses .woocommerce-column { width: 100% !important; float: none !important; }
