/* ============================================================
   SIL-GO STORE — HOJA DE ESTILOS INTEGRAL (VERSIÓN FINAL CÁLIDA)
   Estilo: Literario, cálido, con texturas y acentos amarillos
   ============================================================ */

/* ------------------------------------------------------------
   1. VARIABLES Y RESET
   ------------------------------------------------------------ */
:root {
  /* Fondos Cálidos (crema y beige) */
  --bg: #faf6f0;
  --bg-soft: #f3ede1;
  --bg-section: #ede4d3;
  --bg-dark: #2a1810;
  --card: #ffffff;
  
  /* Colores de Marca */
  --primary: #b45309;        /* Terracota */
  --primary-dark: #92400e;
  --accent: #f5b800;         /* Amarillo Cálido (BOTONES) */
  --accent-hover: #e6a800;
  --accent-orange: #f97316;  /* Naranja para hovers */
  --gold: #d4af37;
  --wine: #7c2d12;
  
  /* Estados */
  --danger: #dc2626;
  --success: #16a34a;
  
  /* Textos y Bordes */
  --text: #2a1810;
  --text-soft: #4a3a30;
  --text-muted: #8a7565;
  --border: #e5dcc9;
  --border-strong: #d4c5b0;

  /* Tipografías */
  --font-body: 'Inter', sans-serif;
  --font-title: 'Playfair Display', serif;
  --font-script: 'Great Vibes', cursive;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(245, 184, 0, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(180, 83, 9, 0.04) 0%, transparent 50%);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
.container { width: min(1200px, 92%); margin: 0 auto; }

/* ------------------------------------------------------------
   2. BOTONES GLOBALES (AMARILLO + TEXTO BLANCO)
   ------------------------------------------------------------ */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 50px;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  text-align: center;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 18px rgba(245, 184, 0, 0.4);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}
.btn-primary:hover {
  background: var(--accent-orange);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(249, 115, 22, 0.5);
}

.btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

.btn-sm { padding: 8px 20px; font-size: 0.72rem; }
.btn-block { display: block; width: 100%; }

.btn-cta-lulu {
  background: var(--accent);
  color: #fff;
  padding: 18px 48px;
  border-radius: 50px;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  box-shadow: 0 12px 28px rgba(245, 184, 0, 0.45);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  display: inline-block;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}
.btn-cta-lulu:hover {
  background: var(--accent-orange);
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(249, 115, 22, 0.55);
}

/* ------------------------------------------------------------
   3. NAVBAR
   ------------------------------------------------------------ */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(250, 246, 240, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  padding: 12px 0;
  box-shadow: 0 2px 12px rgba(42, 24, 16, 0.05);
}
.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.logo {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--primary);
  white-space: nowrap;
}
.logo span {
  color: var(--accent);
  font-family: var(--font-body);
  font-weight: 300;
}
.nav-links {
  display: flex;
  gap: 25px;
  font-size: 0.9rem;
  font-weight: 600;
}
.nav-links a {
  color: var(--text-soft);
  transition: color 0.3s;
}
.nav-links a:hover { color: var(--primary); }

.search-box { flex: 1; max-width: 380px; }
.search-box input {
  width: 100%;
  padding: 10px 20px;
  border-radius: 30px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: 0.3s;
}
.search-box input:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(245, 184, 0, 0.15);
}

.cart-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 30px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: 0.3s;
  font-family: var(--font-body);
  font-size: 0.85rem;
}
.cart-btn:hover {
  background: var(--accent-orange);
  transform: scale(1.05);
}

/* ------------------------------------------------------------
   4. HERO (Libros reales, overlay cálido, título compacto)
   ------------------------------------------------------------ */
.hero-store.hero-nubico {
  padding: 140px 0 100px;
  position: relative;
  overflow: hidden;
  background: #2a1810;
  background-image: url('https://images.unsplash.com/photo-1507842217343-583bb7270b66?w=1600&q=80');
  background-size: cover;
  background-position: center;
  color: #fff;
}

.hero-nubico::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(42, 24, 16, 0.94) 0%,
    rgba(180, 83, 9, 0.8) 50%,
    rgba(245, 184, 0, 0.35) 100%
  );
  z-index: 1;
}

.hero-nubico::after {
  content: '"';
  position: absolute;
  top: 12%;
  right: 6%;
  font-family: 'Playfair Display', serif;
  font-size: 20rem;
  line-height: 1;
  color: rgba(245, 184, 0, 0.12);
  z-index: 2;
  pointer-events: none;
}

.hero-nubico .hero-content {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 3;
}

.hero-text-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.badge {
  background: rgba(245, 184, 0, 0.18);
  color: var(--accent);
  padding: 9px 20px;
  border-radius: 30px;
  font-size: 0.7rem;
  letter-spacing: 3px;
  font-weight: 800;
  margin-bottom: 22px;
  display: inline-block;
  border: 1px solid rgba(245, 184, 0, 0.4);
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}

.hero-title {
  font-family: var(--font-title);
  font-size: clamp(2.2rem, 4.8vw, 3.6rem);
  line-height: 1.15;
  letter-spacing: -0.5px;
  text-transform: uppercase;
  margin-bottom: 24px;
  color: #fff;
  text-align: left;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.script-text {
  font-family: var(--font-script);
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  color: var(--accent);
  text-transform: none;
  display: inline;
  font-weight: 400;
  line-height: 1;
  padding: 0 4px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  vertical-align: baseline;
}

.hero-subtitle {
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 540px;
  margin: 0 0 32px 0;
  text-align: left;
  line-height: 1.7;
}

.hero-cta-row {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 35px;
}

.trust-badges {
  display: flex;
  gap: 26px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  flex-wrap: wrap;
}
.trust-badges span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.hero-image-col {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-books-image {
  position: relative;
  width: 100%;
  max-width: 420px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  transform: rotate(-2deg);
  transition: transform 0.5s ease;
}

.hero-books-image:hover {
  transform: rotate(0deg) scale(1.02);
}

.hero-book-photo {
  width: 100%;
  height: 520px;
  object-fit: cover;
  display: block;
}

.hero-book-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: rgba(42, 24, 16, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(245, 184, 0, 0.4);
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hero-book-badge-label {
  font-size: 0.62rem;
  letter-spacing: 2.5px;
  font-weight: 800;
  color: var(--accent);
  text-transform: uppercase;
}

.hero-book-badge-title {
  font-family: var(--font-title);
  font-size: 1.05rem;
  color: #fff;
  line-height: 1.3;
}

/* ------------------------------------------------------------
   5. FRANJA PROMO
   ------------------------------------------------------------ */
.promo-bar {
  background: linear-gradient(90deg, var(--primary-dark), var(--primary));
  padding: 26px 0;
  border-top: 4px solid var(--accent);
}
.promo-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 25px;
  flex-wrap: wrap;
}
.promo-content h3 {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
}
.promo-form { display: flex; gap: 10px; }
.promo-form input {
  padding: 12px 20px;
  border-radius: 6px;
  border: none;
  width: 260px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  background: #fff;
  color: var(--text);
}
.promo-form input:focus {
  outline: 2px solid var(--accent);
}
.btn-validate {
  background: var(--accent);
  color: #fff;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 800;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
  transition: 0.3s;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
  box-shadow: 0 4px 12px rgba(245, 184, 0, 0.35);
}
.btn-validate:hover {
  background: var(--accent-orange);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(249, 115, 22, 0.5);
}

/* ------------------------------------------------------------
   6. HEADERS DE SECCIÓN
   ------------------------------------------------------------ */
.section-header {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  text-align: left;
  gap: 10px;
  margin-bottom: 50px;
  border-bottom: 2px solid var(--border);
  padding-bottom: 28px;
  position: relative;
}
.section-header::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 80px;
  height: 2px;
  background: var(--accent);
}

.section-label {
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  display: block;
}

.section-title {
  font-family: var(--font-title);
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.1;
  color: var(--text);
  font-weight: 700;
}

.section-title .highlight {
  color: var(--accent-orange);
  font-style: italic;
}

.section-desc {
  color: var(--text-muted);
  max-width: 600px;
  text-align: left;
  font-size: 1.05rem;
  margin-top: 8px;
  line-height: 1.7;
}

/* ------------------------------------------------------------
   7. CATÁLOGO
   ------------------------------------------------------------ */
.catalog-section {
  padding: 100px 0;
  background: var(--bg);
  position: relative;
}

.catalog-section .section-header::before {
  content: '📚 📖 📕 📗 📘';
  position: absolute;
  top: -50px;
  right: 0;
  font-size: 1.4rem;
  letter-spacing: 8px;
  opacity: 0.4;
  pointer-events: none;
}

.category-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 45px;
  justify-content: center;
}
.filter-btn {
  background: #fff;
  border: 2px solid var(--border);
  color: var(--text-soft);
  padding: 10px 24px;
  border-radius: 30px;
  cursor: pointer;
  transition: 0.25s;
  font-weight: 700;
  font-family: var(--font-body);
  font-size: 0.9rem;
}
.filter-btn:hover {
  border-color: var(--accent);
  color: var(--primary);
  transform: translateY(-2px);
}
.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 6px 16px rgba(245, 184, 0, 0.4);
}

.store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 32px;
}
.product-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}
.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-orange));
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 2;
}
.product-card:hover::before { opacity: 1; }
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 45px rgba(42, 24, 16, 0.15);
  border-color: rgba(245, 184, 0, 0.4);
}

.product-img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  background: var(--bg-section);
  transition: transform 0.5s ease;
  cursor: pointer;
}
.product-card:hover .product-img { transform: scale(1.05); }

.product-info {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
  background: #fff;
}
.product-category {
  font-size: 0.7rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 800;
  margin-bottom: 10px;
}
.product-title {
  font-family: var(--font-title);
  font-size: 1.35rem;
  margin-bottom: 8px;
  line-height: 1.25;
  color: var(--text);
  transition: color 0.3s;
  cursor: pointer;
}
.product-title:hover { color: var(--primary); }
.product-author {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  font-style: italic;
}
.product-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 15px;
}
.product-desc {
  font-size: 0.92rem;
  color: var(--text-soft);
  margin-bottom: 20px;
  flex: 1;
  line-height: 1.6;
}

.btn-add-cart {
  background: var(--accent);
  border: 2px solid var(--accent);
  color: #fff;
  margin-top: 12px;
  padding: 11px;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 800;
  transition: 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
  box-shadow: 0 4px 12px rgba(245, 184, 0, 0.3);
}
.btn-add-cart:hover {
  background: var(--accent-orange);
  border-color: var(--accent-orange);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(249, 115, 22, 0.5);
}

#noResults {
  display: none;
  text-align: center;
  padding: 40px;
  color: var(--text-muted);
}
#noResults h3 { font-weight: 500; }

/* ------------------------------------------------------------
   8. CÓMO COMPRAR
   ------------------------------------------------------------ */
.how-to-buy-lulu {
  padding: 100px 0;
  background: var(--bg-section);
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(245, 184, 0, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(180, 83, 9, 0.06) 0%, transparent 40%);
  border-top: 2px solid var(--border);
  border-bottom: 2px solid var(--border);
  position: relative;
  overflow: hidden;
}

.how-to-buy-lulu::before {
  content: '"';
  position: absolute;
  top: 20px;
  left: 5%;
  font-family: 'Playfair Display', serif;
  font-size: 14rem;
  color: rgba(180, 83, 9, 0.08);
  line-height: 1;
  pointer-events: none;
}

.how-to-buy-lulu .section-header {
  align-items: center;
  text-align: center;
  border-bottom: none;
  margin-bottom: 0;
  position: relative;
  z-index: 1;
}
.how-to-buy-lulu .section-header::after { display: none; }

.steps-lulu {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-top: 70px;
  gap: 20px;
  flex-wrap: wrap;
  z-index: 1;
}

.steps-lulu::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    rgba(245, 184, 0, 0.7) 0,
    rgba(245, 184, 0, 0.7) 10px,
    transparent 10px,
    transparent 20px
  );
  z-index: 1;
}

.step-lulu {
  position: relative;
  z-index: 2;
  flex: 1;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.step-lulu .icon-circle {
  width: 85px;
  height: 85px;
  background: #fff;
  border: 3px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  margin-bottom: 22px;
  transition: all 0.35s ease;
  box-shadow: 0 10px 25px rgba(42, 24, 16, 0.1);
}
.step-lulu:hover .icon-circle {
  background: var(--accent);
  border-color: var(--accent-orange);
  transform: translateY(-10px) scale(1.1);
  box-shadow: 0 20px 40px rgba(245, 184, 0, 0.4);
}

.step-lulu h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
}
.step-lulu p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 210px;
}

/* ------------------------------------------------------------
   9. TESTIMONIOS
   ------------------------------------------------------------ */
.testimonials {
  padding: 100px 0;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.testimonials::before {
  content: '"';
  position: absolute;
  top: 40px;
  right: 5%;
  font-family: 'Playfair Display', serif;
  font-size: 18rem;
  color: rgba(245, 184, 0, 0.08);
  line-height: 1;
  pointer-events: none;
  z-index: 0;
}

.testimonials .section-header {
  position: relative;
  z-index: 1;
}

.test-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  margin-top: 50px;
  position: relative;
  z-index: 1;
}

.test-card {
  background: #fff;
  padding: 38px 32px;
  border-radius: 18px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: 0.35s ease;
  position: relative;
}
.test-card::before {
  content: '"';
  position: absolute;
  top: 10px;
  right: 20px;
  font-family: 'Playfair Display', serif;
  font-size: 5rem;
  color: var(--accent);
  opacity: 0.25;
  line-height: 1;
}
.test-card:hover {
  border-color: var(--accent);
  box-shadow: 0 20px 45px rgba(42, 24, 16, 0.12);
  transform: translateY(-5px);
}

.test-stars {
  color: var(--accent);
  margin-bottom: 18px;
  font-size: 1.15rem;
  letter-spacing: 3px;
}

.test-card p {
  font-size: 0.98rem;
  color: var(--text-soft);
  margin-bottom: 26px;
  font-style: italic;
  line-height: 1.7;
  flex: 1;
  position: relative;
  z-index: 1;
}

.test-user {
  display: flex;
  align-items: center;
  gap: 15px;
}
.test-user img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
}
.test-user strong {
  display: block;
  font-size: 1rem;
  color: var(--text);
}
.test-user small {
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* ------------------------------------------------------------
   10. MODALES
   ------------------------------------------------------------ */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(42, 24, 16, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.active { display: flex; }

.modal-content {
  background: #fff;
  width: 90%;
  max-width: 500px;
  border-radius: 14px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.35);
}
.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-header h3 {
  font-family: var(--font-title);
  font-size: 1.4rem;
  color: var(--text);
}
.close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.3s;
}
.close-btn:hover { color: var(--accent-orange); }

.cart-items {
  padding: 20px 24px;
  overflow-y: auto;
  flex: 1;
}
.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 15px;
}
.cart-item-info h4 {
  font-size: 1rem;
  margin-bottom: 5px;
  color: var(--text);
}
.cart-item-info span {
  color: var(--primary);
  font-weight: 700;
}
.btn-remove {
  background: transparent;
  border: 1px solid #f87171;
  color: #dc2626;
  cursor: pointer;
  font-size: 0.8rem;
  font-family: var(--font-body);
  padding: 5px 12px;
  border-radius: 6px;
  transition: 0.3s;
}
.btn-remove:hover {
  background: #dc2626;
  color: #fff;
}
.modal-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border);
}
.cart-total {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 15px;
  color: var(--primary);
  text-align: right;
}

.product-modal-content {
  max-width: 950px !important;
  width: 95% !important;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}
.close-btn-absolute {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 10;
  background: #fff;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.close-btn-absolute:hover {
  background: var(--accent-orange);
  color: #fff;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 35px;
  padding: 35px;
}
.detail-image-col { display: flex; flex-direction: column; gap: 15px; }
.detail-main-img {
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  background: var(--bg-section);
}
.detail-gallery {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 5px;
}
.detail-gallery img {
  width: 80px;
  height: 100px;
  object-fit: cover;
  border-radius: 5px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.3s;
}
.detail-gallery img:hover { border-color: var(--accent); }

.detail-info-col { display: flex; flex-direction: column; }
.detail-title {
  font-family: var(--font-title);
  font-size: 2rem;
  margin-bottom: 10px;
  line-height: 1.2;
  color: var(--text);
}
.detail-author {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 15px;
  font-style: italic;
}
.detail-price {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 20px;
}
.detail-subtitle {
  font-size: 1rem;
  color: var(--accent-orange);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
  margin-top: 15px;
  font-weight: 700;
}
.detail-desc {
  font-size: 0.95rem;
  color: var(--text-soft);
  line-height: 1.7;
  margin-bottom: 20px;
}
.author-note {
  background: rgba(245, 184, 0, 0.1);
  border-left: 4px solid var(--accent);
  padding: 15px;
  border-radius: 6px;
  margin-bottom: 20px;
}
.author-note h4 {
  color: var(--primary);
  margin-bottom: 5px;
  font-size: 0.9rem;
  text-transform: uppercase;
}
.author-note p { font-size: 0.9rem; color: var(--text-soft); }

.detail-reviews {
  margin-bottom: 25px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}
.detail-reviews h4 {
  margin-bottom: 15px;
  font-size: 1rem;
  color: var(--text);
}
.review-item {
  background: var(--bg-soft);
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 10px;
  display: flex;
  gap: 15px;
  align-items: flex-start;
}
.review-item img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
}
.review-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 3px;
  font-size: 0.85rem;
  width: 100%;
}
.review-stars { color: var(--accent); }
.review-item p {
  font-size: 0.85rem;
  color: var(--text-soft);
  font-style: italic;
  margin: 0;
}
.detail-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ------------------------------------------------------------
   11. FOOTER
   ------------------------------------------------------------ */
.footer-store {
  background: #1a0f0a;
  padding: 70px 0 30px;
  color: #cbd5e0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 50px;
}
.footer-brand .logo { color: #fff; }
.footer-brand p {
  color: #94a3b8;
  font-size: 0.95rem;
  margin: 20px 0 25px;
  max-width: 300px;
}
.social-icons { display: flex; gap: 12px; }
.social-icons a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  transition: 0.3s;
}
.social-icons a:hover {
  background: var(--accent);
  transform: translateY(-3px);
}
.footer-links-col h4 {
  font-size: 0.95rem;
  margin-bottom: 22px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.footer-links-col a {
  display: block;
  color: #94a3b8;
  font-size: 0.95rem;
  margin-bottom: 14px;
  transition: color 0.3s;
}
.footer-links-col a:hover { color: var(--accent); }

.admin-link {
  margin-top: 1rem;
  opacity: 0.5;
  font-size: 0.8rem;
}
.admin-link:hover {
  opacity: 1;
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 25px;
  text-align: center;
  color: #94a3b8;
  font-size: 0.85rem;
}

/* ------------------------------------------------------------
   12. PÁGINAS LEGALES
   ------------------------------------------------------------ */
.legal-page {
  padding: 150px 0 100px;
  background: var(--bg);
  min-height: 80vh;
  position: relative;
  overflow: hidden;
}

.legal-page::before {
  content: '"';
  position: absolute;
  top: 80px;
  left: 5%;
  font-family: 'Playfair Display', serif;
  font-size: 14rem;
  color: rgba(245, 184, 0, 0.08);
  line-height: 1;
  pointer-events: none;
  z-index: 0;
}

.legal-page::after {
  content: '"';
  position: absolute;
  bottom: 50px;
  right: 5%;
  font-family: 'Playfair Display', serif;
  font-size: 14rem;
  color: rgba(180, 83, 9, 0.06);
  line-height: 1;
  pointer-events: none;
  z-index: 0;
}

.legal-header {
  margin-bottom: 70px;
  padding-bottom: 40px;
  border-bottom: 2px solid var(--border);
  text-align: center;
  position: relative;
  z-index: 1;
}

.legal-header::after {
  content: '✦';
  position: absolute;
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg);
  padding: 0 20px;
  color: var(--accent);
  font-size: 1.4rem;
}

.legal-header .section-label {
  display: block;
  margin-bottom: 12px;
}

.legal-header .section-title {
  margin-bottom: 15px;
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.legal-date {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-style: italic;
}

.legal-content {
  max-width: 820px;
  margin: 0 auto;
  color: var(--text-soft);
  font-size: 1.05rem;
  line-height: 1.85;
  position: relative;
  z-index: 1;
}

.legal-content p {
  margin-bottom: 25px;
}

.legal-content h2 {
  font-family: var(--font-title);
  color: var(--text);
  font-size: 1.7rem;
  margin: 50px 0 22px;
  padding-bottom: 12px;
  position: relative;
}

.legal-content h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.legal-content strong {
  color: var(--text);
  font-weight: 700;
}

.legal-content a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.legal-content a:hover {
  color: var(--accent-orange);
}

.legal-content ul {
  margin: 0 0 25px 20px;
  padding-left: 15px;
}

.legal-content li {
  margin-bottom: 10px;
  color: var(--text-soft);
  line-height: 1.7;
}

.legal-content li::marker {
  color: var(--accent-orange);
  font-weight: 800;
}

.legal-contact-list {
  list-style: none;
  background: var(--bg-section);
  padding: 28px 30px;
  border-radius: 14px;
  border: 1px solid var(--border);
  border-left: 5px solid var(--accent);
  margin-top: 30px;
  margin-left: 0;
  padding-left: 30px;
}

.legal-contact-list li {
  margin-bottom: 14px;
  font-weight: 600;
  color: var(--text);
}

.legal-contact-list li:last-child {
  margin-bottom: 0;
}

/* Variantes de páginas legales */
.privacidad-page .legal-content h2::after {
  background: var(--primary);
}

.privacidad-page .legal-content ul {
  list-style: none;
  background: var(--bg-soft);
  border-left: 4px solid var(--primary);
  border-radius: 10px;
  padding: 22px 25px 22px 50px;
  margin: 0 0 25px 0;
  position: relative;
}

.privacidad-page .legal-content ul li {
  position: relative;
  padding-left: 15px;
  margin-bottom: 12px;
  color: var(--text-soft);
}

.privacidad-page .legal-content ul li::before {
  content: '✓';
  position: absolute;
  left: -18px;
  top: 0;
  color: var(--primary);
  font-weight: 800;
  font-size: 1rem;
}

.privacidad-page .legal-content ul li:last-child { margin-bottom: 0; }

.privacidad-page .legal-content ul li strong {
  color: var(--primary-dark);
}

.privacidad-page .legal-contact-list {
  background: rgba(180, 83, 9, 0.06);
  border-color: rgba(180, 83, 9, 0.2);
  border-left-color: var(--primary);
}

.reembolso-page .alert-box {
  padding: 22px 28px;
  border-radius: 12px;
  margin: 32px 0;
  font-size: 1rem;
  line-height: 1.7;
  border-left: 5px solid var(--accent-orange);
  background: rgba(249, 115, 22, 0.08);
  color: var(--text-soft);
}
.reembolso-page .alert-box strong {
  color: var(--primary-dark);
}

.reembolso-page .reembolso-list {
  list-style: none;
  margin: 0 0 25px 0;
  padding: 0;
}
.reembolso-page .reembolso-list li {
  position: relative;
  padding: 18px 22px 18px 55px;
  margin-bottom: 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(42, 24, 16, 0.04);
  transition: 0.25s;
  color: var(--text-soft);
}
.reembolso-page .reembolso-list li:hover {
  border-color: var(--success);
  box-shadow: 0 8px 20px rgba(22, 163, 74, 0.12);
  transform: translateX(4px);
}
.reembolso-page .reembolso-list li::before {
  content: '✓';
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  background: var(--success);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
}
.reembolso-page .reembolso-list li strong {
  color: var(--text);
  display: block;
  margin-bottom: 4px;
  font-size: 1.02rem;
}

.reembolso-page .reembolso-steps {
  list-style: none;
  counter-reset: step-counter;
  margin: 0 0 25px 0;
  padding: 0;
}
.reembolso-page .reembolso-steps li {
  position: relative;
  padding: 18px 22px 18px 65px;
  margin-bottom: 14px;
  background: var(--bg-soft);
  border-radius: 12px;
  border: 1px solid var(--border);
  color: var(--text-soft);
  counter-increment: step-counter;
  transition: 0.25s;
}
.reembolso-page .reembolso-steps li:hover {
  background: #fff;
  border-color: var(--accent);
  transform: translateX(4px);
}
.reembolso-page .reembolso-steps li::before {
  content: counter(step-counter);
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  box-shadow: 0 4px 12px rgba(245, 184, 0, 0.4);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}
.reembolso-page .reembolso-steps li strong {
  color: var(--text);
  font-weight: 700;
}

/* ------------------------------------------------------------
   13. SOBRE NOSOTROS
   ------------------------------------------------------------ */
.about-hero {
  padding: 170px 0 100px;
  position: relative;
  overflow: hidden;
  background: #2a1810;
  background-image: url('https://images.unsplash.com/photo-1524995997946-a1c2e315a42f?w=1600&q=80');
  background-size: cover;
  background-position: center;
  text-align: center;
  color: #fff;
}

.about-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(20, 10, 5, 0.92) 0%,
    rgba(80, 40, 15, 0.85) 50%,
    rgba(180, 83, 9, 0.65) 100%
  );
  z-index: 1;
}

.about-hero-content {
  position: relative;
  z-index: 2;
}

.about-hero .hero-title {
  text-align: center;
  margin: 22px auto;
  max-width: 950px;
  color: #fff;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  line-height: 1.15;
}

.about-hero .hero-subtitle {
  text-align: center;
  margin: 0 auto;
  max-width: 650px;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.about-hero .badge {
  background: rgba(245, 184, 0, 0.25);
  border-color: rgba(245, 184, 0, 0.6);
  color: var(--accent);
  backdrop-filter: blur(8px);
}

.about-content {
  padding: 100px 0;
  background: var(--bg);
  position: relative;
}

.about-block {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 70px;
  align-items: center;
  margin-bottom: 110px;
}

.about-text .section-label { display: block; margin-bottom: 12px; }
.about-text .section-title { margin-bottom: 28px; }

.about-text p {
  color: var(--text-soft);
  font-size: 1.1rem;
  line-height: 1.9;
  margin-bottom: 20px;
}
.about-text p strong { color: var(--text); }

.about-image {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.about-image::before {
  content: '';
  position: absolute;
  inset: -14px;
  border: 3px solid var(--accent);
  border-radius: 22px;
  transform: rotate(-4deg);
  z-index: 0;
}

.about-image::after {
  content: '✦';
  position: absolute;
  top: -30px;
  right: -30px;
  font-size: 2.5rem;
  color: var(--accent);
  z-index: 2;
}

.about-photo {
  width: 100%;
  max-width: 400px;
  height: 480px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 30px 60px rgba(42, 24, 16, 0.3);
  position: relative;
  z-index: 1;
  transition: transform 0.5s ease;
}
.about-photo:hover { transform: scale(1.03) rotate(1deg); }

.about-values-section {
  padding: 80px 0 100px;
  border-top: 2px solid var(--border);
  border-bottom: 2px solid var(--border);
  margin-bottom: 100px;
  position: relative;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 28px;
  margin-top: 55px;
}

.value-card {
  background: #fff;
  padding: 38px 28px;
  border-radius: 18px;
  border: 1px solid var(--border);
  text-align: center;
  transition: 0.35s ease;
  position: relative;
  overflow: hidden;
}
.value-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--accent), var(--accent-orange));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.value-card:hover::before { transform: scaleX(1); }
.value-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 45px rgba(42, 24, 16, 0.12);
  border-color: rgba(245, 184, 0, 0.4);
}

.value-icon {
  font-size: 3rem;
  margin-bottom: 18px;
  display: inline-block;
}

.value-card h3 {
  font-family: var(--font-title);
  font-size: 1.25rem;
  color: var(--text);
  margin-bottom: 14px;
}

.value-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.about-cta {
  text-align: center;
  padding: 90px 30px;
  border-radius: 28px;
  position: relative;
  overflow: hidden;
  background: #2a1810;
  background-image: url('https://images.unsplash.com/photo-1495446815901-a7297e633e8d?w=1600&q=80');
  background-size: cover;
  background-position: center;
  color: #fff;
}

.about-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(42, 24, 16, 0.92) 0%,
    rgba(180, 83, 9, 0.8) 60%,
    rgba(245, 184, 0, 0.5) 100%
  );
  z-index: 0;
}

.about-cta > * {
  position: relative;
  z-index: 1;
}

.about-cta .section-header {
  border-bottom: none;
  margin-bottom: 20px;
  padding-bottom: 0;
  align-items: center;
  text-align: center;
}
.about-cta .section-header::after { display: none; }

.about-cta .section-label { color: var(--accent); }

.about-cta .section-title {
  color: #fff;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.about-cta .section-title .highlight { color: var(--accent); }

.about-cta-text {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.95);
  max-width: 620px;
  margin: 0 auto 40px;
  line-height: 1.7;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

/* ------------------------------------------------------------
   14. RESPONSIVE (al final, sobrescribe todo)
   ------------------------------------------------------------ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .detail-grid { grid-template-columns: 1fr; padding: 25px; }
  .detail-main-img { max-height: 350px; object-fit: contain; }
}

@media (max-width: 968px) {
  .hero-nubico .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .hero-text-col { align-items: center; }
  .hero-title, .hero-subtitle { text-align: center; }
  .hero-cta-row { justify-content: center; }
  .hero-nubico::after { font-size: 12rem; top: 5%; right: 3%; }
  .hero-books-image { max-width: 340px; }
  .hero-book-photo { height: 420px; }
  .steps-lulu::before { display: none; }
  .steps-lulu { flex-direction: column; gap: 35px; }
  .about-hero { padding: 140px 0 70px; }
  .about-block {
    grid-template-columns: 1fr;
    gap: 50px;
    margin-bottom: 80px;
  }
  .about-text { text-align: center; }
  .about-text .section-label,
  .about-text .section-title { text-align: center; }
  .about-photo { max-width: 320px; height: 400px; }
  .values-grid { grid-template-columns: 1fr; }
  .about-cta { padding: 60px 20px; }
}

@media (max-width: 768px) {
  .nav-inner { flex-wrap: wrap; justify-content: center; }
  .logo { font-size: 1.3rem; }
  .search-box {
    order: 3;
    max-width: 100%;
    width: 100%;
    margin-top: 10px;
  }
  .hero-store.hero-nubico { padding: 130px 0 60px; }
  .hero-title { font-size: 2rem; }
  .script-text { font-size: 2.8rem; }
  .store-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 15px; }
  .product-title { font-size: 1.1rem; }
  .product-price { font-size: 1.1rem; }
  .product-info { padding: 15px; }
  .btn-add-cart { padding: 8px; font-size: 0.75rem; }
  .promo-content { flex-direction: column; text-align: center; gap: 15px; }
  .promo-form { width: 100%; flex-direction: column; }
  .promo-form input { width: 100%; }
  .btn-validate { width: 100%; }
  .legal-page { padding: 120px 0 70px; }
  .legal-page::before,
  .legal-page::after { font-size: 8rem; }
  .legal-content { font-size: 1rem; }
  .legal-content h2 { font-size: 1.4rem; }
  .legal-header { margin-bottom: 45px; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; gap: 35px; text-align: center; }
  .footer-brand p { margin: 20px auto; }
  .social-icons { justify-content: center; }
  .hero-image-col { transform: scale(0.9); }
  .hero-nubico { padding: 120px 0 70px; }
  .hero-nubico::after { display: none; }
  .hero-title { font-size: 1.9rem; }
  .script-text { font-size: 2.6rem; }
  .hero-books-image { max-width: 280px; transform: rotate(0deg); }
  .hero-book-photo { height: 360px; }
  .hero-book-badge { padding: 12px 16px; }
  .hero-book-badge-title { font-size: 0.95rem; }
  .trust-badges { flex-direction: column; gap: 10px; align-items: center; }
  .hero-cta-row { flex-direction: column; width: 100%; }
  .btn-cta-lulu, .hero-cta-row .btn-outline { width: 100%; }
  .store-grid { grid-template-columns: 1fr; }
  .modal-content { width: 95%; margin: 10px; }
  .detail-info-col { padding-bottom: 15px; }
  .reembolso-page .reembolso-list li,
  .reembolso-page .reembolso-steps li { padding-left: 45px; font-size: 0.95rem; }
}