/* =========================================================
   PASO DETALLE (caida.php) — estilo Hermandad
   Usa --brand y --hdr-h de header.css
   ========================================================= */
body{
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text-dark);
  background: #fff;
}
:root{
  --ui-border: rgba(0,0,0,.10);
  --ui-shadow: 0 18px 55px rgba(0,0,0,.14);
}

:root{
  --ui-border: rgba(0,0,0,.10);
  --ui-shadow: 0 18px 55px rgba(0,0,0,.14);
}

#paso-detalle{
  padding: calc(var(--hdr-h) + 34px) clamp(16px, 4vw, 56px) 90px;
  background: #fbfbfd;
  color: rgba(0,0,0,.88);
}

/* Centrado y ancho "bonito" sin parecer isla pequeña */
#paso-detalle{
  max-width: 1200px;
  margin: 0 auto;
}

/* Título principal (como historia) */
.paso-titulo{
  margin: 0 0 18px 0;
  font-size: clamp(2.1rem, 4vw, 3rem);
  line-height: 1.05;
  font-weight: 950;
  color: var(--brand);
  letter-spacing: -0.02em;
}

/* Layout principal: texto izquierda + imagen derecha */
.paso-layout{
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(18px, 3vw, 42px);
  align-items: start;
}

/* Texto */
.paso-texto{
  min-width: 0;
}

/* Intro (mismo rollo que tu “historia”) */
.intro-historia{
  margin: 0 0 18px 0;
  line-height: 1.78;
  color: rgba(0,0,0,.70);
  max-width: 78ch;
}

/* Bloques tipo “historia” con rayita morada */
.bloque-historia{
  margin-top: 18px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.10);
  box-shadow: 0 16px 48px rgba(0,0,0,.10);
  padding: 16px 18px 16px 18px;
  position: relative;
}

/* barra vertical */
.bloque-historia::before{
  content:"";
  position:absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 4px;
  background: var(--brand);
  border-radius: 999px;
}

/* Títulos de bloque con degradadito morado */
.bloque-historia h3{
  margin: 0 0 10px 0;
  padding: 6px 10px 6px 12px;
  font-weight: 950;
  letter-spacing: .06em;
  text-transform: none;
  color: var(--brand);

  background: linear-gradient(
    90deg,
    rgba(75,42,136,.14),
    rgba(75,42,136,.06) 45%,
    transparent 75%
  );
}

/* Firma autor (alineada a la derecha como en tu captura) */
.paso-autor-firma{
  margin: -2px 0 10px 0;
  font-weight: 900;
  color: rgba(0,0,0,.78);
  text-align: right;
}

/* Párrafos dentro de bloques */
.bloque-historia p{
  margin: 0 0 12px 0;
  line-height: 1.75;
  color: rgba(0,0,0,.70);
}

/* Details “Leer más” */
.paso-leer-mas{
  margin-top: 10px;
  border: 1px solid rgba(0,0,0,.12);
  background: #fff;
  padding: 8px 10px;
}

.paso-leer-mas summary{
  cursor: pointer;
  font-weight: 900;
  color: rgba(0,0,0,.78);
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.paso-leer-mas summary::before{
  content:"▶";
  font-size: .85rem;
  color: var(--brand);
  transform: translateY(-1px);
}

.paso-leer-mas[open] summary::before{
  content:"▼";
}

.paso-leer-mas p{
  margin: 10px 0 10px 0;
}

/* Imagen derecha */
.paso-imagen{
  background: #fff;
  border: 1px solid rgba(0,0,0,.10);
  box-shadow: 0 18px 60px rgba(0,0,0,.14);
  overflow: hidden;
}

.paso-imagen picture,
.paso-imagen img{
  display: block;
  width: 100%;
}

.paso-imagen img{
  height: auto;
  object-fit: cover;
}

/* Subtítulo “Esquema del paso” */
.paso-subtitulo{
  margin: 34px 0 14px;
  font-size: 1.15rem;
  font-weight: 950;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: rgba(0,0,0,.86);
  position: relative;
  padding-left: 16px;
}

.paso-subtitulo::before{
  content:"";
  position:absolute;
  left: 0;
  top: .2em;
  width: 4px;
  height: 1.05em;
  background: var(--brand);
  border-radius: 999px;
}

/* Ficha técnica + ilustración */
.paso-ficha{
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(18px, 3vw, 40px);

  background: #fff;
  border: 1px solid rgba(0,0,0,.10);
  box-shadow: 0 16px 48px rgba(0,0,0,.10);
  padding: 18px;
}

.paso-ficha-datos{
  display: grid;
  gap: 14px;
}

.paso-fila{
  position: relative;
  padding: 8px 10px 10px 16px;
  border-bottom: 1px solid rgba(0,0,0,.08);
}

.paso-fila:last-child{
  border-bottom: none;
}

/* mini barra vertical por fila */
.paso-fila::before{
  content:"";
  position:absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 4px;
  background: rgba(75,42,136,.70);
  border-radius: 999px;
}

.paso-fila h3{
  margin: 0 0 6px 0;
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 950;
  color: rgba(0,0,0,.78);
}

.paso-fila p{
  margin: 0;
  line-height: 1.55;
  color: rgba(0,0,0,.72);
}

/* Ilustración */
.paso-ficha-ilustracion{
  display: grid;
  place-items: center;
  padding: 10px;
}

.paso-ficha-ilustracion img{
  width: min(320px, 100%);
  height: auto;
  display: block;
  filter: drop-shadow(0 18px 40px rgba(0,0,0,.18));
}

/* Navegación inferior */
.paso-nav{
  margin-top: 26px;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-secundario{
  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 10px 14px;
  border-radius: 999px;

  border: 1px solid rgba(0,0,0,.18);
  background: #fff;
  text-decoration: none;

  color: rgba(0,0,0,.80);
  font-weight: 900;
  font-size: .9rem;

  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.btn-secundario:hover{
  transform: translateY(-2px);
  border-color: rgba(75,42,136,.35);
  box-shadow: 0 14px 34px rgba(0,0,0,.12);
}

/* Responsive */
@media (max-width: 980px){
  #paso-detalle{
    max-width: 100%;
  }

  .paso-layout{
    grid-template-columns: 1fr;
  }

  .paso-ficha{
    grid-template-columns: 1fr;
  }

  .paso-ficha-ilustracion{
    order: 2;
  }
}

@media (max-width: 520px){
  #paso-detalle{
    padding: calc(var(--hdr-h) + 18px) 12px 60px;
  }

  .bloque-historia{
    padding: 14px 14px 14px 16px;
  }


  .btn-secundario{
    width: 100%;
    justify-content: center;
  }
}
