/* Ester López Medina — estilos y movimiento */

@keyframes elm-rise { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@keyframes elm-marquee { to { transform: translateX(-50%); } }
@keyframes elm-drift { to { background-position: 96px 96px, 96px 96px; } }
@keyframes elm-pulse { 0%, 100% { opacity: .45; transform: scale(.9); } 50% { opacity: 1; transform: scale(1); } }
@keyframes elm-scan { 0% { top: -5%; } 100% { top: 105%; } }

/* Etiquetas en mono */
.elm-eyebrow { font-family: var(--wp--preset--font-family--plex-mono); font-size: .8rem !important; letter-spacing: .14em; text-transform: uppercase; }
.elm-dot::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 10px; border-radius: 50%; background: var(--wp--preset--color--senal); vertical-align: middle; animation: elm-pulse 1.8s ease-in-out infinite; }

/* Cabecera */
.elm-header { border-bottom: 1px solid var(--wp--preset--color--linea); }
.elm-mark { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; background: var(--wp--preset--color--senal); color: var(--wp--preset--color--noche) !important; font-family: var(--wp--preset--font-family--archivo); font-weight: 900; font-size: 17px; text-decoration: none !important; clip-path: polygon(0 0, 100% 0, 100% 72%, 72% 100%, 0 100%); }
.elm-header .wp-block-navigation a:hover { color: var(--wp--preset--color--texto); }
.elm-btn-light .wp-block-button__link { background: var(--wp--preset--color--texto) !important; color: var(--wp--preset--color--noche) !important; }
.elm-btn-ghost .wp-block-button__link { background: transparent !important; color: var(--wp--preset--color--texto) !important; border: 1px solid #4A5260 !important; }

/* Utilidades */
.elm-section { border-bottom: 1px solid var(--wp--preset--color--linea); }
.elm-c-senal { color: var(--wp--preset--color--senal-claro); }
.elm-c-gris { color: var(--wp--preset--color--gris); }
.elm-c-suave { color: var(--wp--preset--color--texto-suave); }
.elm-c-azul { color: var(--wp--preset--color--azul-claro); }
.elm-lead { font-size: 1.3rem; color: var(--wp--preset--color--texto-suave); max-width: 620px; }
.elm-blue-section { background: radial-gradient(80% 120% at 10% 0%, #16264A, #0B0D10 70%); }

/* Portada con vídeo */
.elm-hero { position: relative; overflow: hidden; min-height: 640px; display: flex; align-items: center; }
.elm-hero__video { position: absolute; inset: 0; z-index: 0; }
.elm-hero__video video { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); }
.elm-hero > *:not(.elm-hero__video) { position: relative; z-index: 2; }
.elm-hero > .wp-block-group { width: 100%; }
.elm-hero::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
	background: linear-gradient(90deg, rgba(11,13,16,.94) 0%, rgba(11,13,16,.78) 42%, rgba(11,13,16,.25) 100%), linear-gradient(0deg, #0B0D10 0%, rgba(11,13,16,0) 35%); }
.elm-hero::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
	background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
	background-size: 96px 96px; animation: elm-drift 14s linear infinite; }
.elm-hero .wp-block-cover__inner-container { position: relative; z-index: 2; }
.elm-rise { animation: elm-rise 1s cubic-bezier(.2,.8,.2,1) both; }
.elm-rise-2 { animation: elm-rise 1s cubic-bezier(.2,.8,.2,1) .2s both; }
.elm-rise-3 { animation: elm-rise 1s cubic-bezier(.2,.8,.2,1) .5s both; }
.elm-rise-4 { animation: elm-rise 1s cubic-bezier(.2,.8,.2,1) .7s both; }
.elm-chip { display: inline-flex; align-items: center; border: 1px solid rgba(238,240,242,.25); border-radius: 999px; padding: 8px 16px; background: rgba(11,13,16,.55); color: var(--wp--preset--color--texto-suave); }

/* Cinta de temas */
.elm-ticker { overflow: hidden; background: var(--wp--preset--color--senal); color: var(--wp--preset--color--noche); padding: 16px 0; }
.elm-ticker__track { display: flex; width: max-content; animation: elm-marquee 26s linear infinite; font-family: var(--wp--preset--font-family--archivo); font-weight: 800; font-size: 26px; text-transform: uppercase; white-space: nowrap; }
.elm-ticker__track span { padding-right: 48px; }

/* Tarjetas y filas */
.elm-card { border: 1px solid var(--wp--preset--color--linea); border-radius: 20px; background: var(--wp--preset--color--panel); transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .35s; height: 100%; }
.elm-card:hover { transform: translateY(-8px); border-color: var(--wp--preset--color--senal); }
.elm-card a { color: inherit; text-decoration: none; }
.elm-card a::after { content: ""; position: absolute; inset: 0; }
.elm-card { position: relative; }
.elm-num { font-family: var(--wp--preset--font-family--archivo); font-weight: 900; font-size: 72px !important; line-height: .9 !important; }
.elm-row { border-top: 1px solid var(--wp--preset--color--linea); padding: 24px 0; transition: padding-left .35s; }
.elm-row:last-child { border-bottom: 1px solid var(--wp--preset--color--linea); }
.elm-row:hover { padding-left: 16px; }
.elm-pill { display: inline-block; border: 1px solid #3A424E; border-radius: 999px; padding: 4px 14px; margin: 0 6px 8px 0; font-size: 15px; color: var(--wp--preset--color--texto-suave); }

/* Foto con escaneo */
.elm-photo { position: relative; overflow: hidden; border-radius: 24px; border: 1px solid var(--wp--preset--color--linea); }
.elm-photo img { border-radius: 0 !important; }
.elm-photo::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--wp--preset--color--senal), transparent); animation: elm-scan 5s ease-in-out infinite; }

/* Firma de autora */
.elm-author { max-width: 760px; margin: 3rem auto 0 !important; padding-top: 2rem; border-top: 1px solid var(--wp--preset--color--linea); }

/* Tarjetas de recursos (página Recursos) */
.elm-res-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; margin: 1.5rem 0 3rem; }
.elm-res { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 26px; border: 1px solid var(--wp--preset--color--linea); border-radius: 20px; background: var(--wp--preset--color--panel); color: var(--wp--preset--color--texto) !important; text-decoration: none !important; transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .35s; }
.elm-res:hover { transform: translateY(-6px); border-color: var(--wp--preset--color--senal); }
.elm-res b { font-family: var(--wp--preset--font-family--archivo); font-size: 1.4rem; }
.elm-res span { color: var(--wp--preset--color--gris); font-size: 1rem; }
.elm-res i { font-style: normal; margin-top: auto; font-weight: 600; color: var(--wp--preset--color--senal-claro); }

/* Pie */
.elm-bigname { font-family: var(--wp--preset--font-family--archivo); font-weight: 900; font-size: clamp(56px, 11vw, 168px) !important; line-height: .85 !important; letter-spacing: -.04em; color: #1C2129; }

/* Tablas en artículos */
.wp-block-table table { border-collapse: collapse; }
.wp-block-table td, .wp-block-table th { border: 0; border-bottom: 1px solid var(--wp--preset--color--linea); padding: 12px; }
.wp-block-table thead { border-bottom: 0; font-family: var(--wp--preset--font-family--plex-mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--wp--preset--color--gris); }

/* Glosario */
.elm-glossary dt { font-family: var(--wp--preset--font-family--archivo); font-weight: 700; font-size: 22px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--wp--preset--color--linea); }
.elm-glossary dd { margin: 6px 0 0; color: var(--wp--preset--color--gris); }

:focus-visible { outline: 2px solid var(--wp--preset--color--senal); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Cita destacada */
.wp-block-quote { border: 1px solid var(--wp--preset--color--senal); border-radius: 20px; background: #161A20; padding: 28px 32px; margin-block: 2rem; }
.wp-block-quote p { font-family: var(--wp--preset--font-family--archivo); font-weight: 700; font-size: 1.6rem; line-height: 1.25; }

/* Listas de artículos */
.elm-list { display: flex; flex-direction: column; margin-bottom: 1.5rem; }
.elm-row-link { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; color: var(--wp--preset--color--texto) !important; text-decoration: none !important; }
.elm-row-link b { font-family: var(--wp--preset--font-family--archivo); font-size: 1.4rem; flex: 1 1 420px; }
.elm-row-link:hover b { color: var(--wp--preset--color--senal-claro); }
.elm-res .elm-num { font-size: 56px !important; }
.elm-res span.elm-c-senal { color: var(--wp--preset--color--senal); }
.elm-res span.elm-c-azul { color: var(--wp--preset--color--azul); }
.elm-res span.elm-num:not(.elm-c-senal):not(.elm-c-azul) { color: var(--wp--preset--color--texto); }

/* Preguntas frecuentes */
.wp-block-details { border-top: 1px solid var(--wp--preset--color--linea); padding: 18px 0; }
.wp-block-details summary { font-family: var(--wp--preset--font-family--archivo); font-weight: 700; font-size: 1.3rem; cursor: pointer; }
.wp-block-details p { color: var(--wp--preset--color--texto-suave); }
