/* Deísmo Armónico, deismoarmonico.com
   Paleta: azul profundo + dorado, texto marfil.
   Tipografía: Cormorant Garamond (titulares), sans sobria del sistema (cuerpo). */

:root {
  --azul-profundo: #0b1e3a;
  --azul-noche: #060f1e;
  --azul-tinta: #12294a;
  --dorado: #c9a227;
  --dorado-claro: #e3c766;
  --marfil: #f6f1e7;
  --marfil-tenue: #efe7d6;
  --texto-oscuro: #22314a;
  --texto-suave: #5a6b85;
  --maxw: 1080px;
  --maxw-narrow: 720px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--texto-oscuro);
  background: var(--marfil);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 1rem;
}

h1 { font-size: clamp(2.6rem, 7vw, 4.5rem); letter-spacing: 0.01em; }
h2 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); }
h3 { font-size: 1.5rem; }

p { margin: 0 0 1.1rem; }

a { color: var(--dorado); }
a:hover { color: var(--dorado-claro); }

img { max-width: 100%; height: auto; display: block; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }
.container.narrow { max-width: var(--maxw-narrow); }

.section { padding: 4.5rem 0; }
.section-light { background: var(--marfil); color: var(--texto-oscuro); }
.section-dark { background: var(--azul-profundo); color: var(--marfil); }
.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--marfil); }

.has-bg {
  background-size: cover;
  background-position: center;
  position: relative;
}
.has-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(6, 15, 30, 0.72);
}
.section-light.has-bg::before { background: rgba(246, 241, 231, 0.88); }
.has-bg > .container { position: relative; z-index: 1; }

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dorado);
  margin-bottom: 1rem;
  font-weight: 600;
}

.section-lead { font-size: 1.15rem; max-width: 44rem; }

/* Hero */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 2.5rem;
  padding: 5rem 1.5rem 4rem;
  background: var(--azul-noche) url("assets/hero-bg.jpg") center/cover no-repeat;
  color: var(--marfil);
  position: relative;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(6, 15, 30, 0.62), rgba(6, 15, 30, 0.78));
}
.hero-inner, .hero-cover { position: relative; z-index: 1; }
.hero-inner { max-width: 46rem; }
.hero h1 { color: var(--marfil); margin-bottom: 1.25rem; }
.hero-sub {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.2rem, 2.8vw, 1.5rem);
  line-height: 1.5;
  color: var(--marfil-tenue);
  max-width: 38rem;
  margin: 0 auto 2rem;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.hero-social { margin-top: 1.25rem; font-size: 0.95rem; color: var(--marfil-tenue); }
.hero-social a { color: var(--dorado-claro); }
.hero-note { margin-top: 1rem; font-size: 0.95rem; color: var(--marfil-tenue); }
.section-cta { margin-top: 1.75rem; text-align: center; }
.hero-cover img {
  width: min(300px, 70vw);
  border-radius: 6px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(201, 162, 39, 0.35);
}

.btn {
  display: inline-block;
  padding: 0.85rem 1.9rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary {
  background: var(--dorado);
  color: #1a1405;
  box-shadow: 0 8px 24px rgba(201, 162, 39, 0.35);
}
.btn-primary:hover { background: var(--dorado-claro); color: #1a1405; transform: translateY(-1px); }
.btn-secondary {
  border: 1px solid rgba(201, 162, 39, 0.7);
  color: var(--marfil);
  background: transparent;
}
.btn-secondary:hover { background: rgba(201, 162, 39, 0.12); color: var(--marfil); }

/* Pilares */
.pillars { display: flex; justify-content: center; margin: 2.5rem 0 1rem; }
.pillar {
  background: rgba(246, 241, 231, 0.06);
  border: 1px solid rgba(201, 162, 39, 0.4);
  border-radius: 10px;
  padding: 1.6rem;
}
.pillar h3, .pillar h4 { color: var(--dorado-claro); margin-bottom: 0.5rem; }
.pillar p { margin: 0; color: var(--marfil-tenue); font-size: 0.98rem; }
.pillar-center { max-width: 34rem; text-align: center; border-width: 2px; }
.pillar-group-title {
  color: var(--dorado);
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  margin: 2.5rem 0 1.25rem;
}
.pillars-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

/* Libro */
.toc { list-style: none; padding: 0; margin: 0 0 1.5rem; counter-reset: mov; }
.toc li {
  counter-increment: mov;
  padding: 1.1rem 0 1.1rem 3.2rem;
  position: relative;
  border-bottom: 1px solid rgba(34, 49, 74, 0.14);
}
.toc li::before {
  content: counter(mov, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1.05rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.4rem;
  color: var(--dorado);
}

/* FAQ */
.faq { margin: 0; }
.faq-item {
  border-bottom: 1px solid rgba(34, 49, 74, 0.14);
  padding: 1.25rem 0;
}
.faq-item dt {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.faq-item dd { margin: 0; color: #4d5e77; }

/* Pre-registro */
.prereg-form { margin-top: 1.75rem; }
.field { margin-bottom: 1.1rem; }
.field label {
  display: block;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dorado-claro);
  margin-bottom: 0.4rem;
  font-weight: 600;
}
.field input {
  width: 100%;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid rgba(201, 162, 39, 0.45);
  background: rgba(246, 241, 231, 0.08);
  color: var(--marfil);
}
.field input::placeholder { color: rgba(246, 241, 231, 0.45); }
.field input:focus {
  outline: 2px solid var(--dorado);
  outline-offset: 1px;
  background: rgba(246, 241, 231, 0.12);
}

/* Footer */
.footer {
  background: var(--azul-noche);
  color: var(--marfil-tenue);
  text-align: center;
  padding: 3rem 1.5rem 2.5rem;
}
.signature {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.6rem;
  color: var(--marfil);
  margin: 0 0 0.4rem;
}
.signature::after {
  content: "";
  display: block;
  width: 72px;
  height: 2px;
  background: var(--dorado);
  margin: 0.7rem auto 1.2rem;
}
.footer-links { margin: 0 0 1rem; }
.footer-links a { color: var(--dorado-claro); text-decoration: none; margin: 0 0.4rem; }
.footer-links a:hover { text-decoration: underline; }
.copyright { font-size: 0.85rem; color: rgba(246, 241, 231, 0.55); margin: 0; }

@media (min-width: 700px) {
  .pillars-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { flex-direction: row; text-align: left; gap: 4rem; }
  .hero-inner { max-width: 34rem; }
  .hero-sub { margin: 0 0 2rem; }
  .hero-ctas { justify-content: flex-start; }
  .hero-cover img { width: 300px; }
}

@media (min-width: 1024px) {
  .pillars-grid { grid-template-columns: repeat(4, 1fr); }
  .section { padding: 6rem 0; }
}

/* Aviso de privacidad junto al formulario */
.privacy-note {
  margin-top: 1.25rem;
  font-size: 0.85rem;
  line-height: 1.6;
  color: rgba(246, 241, 231, 0.85);
}
.privacy-note a { color: var(--dorado-claro); }

/* Páginas legales */
.legal { padding: 4rem 0 5rem; }
.legal h1 { margin-bottom: 0.5rem; }
.legal .updated { color: var(--texto-suave); font-size: 0.9rem; margin-bottom: 2rem; }
.legal h2 { font-size: 1.5rem; margin-top: 2.25rem; }
.legal a { color: #8a6d1a; }
.back-home { display: inline-block; margin-top: 2.5rem; }
