/* Página de políticas: complementa site.css sin modificarlo. */

.pol-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.pol-hero { padding-bottom: 150px; }
.pol-hero__lead { max-width: 560px; margin: 30px 0 0; color: var(--ink-soft); font-size: 1.12rem; }
.pol-hero__meta { margin: 16px 0 0; color: #6b706d; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }

/* Resumen rápido: sube sobre el encabezado */
.pol-facts { position: relative; margin-top: -90px; }
.pol-facts__grid { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); }
.pol-fact { padding: 28px 26px; display: grid; align-content: start; gap: 6px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pol-fact:nth-child(4n) { border-right: 0; }
.pol-fact:nth-last-child(-n + 4) { border-bottom: 0; }
.pol-fact svg { width: 28px; height: 28px; margin-bottom: 10px; fill: none; stroke: var(--terracotta-dark); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.pol-fact__label { color: #6b706d; font-size: .66rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.pol-fact strong { font-family: var(--serif); font-size: 1.45rem; font-weight: 400; line-height: 1.15; }

.pol-facts + .legal-layout { padding-top: 90px; }
.legal-aside a { padding: 2px 0; border-left: 2px solid transparent; transition: color .2s; }
.legal-aside a:hover { color: var(--terracotta-dark); }
.policy-card { scroll-margin-top: 110px; }
.policy-card:first-child { border-top: 0; padding-top: 0; }
.policy-card ul { padding-left: 1.1em; }
.policy-card li { margin-bottom: 8px; }
.policy-card li::marker { color: var(--terracotta); }
.policy-card strong { color: var(--ink); }
.policy-card a { color: var(--terracotta-dark); text-decoration: underline; text-underline-offset: 3px; }
.pol-small { font-size: .9rem; }

/* Línea de tiempo de cancelación */
.pol-timeline { margin: 26px 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pol-timeline__step { position: relative; padding: 30px 22px 0 0; display: grid; align-content: start; gap: 4px; border-top: 3px solid var(--sage); }
.pol-timeline__step::before { content: ""; position: absolute; top: -9px; left: 0; width: 15px; height: 15px; border-radius: 50%; background: var(--white); border: 3px solid currentColor; color: var(--sage); }
.pol-timeline__step.is-warn { border-top-color: #d49a3a; }
.pol-timeline__step.is-warn::before { color: #d49a3a; }
.pol-timeline__step.is-stop { border-top-color: var(--terracotta-dark); }
.pol-timeline__step.is-stop::before { color: var(--terracotta-dark); }
.pol-timeline__when { color: #6b706d; font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.pol-timeline__step strong { font-family: var(--serif); font-size: 1.3rem; font-weight: 400; line-height: 1.2; }
.pol-timeline__step span:last-child:not(.pol-timeline__when) { color: #565d5a; font-size: .9rem; }

.pol-note { margin: 0 0 18px; padding: 22px 24px; background: var(--blue); color: var(--white); }
.pol-note strong { color: #efd19a; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
.policy-card .pol-note p { margin: 8px 0 0; color: rgba(255, 255, 255, .82); }

/* Preguntas frecuentes */
.pol-faq { border-top: 1px solid var(--line); }
.pol-faq details { border-bottom: 1px solid var(--line); }
.pol-faq summary { position: relative; padding: 20px 44px 20px 0; cursor: pointer; font-family: var(--serif); font-size: 1.25rem; line-height: 1.3; list-style: none; }
.pol-faq summary::-webkit-details-marker { display: none; }
.pol-faq summary::after { content: "+"; position: absolute; top: 50%; right: 4px; transform: translateY(-50%); color: var(--terracotta-dark); font-family: var(--sans); font-size: 1.6rem; font-weight: 300; transition: transform .2s; }
.pol-faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.pol-faq summary:hover { color: var(--terracotta-dark); }
.pol-faq details p { margin: 0 0 22px; }

/* Llamada final */
.pol-cta { padding: 90px 0; background: var(--blue); color: var(--white); }
.pol-cta__inner { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 36px; }
.pol-cta h2 { margin: 0; font-family: var(--serif); font-size: clamp(2.4rem, 4vw, 4rem); font-weight: 400; line-height: 1; }
.pol-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.pol-cta__actions .button { border-radius: 3px; }
.pol-button--light { border-color: rgba(255, 255, 255, .6); background: transparent; color: var(--white); }
.pol-button--light:hover { background: var(--white); color: var(--ink); filter: none; }

/* Modo revisión: /politicas#revisar resalta lo pendiente de confirmar */
.pol-review-banner { display: none; }
body:has(#revisar:target) .pol-review-banner { display: block; position: sticky; top: 0; z-index: 60; margin: 0; padding: 10px 16px; background: #ffe58a; color: #3d3100; font-size: .85rem; font-weight: 700; text-align: center; }
body:has(#revisar:target) [data-confirmar] { outline: 2px dashed #c79a00; outline-offset: 4px; background: #fff6cc; }
body:has(#revisar:target) [data-confirmar]::after { content: "Confirmar: " attr(data-confirmar); display: block; margin-top: 8px; color: #6b5200; font-family: var(--sans); font-size: .78rem; font-weight: 700; line-height: 1.4; }
body:has(#revisar:target) .pol-note[data-confirmar] { color: var(--ink); }
body:has(#revisar:target) .pol-note[data-confirmar] p { color: var(--ink-soft); }

@media (max-width: 1060px) {
  .pol-facts__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pol-fact:nth-child(4n) { border-right: 1px solid var(--line); }
  .pol-fact:nth-child(2n) { border-right: 0; }
  .pol-fact:nth-last-child(-n + 4) { border-bottom: 1px solid var(--line); }
  .pol-fact:nth-last-child(-n + 2) { border-bottom: 0; }
}

@media (max-width: 580px) {
  .pol-hero { padding-bottom: 110px; }
  .pol-facts { margin-top: -70px; }
  .pol-fact { padding: 20px 16px; }
  .pol-fact strong { font-size: 1.15rem; }
  .pol-facts + .legal-layout { padding-top: 60px; }
  .pol-timeline { grid-template-columns: 1fr; gap: 0; border-left: 3px solid var(--sage); margin-left: 6px; }
  .pol-timeline__step { padding: 0 0 22px 22px; border-top: 0; }
  .pol-timeline__step::before { top: 2px; left: -9px; }
  .pol-cta { padding: 66px 0; }
  .pol-cta__actions .button { width: 100%; }
}
