/* ========================================================
   Editorial AXM – Estilos del sitio
   Paleta y tipografías unificadas con el catálogo:
   petróleo profundo, dorado, marfil · Fraunces + Inter
   ======================================================== */

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

:root {
  --deep:      #2b1a0e;   /* café oscuro vintage (fondos oscuros) */
  --ink:       #1e1209;   /* tinta sepia (texto principal, hero) */
  --gold:      #c89848;   /* cobre claro (acentos) */
  --gold-deep: #a06a2c;   /* cobre profundo (hover, detalles) */
  --rust:      #8b2e1a;   /* óxido/cobre rojizo (botones) */
  --ivory:     #f2ead8;   /* pergamino (secciones claras) */
  --paper:     #faf6ec;   /* crema (fondo general) */
  --line:      #ddccab;   /* líneas y bordes cálidos */
  --muted:     #6f5c49;   /* texto secundario sepia */
  --teal-soft: #4a2c16;   /* marrón cálido (gradientes de portadas) */
  --ok:        #4a5e3a;   /* verde salvia (gratis / éxito) */

  --radius:     3px;
  --shadow:     0 6px 18px -8px rgba(46,26,12,.4), 0 2px 5px -2px rgba(46,26,12,.25);
  --shadow-lg:  0 18px 44px -14px rgba(46,26,12,.45);
  --transition: .25s ease;

  --font-body: 'Inter', system-ui, sans-serif;
  --font-head: 'Fraunces', Georgia, serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--gold); color: var(--deep); }

/* grano de papel sutil sobre todo el sitio */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

.container { width: min(1280px, 92%); margin-inline: auto; }

img { max-width: 100%; display: block; }
a   { text-decoration: none; color: inherit; }

/* ---------- Tipografía ---------- */
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; color: var(--deep); }
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 900; letter-spacing: -.02em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 600; }
h3 { font-size: 1.1rem; font-weight: 600; }

/* ---------- Ornamento ---------- */
.ornament {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
  margin: .9rem auto 0;
  max-width: 320px;
  color: var(--gold);
  font-size: .75rem;
  letter-spacing: .3em;
}
.ornament::before,
.ornament::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}

/* ---------- Botones ---------- */
.btn {
  display: inline-block;
  padding: .85rem 2rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .02em;
  border-radius: var(--radius);
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: var(--transition);
}
.btn-primary {
  background: var(--rust);
  color: var(--ivory);
  border-color: var(--rust);
}
.btn-primary:hover {
  background: #a83828;
  border-color: #a83828;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(139,46,26,.35);
}
.btn-ghost {
  background: transparent;
  color: var(--ivory);
  border-color: rgba(242,234,216,.45);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-full { width: 100%; text-align: center; }

/* ---------- Cabeceras de sección ---------- */
.section-tag {
  display: block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: .6rem;
}
.section-title { margin-bottom: .75rem; }
.section-desc  { color: var(--muted); max-width: 560px; margin: 0 auto; font-size: .95rem; }
.section-header { text-align: center; margin-bottom: 3.2rem; }

/* ========================================================
   NAVBAR
   ======================================================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}
.navbar.scrolled {
  background: rgba(46,26,12,.97);
  box-shadow: 0 2px 16px rgba(30,18,9,.35);
  border-bottom: 1px solid rgba(200,152,72,.35);
  padding: .7rem 0;
}

.nav-container { display: flex; align-items: center; justify-content: space-between; }

.logo {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: -.02em;
  color: var(--ivory);
}
.logo .ax { color: var(--gold); }

.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(242,234,216,.8);
  position: relative;
  padding-bottom: 4px;
  transition: color var(--transition);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1.5px;
  background: var(--gold);
  transition: width var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--ivory);
  border-radius: 2px;
}

/* ========================================================
   HERO
   ======================================================== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background:
    radial-gradient(ellipse 70% 70% at 68% 40%, rgba(139,46,26,.45), transparent 70%),
    radial-gradient(ellipse 50% 60% at 12% 78%, rgba(160,106,44,.28), transparent 70%),
    linear-gradient(160deg, #140b05 0%, #1e1209 45%, #2a1208 100%);
  border-bottom: 3px solid var(--gold);
  overflow: hidden;
}
/* mismo punteado dorado del catálogo */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(200,152,72,.10) 1px, transparent 0);
  background-size: 22px 22px;
  opacity: .6;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 3rem;
  align-items: center;
  padding: 8rem 0 5rem;
}

.hero-tagline {
  font-family: var(--font-head);
  font-style: italic;
  font-size: clamp(.95rem, 2vw, 1.1rem);
  color: rgba(242,234,216,.72);
  margin-bottom: 1.2rem;
}
.hero-title { color: var(--ivory); margin-bottom: 1.2rem; }
.hero-title .ax { color: var(--gold); }

.hero-subtitle {
  color: rgba(242,234,216,.85);
  font-size: .98rem;
  line-height: 1.7;
  max-width: 52ch;
  margin-bottom: 2.2rem;
}

.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-meta {
  margin-top: 2.6rem;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(242,234,216,.6);
}
.hero-meta b { color: var(--gold); font-weight: 600; }

/* abanico de portadas reales */
.hero-covers {
  position: relative;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-cover {
  position: absolute;
  width: 200px;
  aspect-ratio: 5/7;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(150deg, var(--deep), var(--teal-soft));
  box-shadow: 0 18px 40px -12px rgba(0,0,0,.55);
  border: 1px solid rgba(200,152,72,.25);
  transition: transform .35s ease;
}
.hero-cover img { width: 100%; height: 100%; object-fit: cover; }
.hero-cover:nth-child(1) { transform: rotate(-8deg) translateX(-115px); z-index: 1; }
.hero-cover:nth-child(2) { transform: rotate(0deg) translateY(-14px); z-index: 3; width: 215px; }
.hero-cover:nth-child(3) { transform: rotate(8deg) translateX(115px); z-index: 2; }
.hero-covers:hover .hero-cover:nth-child(1) { transform: rotate(-11deg) translateX(-130px); }
.hero-covers:hover .hero-cover:nth-child(3) { transform: rotate(11deg) translateX(130px); }

.cover-ph {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.2rem;
  color: rgba(242,234,216,.92);
}
.cover-ph .ph-line { width: 34px; height: 2px; background: var(--gold); margin: 0 auto .9rem; }
.cover-ph .ph-title { font-family: var(--font-head); font-size: .92rem; line-height: 1.3; font-weight: 500; }
.cover-ph .ph-foot {
  position: absolute;
  bottom: .9rem; left: 0; right: 0;
  font-size: .58rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ========================================================
   FRANJA DE DATOS REALES
   ======================================================== */
.stats {
  background: #3d2b1f;
  border-top: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  padding: 2.6rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
.stat-item { color: var(--ivory); }
.stat-number {
  font-family: var(--font-head);
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
}
.stat-label {
  font-size: .72rem;
  color: rgba(242,234,216,.65);
  margin-top: .45rem;
  text-transform: uppercase;
  letter-spacing: .1em;
}
.stat-item svg { width: 30px; height: 30px; stroke: var(--gold); margin: 0 auto .5rem; display: block; }
.stat-item .stat-word {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ivory);
  display: block;
}

/* ========================================================
   NOSOTROS
   ======================================================== */
.nosotros { padding: 6.5rem 0; background: var(--paper); }
.nosotros-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 4.5rem;
  align-items: center;
}

.nosotros-panel {
  background: var(--deep);
  border-radius: var(--radius);
  padding: 2.6rem 2.2rem;
  color: var(--ivory);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.nosotros-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(200,152,72,.12) 1px, transparent 0);
  background-size: 20px 20px;
}
.nosotros-panel > * { position: relative; }
.nosotros-panel .panel-quote {
  font-family: var(--font-head);
  font-style: italic;
  font-size: 1.35rem;
  line-height: 1.45;
  color: var(--ivory);
  margin-bottom: 1.4rem;
}
.nosotros-panel .panel-quote span { color: var(--gold); }
.nosotros-panel .panel-firma {
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(242,234,216,.6);
}
.nosotros-panel .panel-linea {
  width: 44px; height: 2px;
  background: var(--gold);
  margin-bottom: 1.4rem;
}

.nosotros-text p { color: var(--muted); margin-bottom: 1.1rem; font-size: .95rem; line-height: 1.75; }
.nosotros-text p strong { color: var(--ink); }

.nosotros-valores { display: flex; flex-direction: column; gap: 1.1rem; margin-top: 1.8rem; }
.valor { display: flex; gap: .9rem; align-items: flex-start; }
.valor svg { width: 20px; height: 20px; stroke: var(--gold-deep); flex-shrink: 0; margin-top: .2rem; }
.valor strong { display: block; color: var(--deep); font-size: .9rem; }
.valor p { font-size: .85rem; color: var(--muted); margin: 0; }

/* ========================================================
   CATÁLOGO DESTACADO
   ======================================================== */
.catalogo { padding: 6.5rem 0; background: var(--ivory); }

.filtros {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2.8rem;
}
.filtro {
  padding: .5rem 1.25rem;
  border: 1.5px solid var(--line);
  background: #fff;
  font-family: var(--font-body);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  border-radius: var(--radius);
  transition: var(--transition);
}
.filtro:hover, .filtro.active {
  background: var(--deep);
  border-color: var(--deep);
  color: var(--gold);
}

.libros-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(195px, 1fr));
  gap: 1.7rem 1.4rem;
}

.libro-card {
  display: flex;
  flex-direction: column;
  transition: transform var(--transition);
}
.libro-card:hover { transform: translateY(-5px); }
.libro-card.hidden { display: none; }

.libro-cover {
  position: relative;
  aspect-ratio: 5/7;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(150deg, var(--deep), var(--teal-soft));
  box-shadow: var(--shadow);
  border: 1px solid rgba(46,26,12,.1);
}
.libro-cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.libro-card:hover .libro-cover img { transform: scale(1.04); }

.libro-info { padding: .9rem .15rem 0; display: flex; flex-direction: column; flex: 1; }
.libro-categoria {
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: .35rem;
}
.libro-info h3 {
  font-size: .95rem;
  line-height: 1.28;
  margin-bottom: .3rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.libro-info .libro-autores {
  font-size: .8rem;
  color: var(--muted);
  margin-bottom: .7rem;
}
.libro-footer {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .5rem;
  padding-top: .55rem;
  border-top: 1px solid var(--line);
  margin-top: auto;
}
.libro-precio {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
}
.libro-precio small { display: block; font-family: var(--font-body); font-weight: 400; font-size: .68rem; color: var(--muted); }
.libro-precio.gratis { color: var(--ok); }
.btn-comprar {
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 700;
  transition: color var(--transition);
}
.btn-comprar:hover { color: var(--deep); }

.catalogo-cta { text-align: center; margin-top: 3rem; }

/* ========================================================
   SERVICIOS
   ======================================================== */
.servicios {
  padding: 6.5rem 0;
  background: var(--deep);
  position: relative;
}
.servicios::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(200,152,72,.08) 1px, transparent 0);
  background-size: 22px 22px;
}
.servicios .section-tag   { color: var(--gold); }
.servicios .section-title { color: var(--ivory); }
.servicios .section-desc  { color: rgba(242,234,216,.6); }

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  position: relative;
  z-index: 1;
}
.servicio-card {
  border: 1px solid rgba(200,152,72,.22);
  border-radius: var(--radius);
  padding: 1.9rem;
  background: rgba(242,234,216,.045);
  transition: var(--transition);
}
.servicio-card:hover {
  background: rgba(242,234,216,.09);
  border-color: rgba(200,152,72,.5);
  transform: translateY(-4px);
}
.servicio-card svg {
  width: 30px; height: 30px;
  stroke: var(--gold);
  margin-bottom: 1rem;
}
.servicio-card h3 { color: var(--ivory); margin-bottom: .6rem; font-size: 1rem; }
.servicio-card p  { color: rgba(242,234,216,.62); font-size: .86rem; line-height: 1.7; }

/* ========================================================
   BLOG / NOVEDADES
   ======================================================== */
.novedades { padding: 6.5rem 0; background: var(--paper); }

.novedades-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}
.post-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}
.post-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.post-meta {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin-bottom: .8rem;
}
.post-tag {
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--deep);
  background: var(--gold);
  padding: .2rem .6rem;
  border-radius: 2px;
}
.post-tag.auto { background: var(--ivory); color: var(--gold-deep); border: 1px solid var(--line); }
.post-fecha { font-size: .74rem; color: var(--muted); }
.post-card h3 { font-size: 1.05rem; line-height: 1.35; margin-bottom: .6rem; }
.post-card p  { font-size: .87rem; color: var(--muted); line-height: 1.7; flex: 1; }
.post-card .post-link {
  margin-top: 1rem;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.post-card .post-link:hover { color: var(--deep); }
.post-card-img {
  width: calc(100% + 3.6rem);
  margin: -1.8rem -1.8rem .8rem -1.8rem;
  height: 160px;
  object-fit: cover;
  display: block;
  border-radius: var(--radius) var(--radius) 0 0;
}

/* página blog.php */
.blog-page { padding: 8.5rem 0 5rem; background: var(--paper); min-height: 70vh; }
.blog-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 2rem; }
.blog-entry {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.2rem 2.4rem;
}
.blog-entry h2 { font-size: 1.5rem; margin-bottom: .4rem; }
.blog-entry .post-fecha { display: block; margin-bottom: 1rem; }
.blog-entry .blog-cuerpo { font-size: .95rem; color: var(--ink); line-height: 1.8; white-space: pre-line; }
.blog-entry-img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  display: block;
  border-radius: var(--radius);
  margin-bottom: 1.2rem;
}

/* ========================================================
   BOLETÍN DE CORREOS
   ======================================================== */
.boletin { padding: 4rem 0; background: var(--ivory); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.boletin-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.boletin-box .section-title { margin-bottom: .3rem; }
.boletin-box .section-tag { margin-bottom: .2rem; }
.boletin-form { display: flex; gap: .7rem; flex-wrap: wrap; }
.boletin-form input[type="email"] {
  padding: .8rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  font-family: var(--font-body);
  font-size: .9rem;
  min-width: 240px;
  outline: none;
  transition: border-color var(--transition);
}
.boletin-form input[type="email"]:focus { border-color: var(--gold); }
.boletin-box .section-desc a { color: var(--gold-deep); text-decoration: underline; }
.boletin-box .section-desc a:hover { color: var(--deep); }
.boletin-msg { text-align: center; font-size: .85rem; color: var(--muted); margin-top: 1rem; }
@media (max-width: 640px) {
  .boletin-box { flex-direction: column; text-align: center; }
  .boletin-form { width: 100%; justify-content: center; }
  .boletin-form input[type="email"] { min-width: 0; flex: 1; }
}

/* ========================================================
   CONTACTO
   ======================================================== */
.contacto { padding: 6.5rem 0; background: var(--ivory); }
.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 4.5rem;
  align-items: start;
}
.contacto-info > p { color: var(--muted); margin-bottom: 2.2rem; font-size: .93rem; }

.info-items { display: flex; flex-direction: column; gap: 1.4rem; }
.info-item { display: flex; gap: .95rem; align-items: flex-start; }
.info-item svg { width: 21px; height: 21px; stroke: var(--gold-deep); flex-shrink: 0; margin-top: .15rem; }
.info-item strong {
  display: block;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--deep);
}
.info-item p, .info-item a { font-size: .9rem; color: var(--muted); margin: 0; }
.info-item a:hover { color: var(--gold-deep); }

.contacto-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.4rem;
}
.form-group { margin-bottom: 1.3rem; }
.form-group label {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--deep);
  margin-bottom: .45rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .8rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: .92rem;
  color: var(--ink);
  outline: none;
  resize: vertical;
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--gold); }

.form-success, .form-error {
  display: none;
  margin-top: 1rem;
  padding: .9rem 1rem;
  border-radius: var(--radius);
  font-size: .87rem;
  text-align: center;
}
.form-success { border: 1px solid var(--ok); background: rgba(46,125,82,.08); color: var(--ok); }
.form-error   { border: 1px solid #a33; background: rgba(170,51,51,.07); color: #a33; }
.form-success.show, .form-error.show { display: block; }

/* ========================================================
   FOOTER  (mismo estilo del catálogo)
   ======================================================== */
.footer {
  background: var(--deep);
  color: rgba(242,234,216,.7);
  border-top: 3px solid var(--gold);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding: 3.2rem 0 2.6rem;
}
.footer .fb {
  font-family: var(--font-head);
  color: var(--ivory);
  font-size: 1.05rem;
  margin-bottom: .5rem;
}
.footer p, .footer a { font-size: .85rem; line-height: 1.7; }
.footer a { color: var(--gold); display: block; margin-bottom: .3rem; transition: color var(--transition); }
.footer a:hover { color: var(--ivory); }
.footer-brand .logo { font-size: 1.3rem; margin-bottom: .6rem; display: inline-block; }
.footer-brand p { color: rgba(242,234,216,.55); max-width: 260px; }

.footer-bottom {
  border-top: 1px solid rgba(242,234,216,.1);
  padding: 1.3rem 0;
  text-align: center;
}
.footer-bottom p { font-size: .78rem; color: rgba(242,234,216,.4); }

/* ========================================================
   FLOTANTES: WhatsApp + volver arriba
   ======================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 2rem; left: 2rem;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37,211,102,.45);
  z-index: 998;
  transition: transform var(--transition);
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 28px; height: 28px; fill: #fff; }

.back-to-top {
  position: fixed;
  bottom: 2rem; right: 2rem;
  width: 44px; height: 44px;
  border-radius: var(--radius);
  background: var(--deep);
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
  z-index: 999;
}
.back-to-top.show { opacity: 1; pointer-events: auto; }
.back-to-top:hover { background: var(--gold); color: var(--deep); }

/* ========================================================
   ANIMACIONES
   ======================================================== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .fade-in { opacity: 1; transform: none; }
}

/* ========================================================
   RESPONSIVE
   ======================================================== */
@media (max-width: 1024px) {
  .hero-grid       { grid-template-columns: 1fr; gap: 3.5rem; padding-top: 7rem; }
  .hero-covers     { height: 360px; }
  .servicios-grid  { grid-template-columns: repeat(2, 1fr); }
  .novedades-grid  { grid-template-columns: repeat(2, 1fr); }
  .footer-grid     { grid-template-columns: 1fr 1fr; }
  .nosotros-grid   { grid-template-columns: 1fr; gap: 3rem; }
  .contacto-grid   { grid-template-columns: 1fr; gap: 3rem; }
  .stats-grid      { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--deep);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.2rem;
    z-index: 999;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1rem; }

  .servicios-grid, .novedades-grid, .footer-grid { grid-template-columns: 1fr; }
  .libros-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { text-align: center; }
  .hero-cover { width: 160px; }
  .hero-cover:nth-child(2) { width: 175px; }
  .hero-cover:nth-child(1) { transform: rotate(-8deg) translateX(-85px); }
  .hero-cover:nth-child(3) { transform: rotate(8deg) translateX(85px); }
  .blog-entry { padding: 1.6rem 1.4rem; }
  .whatsapp-float { bottom: 1.2rem; left: 1.2rem; }
  .back-to-top { bottom: 1.2rem; right: 1.2rem; }
}

@media (max-width: 480px) {
  .contacto-form { padding: 1.5rem; }
}
