/* Páginas informativas: nosotros, contacto, envíos, preguntas frecuentes y legales. */

/* ---------- Encabezado ---------- */
.page-hero { padding-block: clamp(2rem, 6vw, 4rem) clamp(1.5rem, 4vw, 2.5rem); }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.25rem); line-height: 1.05; margin: .5rem 0 1rem; }
.page-hero .lead { color: var(--rs-muted); max-width: 640px; font-size: 1.1rem; margin-bottom: 0; }
.page-section { margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.page-section-title { font-size: clamp(1.35rem, 2.5vw, 1.75rem); margin-bottom: 1.25rem; }

/* ---------- Tarjetas con ícono ---------- */
.info-card { padding: 1.5rem; height: 100%; }
.info-card h3 { font-size: 1.1rem; margin: 1rem 0 .4rem; }
.info-card p { color: var(--rs-muted); margin-bottom: 0; }
.info-icon {
  width: 48px; height: 48px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--rs-surface-2); font-size: 1.1rem;
}
.info-icon-dark { background: var(--rs-ink); color: #fff; }
a.info-card { color: var(--rs-ink); text-decoration: none; }

/* ---------- Banda oscura (envío gratis, llamados a la acción) ---------- */
.dark-band {
  background: var(--rs-ink); color: #fff; border-radius: var(--rs-radius-lg);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}
.dark-band .eyebrow { color: rgba(255, 255, 255, .6); }
.dark-band p { color: rgba(255, 255, 255, .75); margin-bottom: 0; }
.dark-band-amount { font-family: var(--rs-font-mono); font-weight: 700; font-size: clamp(2rem, 6vw, 3rem); line-height: 1; }

/* ---------- Pasos numerados ---------- */
.steps { counter-reset: step; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.step { padding: 1.25rem; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--rs-font-mono); font-size: .8rem; color: var(--rs-muted); letter-spacing: .1em;
}
.step h3 { font-size: 1rem; margin: .5rem 0 .3rem; }
.step p { font-size: .9rem; color: var(--rs-muted); margin: 0; }

/* ---------- Formas de envío y tarifas ---------- */
.method-card { padding: 1.5rem; }
.method-head { display: flex; gap: 1rem; align-items: flex-start; }
.method-head h3 { font-size: 1.15rem; margin: 0 0 .25rem; }
.method-head p { color: var(--rs-muted); margin: 0; }
.method-free {
  display: inline-block; margin-top: .5rem; padding: .2rem .6rem; border-radius: 999px;
  background: var(--rs-surface-2); font-size: .8rem; font-weight: 600;
}
.rate-table { width: 100%; margin-top: 1.25rem; border-collapse: collapse; font-size: .95rem; }
.rate-table th {
  font-family: var(--rs-font-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--rs-muted); font-weight: 400; padding: 0 .5rem .5rem 0; text-align: left;
}
.rate-table td { padding: .7rem .5rem .7rem 0; border-top: 1px solid var(--rs-border); vertical-align: top; }
.rate-table .rate-price { font-family: var(--rs-font-mono); font-weight: 700; text-align: right; white-space: nowrap; padding-right: 0; }
.rate-table th.rate-price { font-weight: 400; }
.rate-empty { margin-top: 1rem; padding: .9rem 1rem; border-radius: var(--rs-radius-sm); background: var(--rs-bg); font-size: .9rem; color: var(--rs-muted); }

/* ---------- Preguntas frecuentes ---------- */
.faq-search { position: relative; max-width: 520px; }
.faq-search i { position: absolute; left: 1.1rem; top: 50%; transform: translateY(-50%); color: var(--rs-muted); }
.faq-search input { padding-left: 2.75rem; border-radius: 999px; height: 52px; background: var(--rs-surface); }
.faq-tabs { display: flex; flex-wrap: wrap; gap: .5rem; }
.faq-tabs a {
  padding: .4rem .9rem; border-radius: 999px; background: var(--rs-surface); box-shadow: var(--rs-shadow);
  font-size: .9rem; font-weight: 600; color: var(--rs-ink); text-decoration: none;
}
.faq-tabs a:hover { background: var(--rs-surface-2); }
.faq-group { scroll-margin-top: 90px; }
.faq-list { padding: .25rem 1.25rem; }
.faq-item { border-top: 1px solid var(--rs-border); }
.faq-item:first-child { border-top: 0; }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; gap: 1rem; justify-content: space-between; align-items: center;
  padding: 1.1rem 0; font-weight: 600;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; flex: 0 0 28px; height: 28px; border-radius: 50%; background: var(--rs-surface-2);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 400; font-size: 1.2rem;
  transition: transform .2s ease;
}
[open] > summary::after { transform: rotate(45deg); }
.faq-answer { color: var(--rs-ink-soft); padding-bottom: 1.1rem; max-width: 720px; }
.faq-answer p:last-child { margin-bottom: 0; }

/* ---------- Contacto ---------- */
.contact-form { padding: clamp(1.25rem, 4vw, 2rem); }
.topic-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.topic-chips input { position: absolute; opacity: 0; pointer-events: none; }
.topic-chips label {
  padding: .45rem .9rem; border-radius: 999px; border: 1px solid var(--rs-border); background: var(--rs-surface);
  font-size: .9rem; font-weight: 600; cursor: pointer; transition: background .15s ease;
}
.topic-chips input:checked + label { background: var(--rs-ink); border-color: var(--rs-ink); color: #fff; }
.topic-chips input:focus-visible + label { outline: 2px solid var(--rs-ink); outline-offset: 2px; }
.contact-line { display: flex; gap: 1rem; align-items: center; padding: 1rem 0; border-top: 1px solid var(--rs-border); color: var(--rs-ink); text-decoration: none; }
.contact-line:first-child { border-top: 0; padding-top: 0; }
.contact-line small { display: block; color: var(--rs-muted); }
.contact-line .fa-arrow-right { margin-left: auto; color: var(--rs-muted); }

/* ---------- Nosotros ---------- */
.about-quote { font-size: clamp(1.4rem, 3.5vw, 2.1rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.about-number { font-family: var(--rs-font-mono); font-weight: 700; font-size: clamp(1.6rem, 4vw, 2.25rem); line-height: 1; }
.chip-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip-list a {
  padding: .5rem 1rem; border-radius: 999px; background: var(--rs-surface); box-shadow: var(--rs-shadow);
  color: var(--rs-ink); text-decoration: none; font-weight: 600;
}
.chip-list a:hover { background: var(--rs-surface-2); }

/* ---------- Textos legales ---------- */
.legal { display: grid; gap: 2rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 992px) {
  .legal { grid-template-columns: 240px minmax(0, 1fr); gap: 3rem; }
  .legal-toc { position: sticky; top: 100px; align-self: start; }
}
.legal-toc ol { list-style: none; padding: 0; margin: 0; counter-reset: toc; }
.legal-toc li { counter-increment: toc; }
.legal-toc a { display: flex; gap: .6rem; padding: .35rem 0; color: var(--rs-muted); text-decoration: none; font-size: .9rem; }
.legal-toc a::before { content: counter(toc, decimal-leading-zero); font-family: var(--rs-font-mono); font-size: .75rem; padding-top: .1rem; }
.legal-toc a:hover { color: var(--rs-ink); }
.prose { padding: clamp(1.25rem, 4vw, 2.5rem); max-width: 820px; }
.prose section { scroll-margin-top: 90px; }
.prose section + section { border-top: 1px solid var(--rs-border); margin-top: 2rem; padding-top: 2rem; }
.prose h2 { font-size: 1.3rem; margin-bottom: 1rem; }
.prose p, .prose li { color: var(--rs-ink-soft); line-height: 1.65; }
.prose ul { padding-left: 1.2rem; }
.prose li + li { margin-top: .35rem; }
.prose .note { background: var(--rs-bg); border-radius: var(--rs-radius-sm); padding: 1rem 1.25rem; }

/* Pie de cada página: ayuda por WhatsApp */
.help-band { display: flex; flex-direction: row; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; }

@media print {
  .site-navbar, .announcement-bar, .site-footer, .legal-toc, .help-band { display: none !important; }
  .prose { box-shadow: none; padding: 0; }
}
