/* ============================================================
   Guardianes del Velo — hoja de estilos
   Paleta: blanco hueso + verde del Velo
   ============================================================ */

:root {
  --hueso:        #FAF4EA;  /* fondo general */
  --hueso-marca:  #F2E8DC;  /* el hueso de la identidad, para bloques */
  --hueso-linea:  #E2D5C2;  /* filetes y separadores */
  --tinta:        #1B1714;
  --tinta-suave:  #4A423B;
  --verde:        #2C5B3F;
  --verde-hondo:  #1D4029;
  --verde-halo:   rgba(120, 178, 122, 0.30);
  --noche:        #14110F;

  --serif: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --sans:  -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
           "Helvetica Neue", Arial, sans-serif;

  --ancho: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--hueso);
  color: var(--tinta);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--verde); }

:focus-visible {
  outline: 2px solid var(--verde);
  outline-offset: 3px;
}

.saltar {
  position: absolute;
  left: -9999px;
  background: var(--tinta);
  color: var(--hueso);
  padding: .7rem 1.2rem;
  z-index: 10;
}
.saltar:focus { left: 1rem; top: 1rem; }

/* ── Cabecera ───────────────────────────────────────────── */

.cabecera {
  max-width: var(--ancho);
  margin: 0 auto;
  padding: 1.4rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.marca {
  display: flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  color: var(--tinta);
}

.marca-logo { width: 30px; height: auto; }

.marca-texto {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.02rem;
  font-weight: normal;
  letter-spacing: .04em;
}

.navegacion { display: flex; gap: 1.6rem; }

.navegacion a {
  color: var(--tinta-suave);
  text-decoration: none;
  font-size: .88rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}

.navegacion a:hover { color: var(--verde); border-bottom-color: var(--verde); }

/* ── Portada ────────────────────────────────────────────── */

.portada {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 6rem 1.5rem 7rem;
  text-align: center;
}

.halo {
  position: absolute;
  top: 30%;
  left: 50%;
  width: min(680px, 92vw);
  height: 340px;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, var(--verde-halo), transparent 68%);
  filter: blur(14px);
  pointer-events: none;
  animation: respirar 7s ease-in-out infinite;
}

@keyframes respirar {
  0%, 100% { opacity: .55; transform: translate(-50%, -50%) scale(1); }
  50%      { opacity: 1;   transform: translate(-50%, -50%) scale(1.07); }
}

.antetitulo {
  position: relative;
  margin: 0 0 1.4rem;
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--tinta-suave);
}

.antetitulo--centrado { text-align: center; margin-bottom: 3rem; }

.llamada {
  position: relative;
  margin: 0 0 1.8rem;
  font-family: var(--serif);
  font-size: clamp(2.9rem, 9vw, 5.6rem);
  line-height: 1.05;
  color: var(--verde-hondo);
  animation: llegar 2.2s cubic-bezier(.19, 1, .22, 1) both;
}

.llamada em { font-style: italic; }

@keyframes llegar {
  from { opacity: 0; filter: blur(11px); transform: translateY(14px); }
  to   { opacity: 1; filter: blur(0);    transform: translateY(0); }
}

.entradilla {
  position: relative;
  max-width: 34rem;
  margin: 0 auto 2.6rem;
  font-size: 1.08rem;
  color: var(--tinta-suave);
  animation: llegar 2.2s cubic-bezier(.19, 1, .22, 1) .5s both;
}

.boton {
  display: inline-block;
  background: var(--verde);
  color: var(--hueso);
  text-decoration: none;
  padding: .85rem 2rem;
  font-size: .88rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background .2s ease;
}

.boton:hover { background: var(--verde-hondo); }

/* ── Marco provisional de imagen ────────────────────────── */

.hueco {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--hueso-marca);
  border: 1px dashed rgba(27, 23, 20, .28);
  color: var(--tinta-suave);
  font-size: .8rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.hueco--cubierta { aspect-ratio: 2 / 3; }

/* ── El mundo ───────────────────────────────────────────── */

.mundo {
  max-width: var(--ancho);
  margin: 0 auto;
  padding: 4rem 1.5rem 5rem;
  border-top: 1px solid var(--hueso-linea);
}

.cartas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2.4rem;
}

.carta-img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.carta-titulo {
  margin: 1.3rem 0 .5rem;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: normal;
}

.carta-texto { margin: 0; color: var(--tinta-suave); }

/* ── El libro ───────────────────────────────────────────── */

.libro {
  max-width: var(--ancho);
  margin: 0 auto;
  padding: 5rem 1.5rem 6rem;
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  gap: 4rem;
  align-items: start;
  border-top: 1px solid var(--hueso-linea);
}

.cubierta-img {
  width: 100%;
  height: auto;
  box-shadow: 0 18px 40px rgba(27, 23, 20, .22);
}

.proximamente {
  display: inline-block;
  margin: 0;
  padding: .8rem 1.9rem;
  border: 1px solid var(--verde);
  border-radius: 2px;
  color: var(--verde);
  font-size: .88rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.libro-titulo {
  margin: 0 0 1.6rem;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  font-weight: normal;
  line-height: 1.1;
}

.libro-texto p { margin: 0 0 1.2rem; }

.pie-libro {
  margin: 2rem 0;
  padding-top: 1.4rem;
  border-top: 1px solid var(--hueso-linea);
  font-size: .94rem;
  color: var(--tinta-suave);
}

.nota {
  margin: 1rem 0 0;
  font-size: .86rem;
  color: var(--tinta-suave);
}

/* ── Pie ────────────────────────────────────────────────── */

.pie {
  background: var(--noche);
  color: var(--hueso);
  text-align: center;
  padding: 4rem 1.5rem 3rem;
}

.pie-logo {
  width: 38px;
  margin: 0 auto 1.4rem;
  opacity: .85;
}

.pie-frase {
  margin: 0 0 2rem;
  font-family: var(--serif);
  font-size: 1.15rem;
}

.pie-contacto { margin: 0 0 2.4rem; }

.pie-invitacion {
  margin: 0 0 1.1rem;
  font-size: .95rem;
  color: rgba(250, 244, 234, .7);
}

.pie-boton {
  display: inline-block;
  border: 1px solid rgba(250, 244, 234, .4);
  border-radius: 2px;
  padding: .75rem 1.8rem;
  color: var(--hueso);
  text-decoration: none;
  font-size: .88rem;
  letter-spacing: .08em;
  transition: border-color .2s ease, background .2s ease;
}

.pie-boton:hover {
  border-color: var(--hueso);
  background: rgba(250, 244, 234, .07);
}

.pie-redes {
  display: flex;
  justify-content: center;
  gap: 1.8rem;
  margin-bottom: 2.6rem;
}

.pie-redes a {
  color: rgba(250, 244, 234, .75);
  text-decoration: none;
  font-size: .84rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.pie-redes a:hover { color: var(--hueso); }

.pie-legal {
  margin: 0;
  font-size: .78rem;
  color: rgba(250, 244, 234, .5);
}

.pie-legal a { color: inherit; }

/* ── Móvil ──────────────────────────────────────────────── */

@media (max-width: 720px) {
  .cabecera { justify-content: center; }
  .navegacion { gap: 1.2rem; }
  .portada { padding: 3.5rem 1.5rem 4rem; }
  .libro { grid-template-columns: 1fr; gap: 2.6rem; }
  .libro-cubierta { max-width: 260px; margin: 0 auto; }
}

/* ── Respeto a quien no quiere animaciones ──────────────── */

@media (prefers-reduced-motion: reduce) {
  .llamada, .entradilla, .halo { animation: none; }
  .llamada, .entradilla { opacity: 1; filter: none; transform: none; }
}