/* ============================================================
   Corazones de Papel — hoja de estilos principal
   Paleta inspirada en el Instagram de la marca: tonos cálidos,
   artesanales y románticos (kraft, mostaza, terracota, salvia).
   ============================================================ */

:root {
  --crema: #FBF3E7;
  --crema-oscuro: #F1E4CE;
  --papel: #FFFDF9;
  --marron: #4A3626;
  --marron-suave: #7A6350;
  --mostaza: #E8A93B;
  --mostaza-oscuro: #C98A22;
  --terracota: #C97B63;
  --terracota-oscuro: #A85C46;
  --rosa: #E7B9B0;
  --salvia: #7C9070;
  --salvia-oscuro: #5F7255;
  --whatsapp: #25D366;
  --sombra: 0 10px 30px rgba(74, 54, 38, 0.10);
  --radio: 18px;
  --radio-chico: 10px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Jost', 'Poppins', system-ui, -apple-system, sans-serif;
  color: var(--marron);
  background: var(--crema);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .fuente-titulo {
  font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  font-weight: 600;
  color: var(--marron);
  margin: 0 0 0.5em;
  line-height: 1.15;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
h3 { font-size: 1.4rem; }

p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.contenedor {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.seccion { padding: 64px 0; }
.seccion--chica { padding: 40px 0; }
.seccion--crema { background: var(--crema-oscuro); }
.seccion--papel { background: var(--papel); }

.centrado { text-align: center; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  color: var(--terracota-oscuro);
  font-weight: 600;
  margin-bottom: 0.6em;
  display: inline-block;
}
.subtitulo {
  color: var(--marron-suave);
  font-size: 1.08rem;
  max-width: 620px;
}
.subtitulo.centrado { margin-left: auto; margin-right: auto; }

/* ── Botones ─────────────────────────────────────────────────── */

.boton {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.96rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.boton:hover { transform: translateY(-2px); }

.boton--principal {
  background: var(--terracota);
  color: #fff;
  box-shadow: var(--sombra);
}
.boton--principal:hover { background: var(--terracota-oscuro); }

.boton--whatsapp {
  background: var(--whatsapp);
  color: #fff;
}
.boton--whatsapp:hover { background: #1ebe57; }

.boton--fantasma {
  background: transparent;
  border-color: var(--marron);
  color: var(--marron);
}
.boton--fantasma:hover { background: var(--marron); color: #fff; }

.boton--chico { padding: 9px 18px; font-size: 0.86rem; }
.boton svg { width: 18px; height: 18px; }

/* ── Header / navegación ─────────────────────────────────────── */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 243, 231, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(74, 54, 38, 0.08);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--marron);
}
.logo span { color: var(--terracota); }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--marron-suave);
}
.nav a:hover, .nav a.activo { background: var(--crema-oscuro); color: var(--marron); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--marron);
}

@media (max-width: 780px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--papel);
    flex-direction: column;
    align-items: stretch;
    padding: 10px 20px 18px;
    display: none;
    box-shadow: var(--sombra);
  }
  .nav.abierto { display: flex; }
  .nav a { padding: 12px 10px; }
}

/* ── Hero ─────────────────────────────────────────────────────── */

.hero {
  padding: 70px 0 60px;
  background:
    radial-gradient(circle at 85% 20%, rgba(232, 169, 59, 0.18), transparent 55%),
    radial-gradient(circle at 10% 80%, rgba(201, 123, 99, 0.16), transparent 50%);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; text-align: center; }
  .hero .subtitulo { margin-left: auto; margin-right: auto; }
  .hero__acciones { justify-content: center; }
}
.hero__acciones { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero__img {
  border-radius: var(--radio);
  overflow: hidden;
  box-shadow: var(--sombra);
  aspect-ratio: 4/5;
}
.hero__img img { width: 100%; height: 100%; object-fit: cover; }

/* ── Franja de valores ────────────────────────────────────────── */

.valores {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 700px) { .valores { grid-template-columns: 1fr; } }
.valor {
  background: var(--papel);
  border-radius: var(--radio-chico);
  padding: 22px 20px;
  text-align: center;
  box-shadow: var(--sombra);
}
.valor__icono { font-size: 1.8rem; margin-bottom: 8px; }
.valor h3 { font-size: 1.1rem; margin-bottom: 4px; }
.valor p { color: var(--marron-suave); font-size: 0.92rem; margin: 0; }

/* ── Grillas de ediciones / productos ─────────────────────────── */

.grilla-ediciones {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 26px;
}

.tarjeta-edicion {
  background: var(--papel);
  border-radius: var(--radio);
  overflow: hidden;
  box-shadow: var(--sombra);
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease;
}
.tarjeta-edicion:hover { transform: translateY(-4px); }
.tarjeta-edicion__img { aspect-ratio: 4/3; overflow: hidden; position: relative; }
.tarjeta-edicion__img img { width: 100%; height: 100%; object-fit: cover; }
.tarjeta-edicion__cuerpo { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.tarjeta-edicion__cuerpo p { color: var(--marron-suave); font-size: 0.92rem; flex: 1; }

.etiqueta {
  position: absolute;
  top: 14px; left: 14px;
  background: rgba(255,253,249,0.94);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.etiqueta--disponible { color: var(--salvia-oscuro); }
.etiqueta--agotada { color: var(--terracota-oscuro); }
.etiqueta--proximamente { color: var(--mostaza-oscuro); }

.grilla-productos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

.tarjeta-producto {
  background: var(--papel);
  border-radius: var(--radio);
  overflow: hidden;
  box-shadow: var(--sombra);
  display: flex;
  flex-direction: column;
}
.tarjeta-producto__img { aspect-ratio: 1/1; overflow: hidden; }
.tarjeta-producto__img img { width: 100%; height: 100%; object-fit: cover; }
.tarjeta-producto__cuerpo { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.tarjeta-producto__precio { font-weight: 700; color: var(--terracota-oscuro); font-size: 1.15rem; }
.tarjeta-producto__desc { color: var(--marron-suave); font-size: 0.9rem; flex: 1; }
.tarjeta-producto .boton { margin-top: 10px; justify-content: center; width: 100%; }
.tarjeta-producto--agotado .tarjeta-producto__img img { opacity: 0.65; filter: grayscale(30%); }

/* ── Encabezado de edición ────────────────────────────────────── */

.edicion-hero {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 820px) { .edicion-hero { grid-template-columns: 1fr; } }
.edicion-hero__img {
  border-radius: var(--radio);
  overflow: hidden;
  box-shadow: var(--sombra);
  aspect-ratio: 4/3;
}
.edicion-hero__img img { width: 100%; height: 100%; object-fit: cover; }

.migas { font-size: 0.85rem; color: var(--marron-suave); margin-bottom: 18px; }
.migas a:hover { text-decoration: underline; }

/* ── Sobre nosotros ────────────────────────────────────────────── */

.sobre-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 820px) { .sobre-grid { grid-template-columns: 1fr; } }

/* ── Footer ───────────────────────────────────────────────────── */

.footer {
  background: var(--marron);
  color: var(--crema);
  padding: 46px 0 28px;
}
.footer a { color: var(--crema); opacity: 0.85; }
.footer a:hover { opacity: 1; text-decoration: underline; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}
@media (max-width: 700px) { .footer__grid { grid-template-columns: 1fr; } }
.footer h4 { color: var(--crema); font-family: inherit; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 12px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 0.92rem; }
.footer__abajo {
  border-top: 1px solid rgba(251,243,231,0.15);
  padding-top: 18px;
  font-size: 0.82rem;
  opacity: 0.75;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* ── Botón flotante de WhatsApp ───────────────────────────────── */

.whatsapp-flotante {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 60;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--whatsapp);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  transition: transform 0.15s ease;
}
.whatsapp-flotante:hover { transform: scale(1.08); }
.whatsapp-flotante svg { width: 30px; height: 30px; fill: #fff; }

/* ── Estado vacío ─────────────────────────────────────────────── */

.vacio {
  text-align: center;
  padding: 60px 20px;
  color: var(--marron-suave);
}

/* ── Utilidades ───────────────────────────────────────────────── */
.mt-0 { margin-top: 0; }
.badge-fila { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
