/* Secciones nuevas de la maqueta. Portada, formulario y pie siguen en estilos.css.
   El verde sale de la pared de la recepción: es el color del análisis.
   La foto del cabello es de StockSnap (CC0). sala-espera y portada-recepcion son de Medyfe.
   La carpeta epix es material de EpixLife, usado con su autorización. */
:root { --bosque: #24402f; --bosque-hondo: #172a1f; --salvia: #e8ece1; --papel: #fff; }

.ep-caja { width: min(100% - 80px, 1240px); margin-inline: auto; }
[class^="ep-"] h2 { font-size: clamp(2.1rem, 3.9vw, 3.35rem); line-height: 1.12; text-wrap: balance; color: var(--cafe); }
[class^="ep-"] p { text-wrap: pretty; }

/* --- Placa de la portada: lo único de EpixLife arriba ---------------- */
.heroe-placa {
  position: absolute; z-index: 2; right: 32px; bottom: 32px; margin: 0;
  padding: .7rem 1.2rem; border-radius: 8px;
  background: rgba(251, 246, 236, .94); color: var(--cafe);
  font-size: .95rem; box-shadow: 0 6px 22px rgba(28, 15, 6, .28);
  display: flex; align-items: center; gap: .8rem;
}
.heroe-placa img { height: 26px; width: auto; }

/* --- Qué es ---------------------------------------------------------- */
.ep-idea { background: #fbf6ec; padding: 110px 0 120px; }
.ep-idea-rejilla { display: grid; grid-template-columns: 7fr 5fr; gap: 88px; align-items: center; }
.ep-idea h2 { font-size: clamp(2.5rem, 5vw, 4.3rem); line-height: 1.08; margin-bottom: 2rem; }
.ep-idea-sub { display: block; margin-top: .45em; font-size: .52em; line-height: 1.15; }
.ep-idea p { max-width: 36rem; margin: 0 0 1rem; font-size: 1.12rem; color: #40372a; }
.ep-idea img { width: 100%; height: 480px; object-fit: cover; object-position: 50% 100%; border-radius: var(--radio); }

/* --- La hebra -------------------------------------------------------- */
.ep-hebra { background: var(--bosque); color: #eef1e8; padding: 110px 0 100px; overflow: hidden; }
.ep-hebra h2 { color: #fff; }
.ep-hebra-cabeza { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: end; margin-bottom: 48px; }
.ep-hebra-cabeza p { margin: 0; max-width: 32rem; font-size: 1.08rem; color: #d5dccd; }
.ep-grupos { display: flex; flex-wrap: wrap; gap: .5rem; }
.ep-grupos button {
  min-height: 44px; padding: .4rem 1.1rem; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(238, 241, 232, .34); background: none; color: #eef1e8;
  font: 500 1rem var(--letra); transition: background .2s, color .2s, border-color .2s;
}
.ep-grupos button:hover { border-color: var(--oro-luz); }
.ep-grupos button[aria-pressed="true"] { background: var(--oro-luz); border-color: var(--oro-luz); color: var(--bosque-hondo); }
.ep-trazo { display: block; width: 100%; height: auto; margin: 10px 0 6px; overflow: visible; stroke: none; }
.ep-trazo .pelo { fill: none; stroke: #a9835a; stroke-width: 5; stroke-linecap: round; }
.ep-trazo .brillo { fill: none; stroke: #e4c79b; stroke-width: 1.4; stroke-linecap: round; opacity: .8; }
.ep-trazo .raiz { fill: #e4c79b; stroke: none; }
.ep-trazo .marca { stroke: #eef1e8; stroke-width: 1.5; opacity: .34; transition: opacity .35s, stroke .35s, stroke-width .35s; }
.ep-trazo .marca.viva { stroke: var(--oro-luz); stroke-width: 2.5; opacity: 1; }
.ep-trazo text { fill: #fff; stroke: none; font: 500 17px var(--letra); text-anchor: middle; }
.ep-lectura { min-height: 4.5rem; }
.ep-lectura-frase { margin: 0; max-width: 44rem; font-family: var(--letra-titulo); font-size: clamp(1.3rem, 2vw, 1.65rem); line-height: 1.35; color: #fff; }
.ep-lectura-lista { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* --- Pasos ----------------------------------------------------------- */
.ep-pasos { background: var(--salvia); padding: 120px 0; }
.ep-pasos-rejilla { display: grid; grid-template-columns: 5fr 6fr; gap: 88px; align-items: stretch; }
.ep-pasos-foto { display: grid; align-content: start; gap: 20px; }
.ep-pasos-foto img { width: 100%; border-radius: var(--radio); object-fit: cover; }
.ep-pasos-foto img:first-child { height: auto; aspect-ratio: 535 / 318; }
.ep-pasos-foto img:last-child { height: 260px; object-position: 50% 8%; }
.ep-linea { list-style: none; margin: 2.6rem 0 0; padding: 0; }
.ep-linea li { position: relative; padding: 0 0 2rem 2.4rem; }
.ep-linea li:last-child { padding-bottom: 0; }
.ep-linea li::before { content: ''; position: absolute; left: 5px; top: 1rem; bottom: -1rem; width: 2px; background: #a9835a; }
.ep-linea li:last-child::before { display: none; }
.ep-linea li::after { content: ''; position: absolute; left: 0; top: .72rem; width: 12px; height: 12px; border-radius: 50%; background: var(--bosque); }
.ep-linea strong { display: block; font: 400 clamp(1.45rem, 2.2vw, 1.8rem)/1.25 var(--letra-titulo); color: var(--bosque); }
.ep-linea p { margin: .4rem 0 0; max-width: 33rem; color: #3b3f33; }

/* --- Informe --------------------------------------------------------- */
.ep-informe { background: var(--papel); padding: 120px 0; }
.ep-informe-rejilla { display: grid; grid-template-columns: 6fr 5fr; gap: 88px; align-items: center; }
.ep-entrada { margin: 1.4rem 0 2.4rem; max-width: 34rem; font-size: 1.12rem; color: #40372a; }
.ep-hallazgos { margin: 0; }
.ep-hallazgos > div { display: grid; grid-template-columns: 13rem 1fr; gap: 1.6rem; padding: 1.05rem 0; border-top: 1px solid var(--borde); }
.ep-hallazgos dt { font-weight: 600; color: var(--bosque); }
.ep-hallazgos dd { margin: 0; color: #4d4436; }
.ep-muestra { margin: 0; }
.ep-pila { position: relative; width: 100%; aspect-ratio: 1 / 1.08; }
.ep-pila img { position: absolute; height: auto; border-radius: 3px; box-shadow: 0 24px 60px -14px rgba(51, 28, 11, .35), 0 2px 10px rgba(51, 28, 11, .1); }
.ep-pila-tapa { width: 56%; left: 0; top: 0; transform: rotate(-3deg); }
.ep-pila-pagina { width: 62%; right: 0; bottom: 0; transform: rotate(1.5deg); }
.ep-muestra figcaption { margin-top: 30px; text-align: center; font-size: .88rem; color: var(--piedra); }

/* --- Objetivos ------------------------------------------------------- */
.ep-objetivos { background: #fbf6ec; padding: 120px 0; }
.ep-objetivos-rejilla { display: grid; grid-template-columns: 5fr 6fr; gap: 72px; margin-top: 3rem; align-items: stretch; }
.ep-objetivos-lista { display: flex; flex-direction: column; }
.ep-objetivos-lista button {
  flex: 1; min-height: 60px; text-align: left; padding: .5rem 0 .5rem 0; cursor: pointer;
  border: 0; border-bottom: 1px solid #dccfb9; background: none; color: #74695a;
  font: 400 clamp(1.3rem, 2.1vw, 1.75rem)/1.2 var(--letra-titulo);
  transition: color .2s, padding-left .25s;
}
.ep-objetivos-lista button:hover { color: var(--cafe); }
.ep-objetivos-lista button[aria-pressed="true"] { color: var(--bosque); padding-left: 1.4rem; box-shadow: inset 4px 0 0 var(--bosque); }
.ep-objetivo { display: flex; flex-direction: column; border-radius: var(--radio); overflow: hidden; color: #eef1e8; }
.ep-objetivo-tapa { height: 400px; padding-top: 44px; overflow: hidden; display: flex; justify-content: center; align-items: flex-start; transition: background .3s; }
.ep-objetivo-tapa img { width: 320px; height: auto; border-radius: 4px 4px 0 0; box-shadow: 0 18px 50px rgba(23, 42, 31, .28); }
.ep-objetivo-texto { flex: 1; padding: 30px 34px 34px; min-height: 13.5rem; background: var(--bosque); }
.ep-objetivo-texto p { margin: 0; font-size: 1.12rem; }
.ep-objetivo-texto .ep-objetivo-mira { margin-top: 1rem; font-size: 1rem; color: #d5dccd; }
.ep-objetivo-mira strong { display: block; font-weight: 600; color: var(--oro-luz); }

/* --- Seguimiento ----------------------------------------------------- */
.ep-seguimiento { color: #fff; background: var(--bosque-hondo); padding: 120px 0; }
.ep-seguimiento-rejilla { display: grid; grid-template-columns: 1fr 1fr; gap: 88px; align-items: center; }
.ep-seguimiento h2 { color: #fff; }
.ep-seguimiento-texto > p { margin: 1.3rem 0 1.6rem; font-size: 1.12rem; color: #eef1e8; }
.ep-seguimiento-texto ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.ep-seguimiento-texto li { position: relative; padding-left: 1.5rem; color: #eef1e8; }
.ep-seguimiento-texto li::before { content: ''; position: absolute; left: 0; top: .78em; width: 10px; height: 2px; background: var(--oro-luz); }
.ep-app { width: 100%; height: auto; border-radius: var(--radio); }
.ep-dia { list-style: none; margin: 72px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.ep-dia li { position: relative; border-radius: 14px; overflow: hidden; }
.ep-dia img { width: 100%; height: auto; }
.ep-dia li::after { content: ''; position: absolute; inset: 55% 0 0; background: linear-gradient(transparent, rgba(15, 24, 17, .85)); }
.ep-dia span { position: absolute; z-index: 1; left: 20px; bottom: 16px; font: 400 1.3rem var(--letra-titulo); }

/* --- Respaldo -------------------------------------------------------- */
.ep-respaldo { background: var(--salvia); padding: 110px 0; }
.ep-respaldo-rejilla { display: grid; grid-template-columns: 7fr 5fr; gap: 88px; align-items: start; }
.ep-respaldo h2 { color: var(--bosque); font-size: clamp(1.9rem, 3.2vw, 2.8rem); line-height: 1.22; }
.ep-respaldo p { margin: .4rem 0 1.4rem; color: #3b3f33; }
.ep-respaldo-logo { height: 46px; width: auto; margin-bottom: 1.4rem; }
.ep-sellos { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 34px; margin: 0 0 1.8rem; padding: 0; }
.ep-sellos img { height: 38px; width: auto; }
.ep-sellos li:nth-child(2) img { height: 56px; }

/* --- Preguntas ------------------------------------------------------- */
.ep-preguntas { background: var(--papel); padding: 110px 0; }
.ep-preguntas-rejilla { display: grid; grid-template-columns: 4fr 7fr; gap: 88px; }
.ep-preguntas details { border-bottom: 1px solid var(--borde); }
.ep-preguntas summary { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1.25rem 0; cursor: pointer; list-style: none; font-weight: 500; font-size: 1.12rem; color: var(--cafe); }
.ep-preguntas summary::-webkit-details-marker { display: none; }
.ep-preguntas summary::after { content: ''; flex-shrink: 0; width: 10px; height: 10px; border: solid var(--bronce); border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-3px, -3px); transition: transform .2s; }
.ep-preguntas [open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.ep-preguntas details p { margin: 0 0 1.4rem; max-width: 40rem; color: #4d4436; }

.ep-idea :focus-visible, .ep-objetivos :focus-visible, .ep-preguntas :focus-visible { outline-color: var(--bosque); }

/* --- Tableta y móvil -------------------------------------------------- */
@media (max-width: 1100px) {
  .ep-idea-rejilla, .ep-pasos-rejilla, .ep-informe-rejilla, .ep-respaldo-rejilla, .ep-preguntas-rejilla, .ep-objetivos-rejilla { gap: 48px; }
  .ep-hallazgos > div { grid-template-columns: 1fr; gap: .2rem; }
  .ep-seguimiento-rejilla { gap: 48px; }
}
@media (max-width: 900px) {
  .ep-caja { width: min(100% - 40px, 640px); }
  /* En móvil va al final de la tarjeta: sobre la foto tapaba el letrero. */
  .heroe-tarjeta { flex-direction: column; align-items: stretch; }
  .heroe-placa { position: relative; order: 2; right: auto; bottom: auto; margin: 0 22px 24px; padding: .6rem .8rem; justify-content: center; gap: .6rem; box-shadow: none; font-size: .88rem; }
  .heroe-placa img { height: 22px; }
  .ep-idea, .ep-hebra, .ep-pasos, .ep-informe, .ep-objetivos, .ep-seguimiento, .ep-respaldo, .ep-preguntas { padding: 72px 0; }
  .ep-idea-rejilla, .ep-pasos-rejilla, .ep-informe-rejilla, .ep-respaldo-rejilla, .ep-preguntas-rejilla, .ep-objetivos-rejilla, .ep-seguimiento-rejilla, .ep-hebra-cabeza { grid-template-columns: 1fr; gap: 32px; }
  .ep-hebra-cabeza { gap: 18px; margin-bottom: 28px; }
  .ep-respaldo-rejilla, .ep-preguntas-rejilla { gap: 20px; }
  .ep-idea img { height: 300px; }
  .ep-sellos { gap: 12px 18px; }
  .ep-sellos img { height: 30px; }
  .ep-sellos li:nth-child(2) img { height: 46px; }
  .ep-trazo text { display: none; }
  .ep-lectura-lista { position: static; width: auto; height: auto; clip-path: none; overflow: visible; display: flex; flex-wrap: wrap; gap: .35rem 1.2rem; list-style: none; margin: 1.2rem 0 0; padding: 0; color: var(--oro-luz); }
  .ep-objetivos-rejilla { margin-top: 1.8rem; gap: 24px; }
  .ep-objetivos-lista { flex-direction: row; flex-wrap: wrap; gap: .5rem; }
  .ep-objetivos-lista button { flex: none; min-height: 44px; padding: .4rem 1rem; border: 1px solid #cdbfa6; border-radius: 99px; font: 500 .98rem var(--letra); color: var(--cafe); }
  .ep-objetivos-lista button[aria-pressed="true"] { padding-left: 1rem; box-shadow: none; background: var(--bosque); border-color: var(--bosque); color: #fff; }
  .ep-objetivo-tapa { height: 290px; padding-top: 30px; }
  .ep-objetivo-tapa img { width: 220px; }
  .ep-objetivo-texto { padding: 24px 22px 28px; min-height: 0; }
  .ep-dia { grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 32px; }
  .ep-dia span { left: 14px; bottom: 12px; font-size: 1.05rem; }
}
@media (prefers-reduced-motion: reduce) { [class^="ep-"] * { transition: none !important; } }
