/* Test Ley IA — estilos específicos sobre la hoja principal */

.leyia-hero-pin {
  min-height: clamp(420px, 58vh, 620px);
  position: relative;
  display: flex;
  align-items: center;
  padding: clamp(2rem, 4vw, 3.5rem) clamp(1.2rem, 5vw, 5rem);
  background:
    repeating-linear-gradient(45deg, transparent 0 34px, rgba(18,16,12,.045) 34px 36px),
    var(--papel);
  border-bottom: var(--borde);
}

.leyia-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}

.leyia-hero-col-title .hero-kicker {
  margin-bottom: 1rem;
}

.leyia-hero-brand {
  margin: 0 0 1rem;
  line-height: 1.2;
}

.leyia-hero-brand a {
  color: inherit;
  text-decoration: none;
}

.leyia-hero-brand a:hover,
.leyia-hero-brand a:focus {
  color: var(--rojo);
}

.leyia-hero-brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.4vw, 1.65rem);
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.leyia-hero-brand-tag {
  display: block;
  margin-top: 0.35rem;
  font-size: clamp(0.78rem, 1.2vw, 0.92rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.72;
}

.leyia-footer-wordmark {
  display: flex;
  flex-direction: column;
  gap: 0.05em;
  margin: 0 0 2rem;
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 12vw, 10rem);
  line-height: 0.92;
  font-weight: 900;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--amarillo);
  user-select: none;
}

.leyia-footer-wordmark span:last-child {
  color: var(--papel);
}

.page-ley-ia .footer-copy {
  max-width: 52rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.55;
}

.leyia-hero-col-title .section-title {
  margin: 0;
  font-size: clamp(2rem, 4.8vw, 4rem);
  line-height: 0.95;
}

.leyia-hero-col-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-self: center;
  padding-top: 0.5rem;
}

.leyia-hero-lead {
  margin: 0 0 1.35rem;
  max-width: none;
  font-size: clamp(0.98rem, 1.6vw, 1.15rem);
  line-height: 1.55;
}

.leyia-hero-cta {
  margin: 0 0 1rem;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
}

.leyia-hero-cta .btn-brava {
  text-align: center;
  justify-content: center;
}

.leyia-hero-note {
  margin: 0;
  font-size: 0.82rem;
  opacity: 0.72;
  line-height: 1.45;
}

@media (max-width: 991px) {
  .leyia-hero-pin {
    min-height: auto;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  .leyia-hero-grid {
    grid-template-columns: 1fr;
    gap: 1.35rem;
  }

  .leyia-hero-col-side {
    padding-top: 0;
  }

  .leyia-hero-cta {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }

  .leyia-hero-cta .btn-brava {
    flex: 1 1 auto;
  }
}

.leyia-split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.leyia-prose h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 0.75rem;
}

.leyia-prose p {
  line-height: 1.6;
  max-width: 42rem;
}

.leyia-prose a {
  color: var(--rojo);
  font-weight: 700;
}

.leyia-timeline {
  border: var(--borde);
  box-shadow: var(--sombra);
  background: #fff;
  padding: 1.25rem 1.35rem;
}

.leyia-timeline h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin: 0 0 1rem;
  text-transform: uppercase;
}

.leyia-timeline ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.leyia-timeline li {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 0.75rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px dashed rgba(11,15,13,.15);
}

.leyia-timeline li:last-child { border-bottom: 0; padding-bottom: 0; }

.leyia-timeline time {
  font-family: var(--font-display);
  font-size: .78rem;
  letter-spacing: .04em;
  color: var(--rojo);
}

.leyia-timeline li.is-now {
  background: var(--amarillo);
  margin: 0 -0.65rem;
  padding: 0.65rem;
  border: 2px solid var(--negro);
}

.leyia-timeline-footnote {
  margin: 1rem 0 0;
  font-size: .82rem;
  opacity: .85;
}

.leyia-duty-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  max-width: 56rem;
}

/* Sección obligaciones: fondo oscuro + tarjetas blancas con texto marcado */
#obligaciones.compromiso {
  display: block;
}

#obligaciones.compromiso .chapter-head-light {
  border-color: rgba(241, 244, 236, 0.35);
  color: var(--papel);
}

#obligaciones.compromiso .chapter-name {
  color: var(--papel);
}

#obligaciones.compromiso .tarjeta-lead {
  color: var(--papel);
  max-width: 42rem;
  margin-bottom: 1.75rem;
  opacity: 0.92;
}

.leyia-duty-card {
  border: var(--borde);
  box-shadow: 6px 6px 0 var(--amarillo);
  background: #fff;
  padding: 0.85rem 1rem;
  min-height: 100%;
}

.leyia-duty-card .hl {
  margin: 0;
  background: var(--amarillo);
  color: var(--negro);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  display: inline;
  line-height: 1.75;
  padding: 0.12em 0.22em;
  font-size: 0.95rem;
  font-weight: 600;
  word-break: normal;
  overflow-wrap: normal;
}

.leyia-duty-card .hl b {
  color: var(--negro);
  font-weight: 800;
}

.leyia-test-form {
  max-width: 56rem;
}

.leyia-test-block {
  border: var(--borde);
  box-shadow: var(--sombra);
  background: #fff;
  padding: 1.2rem 1.3rem 1.4rem;
  margin: 0 0 1.25rem;
}

.leyia-test-block legend {
  font-family: var(--font-display);
  font-size: .95rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 0 .35rem;
  margin-bottom: .75rem;
}

.leyia-q {
  padding: 1rem 0;
  border-top: 1px dashed rgba(11,15,13,.14);
}

.leyia-q:first-of-type { border-top: 0; padding-top: 0; }

.leyia-q-text {
  margin: 0 0 0.75rem;
  font-weight: 600;
  line-height: 1.45;
  word-break: normal;
  overflow-wrap: normal;
}

.leyia-q-options {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}

.leyia-q-options label {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  border: 2px solid var(--negro);
  padding: .45rem .7rem;
  font-size: .88rem;
  cursor: pointer;
  background: var(--papel);
  transition: background .15s ease, transform .15s ease;
}

.leyia-q-options label:has(input:checked) {
  background: var(--amarillo);
  box-shadow: 3px 3px 0 var(--negro);
}

.leyia-q-options input { accent-color: var(--rojo); }

.leyia-interest {
  border: var(--borde);
  padding: 1rem 1.1rem;
  display: grid;
  gap: 0.7rem;
  background: var(--papel);
  box-shadow: 5px 5px 0 var(--negro);
}

.leyia-interest legend {
  font-family: var(--font-display);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 0.25rem;
  padding: 0;
  width: 100%;
}

.leyia-interest .leyia-interest-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.45;
  text-transform: none;
  letter-spacing: normal;
  cursor: pointer;
  word-break: normal;
  overflow-wrap: normal;
}

.leyia-interest .leyia-interest-item span {
  flex: 1;
  min-width: 0;
}

.leyia-interest input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 1.45rem;
  height: 1.45rem;
  min-width: 1.45rem;
  margin: 0;
  padding: 0;
  border: var(--borde);
  background: #fff;
  box-shadow: 3px 3px 0 var(--negro);
  cursor: pointer;
  flex-shrink: 0;
  display: grid;
  place-items: center;
}

.leyia-interest input[type="checkbox"]:checked {
  background: var(--amarillo);
}

.leyia-interest input[type="checkbox"]:checked::after {
  content: "✓";
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1;
  color: var(--negro);
}

.leyia-interest input[type="checkbox"]:focus-visible {
  outline: 3px solid var(--rojo);
  outline-offset: 2px;
}

.leyia-consent {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.88rem;
  line-height: 1.45;
  text-transform: none;
  letter-spacing: normal;
  font-family: var(--font-body);
  cursor: pointer;
}

.leyia-consent input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 1.45rem;
  height: 1.45rem;
  min-width: 1.45rem;
  margin: 0.15rem 0 0;
  padding: 0;
  border: var(--borde);
  background: #fff;
  box-shadow: 3px 3px 0 var(--negro);
  flex-shrink: 0;
  display: grid;
  place-items: center;
}

.leyia-consent input[type="checkbox"]:checked {
  background: var(--amarillo);
}

.leyia-consent input[type="checkbox"]:checked::after {
  content: "✓";
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1;
}

.leyia-consent a { color: var(--rojo); font-weight: 700; }

/* Panel de envío: captcha + botón + textos centrados */
.leyia-submit-panel {
  margin-top: 2.25rem;
  display: flex;
  justify-content: center;
}

.leyia-submit-panel-inner {
  width: 100%;
  max-width: 34rem;
  text-align: center;
  border: var(--borde);
  background: #fff;
  box-shadow: var(--sombra);
  padding: clamp(1.6rem, 4vw, 2.4rem);
}

.leyia-submit-kicker {
  margin: 0 0 1rem;
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--amarillo);
  color: var(--negro);
  border: var(--borde);
  padding: 0.35rem 0.65rem;
  box-shadow: 4px 4px 0 var(--negro);
}

.leyia-captcha-label {
  display: block;
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-align: center;
}

.leyia-captcha-row {
  justify-content: center;
  margin: 0 auto 0.5rem;
}

.leyia-captcha-row input {
  max-width: 9rem;
  text-align: center;
  letter-spacing: 0.3em;
  font-family: var(--font-display);
}

.leyia-captcha-hint {
  display: block;
  margin: 0 0 1.5rem;
  font-size: 0.78rem;
  opacity: 0.75;
}

.leyia-submit-btn {
  width: 100%;
  padding: 1.05rem 1.25rem;
  font-size: clamp(0.82rem, 2.2vw, 0.98rem);
  letter-spacing: 0.04em;
  background: var(--negro);
  margin: 0;
}

.leyia-submit-btn:hover {
  background: var(--rojo);
  color: #fff;
}

.leyia-submit-foot {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 2px dashed rgba(11, 15, 13, 0.18);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.leyia-form-hint {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--negro);
  opacity: 0.88;
  max-width: 28rem;
  text-align: center;
}

.leyia-form-disclaimer {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--negro);
  opacity: 0.62;
  max-width: 26rem;
  text-align: center;
}

.leyia-form-status {
  width: 100%;
  text-align: center;
  min-height: 1.4em;
}

.leyia-form-status.ok {
  color: var(--rojo);
  font-weight: 700;
}

.leyia-form-status.error {
  color: var(--negro);
  background: var(--amarillo);
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border: 2px solid var(--negro);
}

.leyia-form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 1.25rem;
}

.leyia-result {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  border: var(--borde);
  box-shadow: var(--sombra);
  margin-top: 1.5rem;
  overflow: hidden;
}

.leyia-result[hidden] { display: none; }

.leyia-result-score {
  background: var(--verde);
  color: var(--papel);
  padding: 1.6rem;
}

.leyia-result-label {
  margin: 0;
  font-family: var(--font-display);
  font-size: .85rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .85;
}

.leyia-result-num {
  margin: .35rem 0 .5rem;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 4rem);
  line-height: 1;
}

.leyia-result-max { font-size: .45em; opacity: .75; }

.leyia-result-level {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1rem;
}

.leyia-result-body {
  background: #fff;
  padding: 1.6rem;
}

.leyia-result-body h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 .6rem;
}

.leyia-result-body p { margin: 0 0 .85rem; line-height: 1.55; }

.leyia-result-body ul {
  margin: 0 0 1rem;
  padding-left: 1.1rem;
}

.leyia-result-next {
  font-weight: 700;
  color: var(--rojo) !important;
}

.leyia-result-cta {
  margin: 1.1rem 0 1.35rem;
  padding: 1rem 1.15rem;
  border: var(--borde);
  background: var(--amarillo);
  color: var(--negro);
  font-size: 0.98rem;
  line-height: 1.5;
  box-shadow: 5px 5px 0 rgba(18, 16, 12, 0.2);
}

.leyia-result-cta strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

@media (max-width: 991px) {
  .leyia-split,
  .leyia-duty-grid,
  .leyia-result { grid-template-columns: 1fr; }
  .leyia-timeline li { grid-template-columns: 1fr; gap: .25rem; }
}
