/* ============================================================
   Librería de Oración — Fervor Católico
   Mobile-first · Marfil #FAF6EF · Tinta #23282F · Azul #1B3A6B · Dorado #C9A227
   ============================================================ */

:root {
  --marfil: #FAF6EF;
  --tinta: #23282F;
  --azul: #1B3A6B;
  --azul-oscuro: #142C52;
  --dorado: #C9A227;
  --blanco: #FFFFFF;
  --gris: #5d6470;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--marfil);
  color: var(--tinta);
  font-family: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.65;
}

h1, h2, h3, .display {
  font-family: "Cormorant Garamond", Georgia, serif;
  color: var(--azul);
  line-height: 1.18;
  margin: 0 0 0.5em 0;
}
h1 { font-size: 2.1rem; font-weight: 600; }
h2 { font-size: 1.65rem; font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em 0; }
a { color: var(--azul); }
img { max-width: 100%; height: auto; display: block; }

.contenedor {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}
.estrecho { max-width: 680px; }

/* ---------- Cabecera ---------- */
.cabecera {
  background: var(--blanco);
  border-bottom: 1px solid #e8e0d0;
  padding: 14px 0;
}
.cabecera .contenedor {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.logo {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--azul);
  text-decoration: none;
}
.logo svg { vertical-align: -3px; margin-right: 6px; }
.nav { display: flex; gap: 18px; flex-wrap: wrap; }
.nav a {
  text-decoration: none;
  color: var(--tinta);
  font-size: 0.95rem;
}
.nav a:hover { color: var(--azul); }

/* ---------- Filete dorado con cruz (elemento firma) ---------- */
.filete-cruz {
  height: 26px;
  margin: 18px auto;
  max-width: 300px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 240px 22px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 240 22"><g fill="none" stroke="%23C9A227" stroke-width="1.2"><line x1="0" y1="11" x2="102" y2="11"/><line x1="138" y1="11" x2="240" y2="11"/><line x1="120" y1="3" x2="120" y2="19"/><line x1="113" y1="8" x2="127" y2="8"/></g><circle cx="102" cy="11" r="1.6" fill="%23C9A227"/><circle cx="138" cy="11" r="1.6" fill="%23C9A227"/></svg>');
}

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding: 44px 0 28px 0;
}
.hero h1 { font-size: 2.2rem; }
.hero .subhead {
  font-size: 1.1rem;
  color: var(--gris);
  max-width: 620px;
  margin: 0 auto 1em auto;
}

/* ---------- Botones ---------- */
.boton, .boton-secundario {
  display: block;
  width: 100%;
  min-height: 56px;
  padding: 15px 28px;
  border: none;
  border-radius: 8px;
  font-family: "Source Sans 3", Arial, sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  line-height: 1.3;
}
.boton {
  background: var(--azul);
  color: var(--blanco);
}
.boton:hover { background: var(--azul-oscuro); }
.boton-secundario {
  background: var(--blanco);
  color: var(--azul);
  border: 2px solid var(--azul);
}
.micro {
  font-size: 0.9rem;
  color: var(--gris);
  text-align: center;
  margin-top: 10px;
}

/* ---------- Secciones y tarjetas ---------- */
.seccion { padding: 40px 0; }
.seccion-blanca { background: var(--blanco); }
.seccion h2 { text-align: center; }

.tarjetas {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 28px;
}
.tarjeta {
  background: var(--blanco);
  border: 1px solid #e8e0d0;
  border-radius: 12px;
  padding: 26px 22px;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
}
.tarjeta img { margin: 0 auto 16px auto; max-width: 200px; box-shadow: 0 6px 18px rgba(35,40,47,0.18); }
.tarjeta .precio {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.7rem;
  color: var(--azul);
  font-weight: 700;
  margin: 8px 0;
}
.tarjeta .boton { margin-top: auto; }
.etiqueta-destacada {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--dorado);
  color: var(--blanco);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 999px;
  white-space: nowrap;
}
.tarjeta-destacada { border: 2px solid var(--dorado); }

/* ---------- Portada de libro en landing ---------- */
.portada-hero {
  max-width: 260px;
  margin: 0 auto 22px auto;
  box-shadow: 0 10px 30px rgba(35,40,47,0.25);
  border-radius: 4px;
}

/* ---------- Listas espejo (dolores) ---------- */
.lista-espejo {
  list-style: none;
  padding: 0;
  max-width: 620px;
  margin: 0 auto;
}
.lista-espejo li {
  padding: 12px 0 12px 34px;
  border-bottom: 1px solid #eee5d2;
  position: relative;
}
.lista-espejo li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 16px;
  width: 16px;
  height: 16px;
  background-repeat: no-repeat;
  background-size: 16px 16px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><g stroke="%23C9A227" stroke-width="1.6" fill="none"><line x1="8" y1="1.5" x2="8" y2="14.5"/><line x1="3.5" y1="5.5" x2="12.5" y2="5.5"/></g></svg>');
}

/* ---------- Índice comentado ---------- */
.indice {
  list-style: none;
  padding: 0;
  max-width: 640px;
  margin: 0 auto;
}
.indice li {
  background: var(--blanco);
  border: 1px solid #e8e0d0;
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 12px;
}
.indice li strong { color: var(--azul); }
.paginas-interiores {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 560px;
  margin: 24px auto 0 auto;
}
.paginas-interiores img {
  border: 1px solid #e8e0d0;
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(35,40,47,0.12);
}

/* ---------- Testimonios ---------- */
.testimonios {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  max-width: 640px;
  margin: 24px auto 0 auto;
}
.testimonio {
  background: var(--blanco);
  border-left: 3px solid var(--dorado);
  border-radius: 0 10px 10px 0;
  padding: 18px 20px;
  font-style: italic;
}
.testimonio .autor {
  display: block;
  margin-top: 8px;
  font-style: normal;
  font-weight: 700;
  color: var(--azul);
  font-size: 0.95rem;
}

/* ---------- Garantía ---------- */
.garantia {
  background: var(--blanco);
  border: 1px dashed var(--dorado);
  border-radius: 12px;
  padding: 24px 22px;
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}

/* ---------- FAQ ---------- */
.faq { max-width: 640px; margin: 0 auto; }
.faq details {
  background: var(--blanco);
  border: 1px solid #e8e0d0;
  border-radius: 10px;
  margin-bottom: 12px;
  padding: 0 18px;
}
.faq summary {
  font-weight: 700;
  color: var(--azul);
  padding: 16px 0;
  cursor: pointer;
  list-style-position: inside;
}
.faq details p { padding-bottom: 16px; margin: 0; }

/* ---------- Tabla comparativa ---------- */
.tabla-envoltura { overflow-x: auto; margin-top: 24px; }
.comparativa {
  width: 100%;
  border-collapse: collapse;
  background: var(--blanco);
  border-radius: 12px;
  overflow: hidden;
  min-width: 480px;
}
.comparativa th, .comparativa td {
  padding: 13px 12px;
  text-align: center;
  border-bottom: 1px solid #eee5d2;
  font-size: 0.98rem;
}
.comparativa th {
  background: var(--azul);
  color: var(--blanco);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.1rem;
}
.comparativa td:first-child { text-align: left; font-weight: 600; }
.comparativa .col-destacada { background: #fdf8ea; }
.check { color: var(--dorado); font-weight: 700; }

/* ---------- Formulario ---------- */
.formulario {
  background: var(--blanco);
  border: 1px solid #e8e0d0;
  border-radius: 12px;
  padding: 28px 22px;
  max-width: 480px;
  margin: 0 auto;
}
.formulario input[type="email"] {
  width: 100%;
  min-height: 54px;
  padding: 12px 16px;
  font-size: 1.05rem;
  border: 1px solid #cfc6b2;
  border-radius: 8px;
  margin-bottom: 14px;
  background: var(--marfil);
  color: var(--tinta);
}
.formulario input[type="email"]:focus {
  outline: 2px solid var(--azul);
  border-color: var(--azul);
}

/* ---------- Bloques de entrega ---------- */
.caja-descarga {
  background: var(--blanco);
  border: 2px solid var(--dorado);
  border-radius: 12px;
  padding: 30px 22px;
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}
.pasos { max-width: 560px; margin: 0 auto; padding-left: 1.3em; }
.pasos li { margin-bottom: 10px; }

/* ---------- Oferta discreta ---------- */
.oferta-discreta {
  background: #fdf8ea;
  border: 1px solid var(--dorado);
  border-radius: 12px;
  padding: 24px 22px;
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}

/* ---------- Pie ---------- */
.pie {
  background: var(--azul);
  color: #dfe6f2;
  padding: 36px 0;
  margin-top: 48px;
  font-size: 0.95rem;
}
.pie a { color: var(--blanco); }
.pie .contenedor { text-align: center; }
.pie .filete-cruz { filter: brightness(1.3); }

/* ---------- Legales ---------- */
.legal-texto { max-width: 680px; margin: 0 auto; }
.legal-texto h2 { text-align: left; font-size: 1.35rem; margin-top: 1.6em; }

/* ---------- Escritorio ---------- */
@media (min-width: 720px) {
  h1 { font-size: 2.8rem; }
  .hero h1 { font-size: 2.9rem; }
  .hero { padding: 64px 0 40px 0; }
  .tarjetas { grid-template-columns: repeat(3, 1fr); }
  .boton, .boton-secundario {
    display: inline-block;
    width: auto;
    min-width: 320px;
  }
  .testimonios { grid-template-columns: 1fr; }
  .dos-columnas {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 44px;
    align-items: start;
  }
}
