/* ============================================================
   Seres Libres A.C. — hoja de estilos
   Identidad oficial: paleta rosa/verde del logo (listón rosa,
   flores y follaje), titulares serif tipo sello (Cinzel) y
   fotografía real del santuario sobre fondo blanco rosado.
   ============================================================ */

:root {
  /* Color — paleta oficial de la marca */
  --rosa: #bf6375;         /* rosa de marca: elementos grandes y fondos */
  --rosa-texto: #9c4255;   /* rosa oscurecido: texto pequeño legible (AA) */
  --rosa-media: #f49fad;   /* rosa medio: detalles y hovers */
  --rosa-palida: #f9ced8;  /* rosa pálido: fondos suaves */
  --papel: #fdf9f8;        /* fondo general, blanco rosado */
  --gris: #dbdad9;         /* líneas y divisores */
  --verde: #5d6840;        /* verde follaje oscurecido: secciones con texto claro */
  --verde-claro: #aaba7c;  /* verde claro de marca: bordes y acentos */
  --tinta: #41353a;        /* texto principal, ciruela oscuro */
  --humo: #6f6267;         /* texto secundario */

  /* Tipografía */
  --f-display: "Cinzel", "Times New Roman", Georgia, serif;
  --f-texto: "Epilogue", "Helvetica Neue", Arial, sans-serif;

  /* Escala */
  --ancho-max: 1080px;
  --radio: 12px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }
main section[id] { scroll-margin-top: 84px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--papel);
  color: var(--tinta);
  font-family: var(--f-texto);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; }

a { color: inherit; }

/* ---------- Accesibilidad ---------- */
.salto {
  position: absolute;
  left: -9999px;
  background: var(--rosa);
  color: #fff;
  padding: .6rem 1rem;
  z-index: 100;
}
.salto:focus { left: 1rem; top: 1rem; }

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

/* ---------- Barra de navegación ---------- */
.barra {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .55rem clamp(1rem, 4vw, 2.5rem);
  background: #fffdfd;
  border-bottom: 1px solid var(--gris);
}

.marca {
  display: flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1.12rem;
  letter-spacing: .06em;
  white-space: nowrap;
  color: var(--rosa-texto);
}
.marca small { color: var(--verde); font-size: .72em; }
.marca-logo { width: 58px; height: auto; flex: none; }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(.8rem, 2vw, 1.5rem);
  flex-wrap: wrap;
}
.nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: .92rem;
  color: var(--tinta);
  padding: .25rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color .2s, background-color .2s;
}
.nav a:hover { border-bottom-color: var(--rosa-media); }

.nav-cta {
  background: var(--rosa-texto);
  color: #fff !important;
  padding: .45rem 1.2rem !important;
  border-radius: 999px;
  border-bottom: none !important;
}
.nav-cta:hover { background: #863848; }

.nav-boton {
  display: none;
  align-items: center;
  gap: .5rem;
  background: none;
  border: 2px solid var(--rosa);
  border-radius: 8px;
  color: var(--rosa);
  font: 600 .9rem var(--f-texto);
  padding: .4rem .8rem;
  cursor: pointer;
}
.nav-boton-linea {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--rosa);
  box-shadow: 0 -5px 0 var(--rosa), 0 5px 0 var(--rosa);
}

@media (max-width: 760px) {
  .barra { flex-wrap: wrap; }
  .nav-boton { display: inline-flex; }
  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: .2rem;
    padding-top: .6rem;
  }
  .nav.abierto { display: flex; }
  .nav a { padding: .5rem 0; font-size: 1rem; }
  .nav-cta { margin-top: .4rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--tinta);
}
.hero-foto {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 40%;
}
.hero-velo {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(42,30,34,.82) 0%, rgba(42,30,34,.55) 45%, rgba(42,30,34,.08) 78%);
}
.hero-contenido {
  position: relative;
  max-width: var(--ancho-max);
  margin: 0 auto;
  padding: clamp(3.5rem, 9vw, 7rem) clamp(1rem, 4vw, 2.5rem);
  color: #fdf6f4;
}
.hero-ceja {
  font-size: .82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--rosa-media);
  margin: 0 0 1.2rem;
}
.hero h1 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(2rem, 5.6vw, 3.6rem);
  line-height: 1.12;
  letter-spacing: .015em;
  margin: 0 0 1.3rem;
  max-width: 15em;
  text-wrap: balance;
}
.hero-bajada {
  max-width: 32em;
  font-size: clamp(1.02rem, 2vw, 1.2rem);
  color: #f3e4e3;
  margin: 0 0 2rem;
}
.hero-acciones {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
}

@media (max-width: 760px) {
  .hero-velo { background: linear-gradient(180deg, rgba(42,30,34,.78) 0%, rgba(42,30,34,.5) 100%); }
  .hero-foto { object-position: 70% 30%; }
}

/* ---------- Botones ---------- */
.boton {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  padding: .75rem 1.7rem;
  border-radius: 999px;
  border: 2px solid transparent;
  transition: background-color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.boton:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(191,99,117,.25); }
.boton-primario {
  background: var(--rosa-texto);
  color: #fff;
}
.boton-primario:hover { background: #863848; }
.boton-claro {
  border-color: currentColor;
  color: inherit;
}
.boton-claro:hover { background: rgba(255,255,255,.14); }

/* ---------- Cifras ---------- */
.cifras {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1px;
  background: var(--gris);
  border-block: 1px solid var(--gris);
}
.cifra {
  background: var(--papel);
  padding: 1.6rem clamp(1rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: .3rem;
}
.cifra strong {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  line-height: 1;
  color: var(--rosa);
  font-variant-numeric: tabular-nums;
}
.cifra span {
  font-size: .9rem;
  color: var(--humo);
  max-width: 20em;
}

/* ---------- Secciones ---------- */
.seccion {
  padding: clamp(3.5rem, 8vw, 6rem) clamp(1rem, 4vw, 2.5rem);
}
.seccion > * {
  max-width: var(--ancho-max);
  margin-left: auto;
  margin-right: auto;
}

.ceja {
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--rosa-texto);
  margin: 0 0 .8rem;
}
.seccion-verde .ceja { color: var(--rosa-palida); }

.seccion h2 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  line-height: 1.15;
  margin: 0 0 1.6rem;
  text-wrap: balance;
  max-width: 22em;
  margin-right: auto;
  color: var(--tinta);
}
.seccion-verde h2 { color: #fdf9f8; }

.seccion-intro {
  max-width: 46em;
  font-size: 1.08rem;
  margin-top: 0;
  margin-bottom: 2.2rem;
}

.seccion p { margin: 0 0 1rem; }

.columnas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}
.columnas > * { min-width: 0; }
.columnas-media { grid-template-columns: 1.2fr 1fr; }
@media (max-width: 760px) {
  .columnas, .columnas-media { grid-template-columns: 1fr; }
}

.figura {
  margin: 0;
}
.figura img {
  width: 100%;
  border-radius: var(--radio);
  display: block;
}
.figura figcaption {
  font-size: .88rem;
  color: var(--humo);
  padding-top: .6rem;
}

/* ---------- Misión / Visión / Valores ---------- */
.mvv {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.1rem;
  margin-top: 2.4rem;
}
.mvv-tarjeta {
  background: var(--rosa-palida);
  border-radius: var(--radio);
  padding: 1.5rem 1.6rem;
  min-width: 0;
}
.mvv-tarjeta h3 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #863848;
  margin: 0 0 .5rem;
}
.mvv-tarjeta p { font-size: .96rem; margin: 0; color: var(--tinta); }

/* ---------- Programas (sección verde) ---------- */
.seccion-verde {
  background: var(--verde);
  color: #f6f4ec;
}

.programas {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(1.2rem, 3vw, 1.8rem);
}
.programas li {
  border-top: 3px solid var(--verde-claro);
  padding-top: 1rem;
  min-width: 0;
}
.programas h3 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1.12rem;
  letter-spacing: .04em;
  margin: 0 0 .5rem;
  color: #fdf9f8;
}
.programas p {
  font-size: .95rem;
  color: #e7e9d9;
  margin: 0;
}

/* ---------- Galería del santuario ---------- */
.galeria {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: .9rem;
  margin-bottom: 2.2rem;
}
.galeria img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: var(--radio);
  display: block;
  transition: transform .3s, box-shadow .3s;
}
.galeria img:hover {
  transform: scale(1.025);
  box-shadow: 0 8px 22px rgba(65,53,58,.18);
}

/* ---------- Tarjeta de denuncia ---------- */
.tarjeta-nota {
  background: var(--verde);
  color: #f6f4ec;
  border-radius: var(--radio);
  padding: 1.8rem;
}
.tarjeta-nota h3 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1.25rem;
  margin: 0 0 .7rem;
  color: var(--rosa-palida);
}
.tarjeta-nota p { font-size: .97rem; color: #e7e9d9; }
.tarjeta-nota .boton { margin-top: .4rem; color: #f6f4ec; }

/* ---------- Equipo (sección rosa) ---------- */
.seccion-rosa {
  background: var(--rosa-palida);
}
.equipo {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: .9rem;
}
.equipo li {
  background: var(--papel);
  border: 1px solid #efc4cd;
  border-radius: var(--radio);
  padding: 1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: .1rem;
  min-width: 0;
}
.equipo strong { font-size: 1rem; color: var(--tinta); }
.equipo span { font-size: .88rem; color: var(--humo); }

/* ---------- Tienda ---------- */
.tienda-rejilla {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.producto {
  background: var(--papel);
  border: 1px solid #efc4cd;
  border-radius: var(--radio);
  padding: 1.1rem 1.1rem 1.3rem;
  text-align: center;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: .45rem;
  transition: transform .2s, box-shadow .2s;
}
.producto:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(191,99,117,.14); }
.producto-imagen {
  border-radius: calc(var(--radio) - 4px);
  overflow: hidden;
}
.producto-imagen img { width: 100%; height: auto; display: block; }
.producto h3 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: .03em;
  color: var(--tinta);
  margin: .2rem 0 0;
}
.producto-precio {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--rosa-texto);
  margin: 0;
  font-variant-numeric: tabular-nums;
}
.producto-precio small { font-size: .7em; font-weight: 600; color: var(--humo); }
.producto-nota { font-size: .85rem; color: var(--humo); margin: 0; }
.producto-talla {
  font-size: .9rem;
  color: var(--humo);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
}
.producto-talla select {
  font: 600 .95rem var(--f-texto);
  color: var(--tinta);
  padding: .3rem .5rem;
  border: 1px solid var(--gris);
  border-radius: 8px;
  background: #fff;
}
.producto .agregar { margin-top: auto; font-size: .95rem; padding: .6rem 1.2rem; }
.tienda-nota { font-size: .85rem; color: var(--humo); margin-top: 1rem; }
.tienda-vacio { margin-top: 1.4rem; font-weight: 600; color: var(--humo); }

/* Carrito */
.carrito {
  margin-top: 2rem;
  background: var(--papel);
  border: 1px solid #efc4cd;
  border-radius: var(--radio);
  padding: 1.6rem clamp(1rem, 3vw, 2rem);
}
.carrito h3, .carrito h4 {
  font-family: var(--f-display);
  font-weight: 600;
  color: var(--tinta);
  margin: 0 0 .9rem;
}
.carrito h4 { font-size: 1.05rem; margin-top: 1.6rem; }
#carrito-lista {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
#carrito-lista li {
  display: flex;
  align-items: center;
  gap: .8rem;
  flex-wrap: wrap;
  padding: .55rem .2rem;
  border-bottom: 1px dashed var(--gris);
  font-size: .95rem;
}
.ci-nombre { flex: 1 1 12em; min-width: 0; }
.ci-controles { display: inline-flex; align-items: center; gap: .45rem; }
.ci-menos, .ci-mas {
  width: 1.7rem; height: 1.7rem;
  border: 1px solid var(--gris);
  border-radius: 50%;
  background: #fff;
  font: 700 1rem var(--f-texto);
  color: var(--rosa-texto);
  cursor: pointer;
  line-height: 1;
}
.ci-menos:hover, .ci-mas:hover { border-color: var(--rosa-media); }
.ci-cant { min-width: 1.2em; text-align: center; font-weight: 700; }
.ci-sub { font-weight: 700; font-variant-numeric: tabular-nums; }
.ci-quitar {
  border: none; background: none;
  color: var(--humo);
  font-size: 1.2rem;
  cursor: pointer;
  padding: .2rem .4rem;
}
.ci-quitar:hover { color: var(--rosa-texto); }
.carrito-total { margin: 1rem 0 0; font-size: 1.1rem; }
.carrito-total small { display: block; font-size: .82rem; color: var(--humo); font-weight: 400; }

/* Checkout */
#checkout { display: flex; flex-direction: column; gap: 1rem; }
#checkout label { display: flex; flex-direction: column; gap: .3rem; font-size: .92rem; font-weight: 600; color: var(--tinta); }
#checkout input[type="text"], #checkout input[type="email"], #checkout input[type="tel"], #checkout textarea {
  font: 400 1rem var(--f-texto);
  color: var(--tinta);
  padding: .55rem .7rem;
  border: 1px solid var(--gris);
  border-radius: 8px;
  background: #fff;
}
.campos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: .9rem;
}
.entrega, .pago {
  border: 1px solid var(--gris);
  border-radius: var(--radio);
  padding: .9rem 1.1rem 1.1rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .55rem;
}
.entrega legend, .pago legend {
  font-weight: 700;
  font-size: .92rem;
  padding: 0 .4rem;
}
.entrega label, .pago-opcion {
  flex-direction: row !important;
  align-items: flex-start;
  gap: .55rem !important;
  font-weight: 500 !important;
}
#campo-direccion { flex-direction: column !important; font-weight: 600 !important; }
.pago-opcion {
  display: flex;
  background: var(--rosa-palida);
  border-radius: 8px;
  padding: .7rem .8rem;
}
.pago-opcion small { color: var(--humo); font-weight: 400; }
.pago-proximamente { display: flex; flex-wrap: wrap; gap: .6rem; }
.pago-placeholder {
  font-size: .88rem;
  padding: .5rem 1rem;
  border: 1.5px dashed var(--gris);
  background: #fff;
  color: var(--humo);
  cursor: not-allowed;
}
.pago-placeholder:hover { transform: none; box-shadow: none; }
.checkout-error {
  background: #fbe9ec;
  border: 1px solid #e5aeb9;
  color: #863848;
  border-radius: 8px;
  padding: .6rem .9rem;
  font-weight: 600;
  margin: 0;
}
.checkout-enviar { align-self: flex-start; }

/* Confirmación */
.confirmacion {
  margin-top: 1.4rem;
  background: #f3f5ea;
  border: 1px solid var(--verde-claro);
  border-radius: var(--radio);
  padding: 1.2rem 1.4rem;
}
.confirmacion h4 { color: var(--verde); margin-top: 0; }
.confirmacion ol { margin: 0 0 1rem; padding-left: 1.2rem; }
.confirmacion li { margin-bottom: .4rem; font-size: .95rem; }
.confirmacion .boton { color: var(--verde); }
.copiado { margin-left: .7rem; font-weight: 700; color: var(--verde); }

/* ---------- Cómo ayudar ---------- */
.ayuda-rejilla {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.1rem;
}
.ayuda {
  background: #fffdfd;
  border: 1px solid var(--gris);
  border-radius: var(--radio);
  padding: 1.4rem 1.5rem;
  min-width: 0;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.ayuda:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(191,99,117,.14);
  border-color: var(--rosa-media);
}
.ayuda-destacada {
  background: var(--rosa-palida);
  border-color: #efc4cd;
  display: flex;
  flex-direction: column;
  gap: .2rem;
}
.ayuda-destacada .boton { margin-top: .8rem; align-self: flex-start; }
.ayuda h3 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1.12rem;
  letter-spacing: .04em;
  color: var(--rosa-texto);
  margin: 0 0 .5rem;
}
.ayuda p { font-size: .95rem; color: var(--humo); margin: 0; }

.ayuda-contacto {
  margin-top: 2.2rem;
  font-weight: 600;
  max-width: 42em;
}
.ayuda-contacto a {
  color: var(--rosa-texto);
  text-decoration-color: var(--rosa-media);
  text-decoration-thickness: 2px;
}

/* ---------- Contacto ---------- */
.contacto-datos p { margin: 0 0 .8rem; }
.contacto-datos a { color: #fdf9f8; text-decoration-color: var(--rosa-media); }
.contacto-datos strong { color: var(--rosa-palida); }

.redes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: .9rem;
  align-content: start;
}
.redes a {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  text-decoration: none;
  border: 1px solid #93a06b;
  border-radius: var(--radio);
  padding: 1rem 1.2rem;
  background: rgba(255,255,255,.06);
  transition: border-color .2s, background-color .2s, transform .2s;
}
.redes a:hover { transform: translateY(-2px); background: rgba(255,255,255,.12); }
.redes a:hover { border-color: var(--rosa-media); }
.red-nombre {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: .04em;
  color: #fdf9f8;
}
.red-usuario { font-size: .9rem; color: #dfe3cd; }

/* ---------- Pie ---------- */
.pie {
  background: var(--tinta);
  color: #d9ced2;
  padding: 2.5rem clamp(1rem, 4vw, 2.5rem);
  font-size: .92rem;
}
.pie > * { max-width: var(--ancho-max); margin-left: auto; margin-right: auto; }
.pie strong { color: var(--rosa-palida); }
.pie-nota { margin-top: .8rem; color: #bdadb4; }
