/* Inglés Explicado en Español — maquetación de la landing y estilos de bloque.
   Los colores y tipografías salen de theme.json (variables --wp--preset--*). */

:root {
	--iee-radius-card: 14px;
	--iee-radius-panel: 16px;
	--iee-shadow-panel: 0 10px 30px rgba(10, 49, 97, .12);
}

html { scroll-behavior: smooth; }
body { overflow-x: hidden; }
[hidden] { display: none !important; }

/* ---------- Cabecera ---------- */
.iee-brand { text-decoration: none; }
.iee-brand__logo { margin: 0; }
.iee-brand__logo img { width: 54px; height: 54px; border-radius: 0; }
.iee-brand__text { margin: 0; font-weight: 900; font-size: 17px; line-height: 1.15; }
.iee-brand__text a { color: var(--wp--preset--color--tinta); text-decoration: none; }
.iee-brand__sub { display: block; font-weight: 500; letter-spacing: .28em; font-size: 12px; }
.iee-nav .wp-block-navigation-item__content { padding: 12px 0; color: var(--wp--preset--color--gris); }
.iee-nav .wp-block-navigation-item__content:hover { color: var(--wp--preset--color--rojo); }
.iee-nav .iee-nav__cta .wp-block-navigation-item__content {
	display: inline-flex; align-items: center; min-height: 46px; padding: 0 26px;
	border-radius: 10px; background: var(--wp--preset--color--rojo); color: #fff; font-weight: 700;
}
.iee-nav .iee-nav__cta .wp-block-navigation-item__content:hover { background: #9a1438; color: #fff; }
.wp-block-navigation__responsive-container.is-menu-open .iee-nav__cta .wp-block-navigation-item__content { margin-top: 12px; }

/* ---------- Utilidades de sección ---------- */
.is-style-antetitulo {
	margin: 0; font-size: 15px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
	color: var(--wp--preset--color--azul);
}
.is-style-etiqueta {
	display: inline-block; margin: 0; align-self: flex-start; width: fit-content;
	background: #fff; color: var(--wp--preset--color--azul); font-weight: 800; font-size: 15px;
	padding: 6px 12px; border-radius: 999px;
}
.is-style-tarjeta, .is-style-tarjeta-translucida {
	border-radius: var(--iee-radius-card); padding: 28px 24px;
}
.is-style-tarjeta { background: var(--wp--preset--color--bruma); }
.is-style-tarjeta-translucida {
	background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .45);
}
.is-style-panel {
	background: #fff; border-radius: var(--iee-radius-panel); padding: 32px; box-shadow: var(--iee-shadow-panel);
}
.iee-section__head > * { margin-left: auto; margin-right: auto; }
.iee-claims { display: flex; flex-wrap: wrap; gap: 10px 28px; color: var(--wp--preset--color--tinta); }
.iee-pendiente { border-radius: 10px; padding: 12px 14px; }
.iee-pendiente--marco { flex: 1 1 260px; max-width: 380px; border: 2px dashed #B4C0D4; border-radius: 12px; padding: 22px; margin: 0; }

/* Botones: variantes */
.wp-block-button.is-style-blanco .wp-block-button__link { background: #fff; color: var(--wp--preset--color--tinta); }
.wp-block-button.is-style-blanco .wp-block-button__link:hover { background: var(--wp--preset--color--bruma); color: var(--wp--preset--color--tinta); }
.wp-block-button.is-style-contorno-azul .wp-block-button__link {
	background: #fff; color: var(--wp--preset--color--azul); border: 2px solid var(--wp--preset--color--azul);
	font-weight: 800; font-size: 20px; min-width: 84px; padding: 12px 20px;
}
.wp-block-button.is-style-contorno-azul .wp-block-button__link:hover { background: var(--wp--preset--color--bruma); }
.wp-block-button.is-style-link .wp-block-button__link {
	background: transparent; color: var(--wp--preset--color--azul); padding-left: 0; padding-right: 0; font-weight: 700;
}
.wp-block-button.is-style-link .wp-block-button__link:hover { color: var(--wp--preset--color--rojo); }
.wp-block-image.is-style-redonda img { border-radius: 50%; object-fit: cover; aspect-ratio: 1; }

/* ---------- Hero / collage ---------- */
.iee-collage { position: relative; height: 500px; max-width: 520px; margin: 0 auto; }
.iee-collage figure { margin: 0; position: absolute; }
.iee-collage__main { right: 0; top: 40px; width: 62%; }
.iee-collage__main img { width: 100%; height: 400px; object-fit: cover; border-radius: 200px 200px 20px 20px; }
.iee-collage__photo--1 { left: 6%; top: 0; width: 150px; }
.iee-collage__photo--2 { left: 0; bottom: 60px; width: 170px; }
.iee-collage__photo--3 { left: 34%; bottom: 0; width: 120px; }
.iee-collage__photo--3 img { border: 6px solid var(--wp--preset--color--nube); }
.iee-star { position: absolute; fill: var(--wp--preset--color--rojo); animation: iee-floaty 6s ease-in-out infinite; }
.iee-star--1 { left: 0; top: 150px; width: 60px; height: 60px; }
.iee-star--2 { left: 46%; top: 4px; width: 46px; height: 46px; fill: var(--wp--preset--color--azul-claro); animation-delay: 1.2s; }
.iee-star--3 { left: 52%; bottom: 96px; width: 34px; height: 34px; fill: var(--wp--preset--color--azul); animation-delay: 2.4s; }
.iee-bubble {
	position: absolute; margin: 0; background: var(--wp--preset--color--rojo); color: #fff; font-weight: 700; font-size: 16px;
	padding: 8px 14px; border-radius: 10px 10px 10px 2px; white-space: nowrap; animation: iee-pop .5s cubic-bezier(.2, 1.4, .4, 1) both;
}
.iee-bubble--azul { background: var(--wp--preset--color--azul-claro); }
.iee-bubble--1 { right: 4%; top: 14px; animation-delay: .75s; }
.iee-bubble--2 { left: 22%; top: 128px; animation-delay: 1s; }
.iee-bubble--3 { left: 0; bottom: 214px; animation-delay: 1.25s; }
.iee-autora__foto { position: relative; max-width: 480px; }
.iee-autora__foto img { width: 100%; height: 520px; object-fit: cover; }
.iee-bubble--autora { left: -8px; bottom: 28px; font-weight: 800; font-size: 18px; padding: 12px 18px; white-space: normal; animation: none; }

@keyframes iee-floaty { 50% { transform: translateY(-12px) rotate(14deg); } }
@keyframes iee-pop { from { opacity: 0; transform: scale(.4); } }

/* ---------- Método ---------- */
.iee-metodo h3 { color: #fff; }
.iee-metodo .iee-step--solida h3 { color: var(--wp--preset--color--tinta); }
.iee-metodo .iee-step--solida p { color: var(--wp--preset--color--gris); }
.iee-metodo .iee-step { background-clip: padding-box; }
.iee-step__num {
	width: 40px; height: 40px; border-radius: 50%; margin: 0 0 4px; display: flex; align-items: center; justify-content: center;
	background: #fff; color: var(--wp--preset--color--tinta); font-weight: 800;
}
.iee-step--solida .iee-step__num { background: var(--wp--preset--color--rojo); color: #fff; }

/* ---------- Temario ---------- */
.iee-unit__card { position: relative; border-radius: var(--iee-radius-card); padding: 56px 22px 22px; min-height: 150px; justify-content: flex-end; }
.iee-unit__tag { position: absolute; top: 14px; left: 14px; color: var(--wp--preset--color--tinta); font-size: 14px; font-weight: 700; padding: 6px 14px; }
.iee-unit__tag--gratis { background: var(--wp--preset--color--rojo-suave); }
.iee-unit__es, .iee-unit__en { margin: 0; }

/* ---------- Quiz ---------- */
.iee-quiz__blank { border-bottom: 4px solid var(--wp--preset--color--rojo); padding: 0 14px; }
.iee-quiz__ok, .iee-quiz__ko { display: none; border-radius: 10px; padding: 14px 16px; margin: 0; }
.iee-quiz__ok { color: #14532D; }
.iee-quiz__ko { color: #7F1D1D; }
.iee-quiz.is-correct .iee-quiz__ok, .iee-quiz.is-wrong .iee-quiz__ko { display: block; }
.iee-quiz__pick .wp-block-button__link[aria-pressed="true"] { background: var(--wp--preset--color--azul); color: #fff; }
.iee-audio-slot { border: 2px dashed #B4C0D4; border-radius: 10px; padding: 12px 14px; }

/* ---------- Precios ---------- */
.iee-plan { border: 1px solid rgba(255, 255, 255, .5); border-radius: 12px; padding: 34px 26px; text-align: center; height: 100%; }
.iee-plan--destacado { border-color: transparent; }
.iee-plan__precio { font-size: 40px; font-weight: 900; line-height: 1.1; margin: 0; }
.iee-plan__lista { text-align: left; margin: 6px auto 10px; padding-left: 18px; line-height: 1.7; }
.iee-plan .wp-block-buttons { margin-top: auto; }

/* ---------- Guía y FAQ ---------- */
.iee-lead__img img { width: 100%; height: 150px; object-fit: cover; }
.iee-lead__form { display: flex; flex-direction: column; gap: 14px; }
.iee-field { display: flex; flex-direction: column; gap: 6px; font-size: 15px; font-weight: 700; color: var(--wp--preset--color--tinta); }
.iee-field input {
	min-height: 52px; padding: 0 16px; border: 1px solid #B4C0D4; border-radius: 10px; font: inherit; font-weight: 500;
	width: 100%; background: #fff; color: var(--wp--preset--color--tinta);
}
.iee-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; }
.iee-check input { width: 22px; height: 22px; margin: 0; flex: none; }
.iee-lead__form button { font: inherit; font-weight: 700; cursor: pointer; }
.iee-lead__msg { margin: 0; padding: 12px 14px; border-radius: 10px; background: var(--wp--preset--color--bruma); }
.wp-block-details.iee-faq summary { font-size: 18px; font-weight: 800; color: var(--wp--preset--color--tinta); cursor: pointer; }
.wp-block-details.iee-faq > :not(summary) { margin-top: 6px; }

/* ---------- Pie ---------- */
.iee-footer__nav .wp-block-navigation-item__content { padding: 10px 0; }

/* ---------- Revelado y barra de progreso (activados por JS) ---------- */
.js-anim .iee-reveal { opacity: 0; transform: translateY(34px) scale(.98); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.js-anim .iee-reveal.in { opacity: 1; transform: none; }
.iee-progress {
	position: fixed; left: 0; top: 0; width: 100%; height: 5px; z-index: 55; transform: scaleX(0); transform-origin: left center;
	background: var(--wp--preset--gradient--bandera); box-shadow: 0 1px 0 rgba(10, 49, 97, .25); pointer-events: none;
}
a, .wp-block-button__link { transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease; }
:is(a, button, input, summary):focus-visible { outline: 3px solid var(--wp--preset--color--dorado); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
	.js-anim .iee-reveal { opacity: 1; transform: none; transition: none; }
	.iee-star, .iee-bubble { animation: none; }
	html { scroll-behavior: auto; }
}

/* ---------- Móvil ---------- */
@media (max-width: 781px) {
	.iee-collage { height: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
	.iee-collage figure, .iee-collage .iee-bubble { position: static; }
	.iee-collage__main { grid-column: 1 / -1; width: 100%; }
	.iee-collage__main img { height: 320px; border-radius: 20px; }
	.iee-collage__photo--1, .iee-collage__photo--2, .iee-collage__photo--3 { width: 100%; max-width: 160px; margin: 0 auto; }
	.iee-collage__photo--3 { display: none; }
	.iee-star { display: none; }
	.iee-bubble { width: fit-content; }
	.iee-bubble--3 { display: none; }
	.iee-autora__foto img { height: 380px; }
	.is-style-panel { padding: 24px 20px; }
	.iee-plan { padding: 28px 20px; }
}
