/*
Theme Name: Samba Livros
Theme URI: https://sambalivros.com
Author: Samba Livros
Author URI: https://sambalivros.com
Description: Tema personalizado para Samba Livros – tienda de libros en portugués con WooCommerce y LearnDash.
Version: 1.0.10
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
WC requires at least: 8.0
WC tested up to: 9.0
License: Privado
Text Domain: samba-livros
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

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

:root {
  --navy:        #0D2147;
  --navy-light:  #1a3a6b;
  --green:       #1B6B35;
  --green-light: #228B3F;
  --gold:        #E8A020;
  --white:       #FFFFFF;
  --light:       #F5F7FA;
  --light2:      #EDF2F7;
  --text:        #1A202C;
  --text-mid:    #4A5568;
  --text-light:  #718096;
  --border:      #E2E8F0;
  --shadow-sm:   0 1px 4px rgba(0,0,0,.07);
  --shadow:      0 4px 14px rgba(0,0,0,.10);
  --shadow-lg:   0 8px 28px rgba(0,0,0,.13);
  --radius:      8px;
  --radius-lg:   14px;
  --tr:          all .2s ease;
  --max:         1200px;
  --font:        'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Neutralize WordPress global styles that can constrain full-width layout */
html, body { width: 100%; max-width: none !important; margin: 0 !important; padding: 0 !important; }
.wp-site-blocks { max-width: none !important; padding-left: 0 !important; padding-right: 0 !important; }

/* Override WordPress error-page / install.css body constraints */
body, body#error-page { margin: 0 !important; padding: 0 !important; max-width: none !important; border: none !important; box-shadow: none !important; }

html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--white); line-height: 1.6; font-size: 14px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }
ul { list-style: none; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ─── TOP BAR ─────────────────────────────────────────── */
.top-bar {
  background: var(--navy);
  color: rgba(255,255,255,.85);
  font-size: 12px;
  padding: 7px 0;
}
.top-bar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.top-bar__left, .top-bar__right { display: flex; gap: 20px; align-items: center; }
.tb-item { display: flex; align-items: center; gap: 5px; }
.tb-item svg { width: 13px; height: 13px; flex-shrink: 0; }
.tb-item a:hover { color: var(--white); }

/* ─── HEADER ──────────────────────────────────────────── */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: var(--shadow-sm);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px 24px;
  max-width: var(--max);
  margin: 0 auto;
}

/* Logo */
.site-logo { flex-shrink: 0; display: block; }
.site-logo img { height: 64px; width: auto; }

/* Search */
.search-wrap { flex: 1; max-width: 460px; position: relative; }
.search-wrap input {
  width: 100%;
  padding: 10px 46px 10px 16px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  font-size: 13.5px;
  outline: none;
  transition: var(--tr);
  color: var(--text);
  background: var(--light);
}
.search-wrap input:focus { border-color: var(--green); background: var(--white); }
.search-wrap input::placeholder { color: var(--text-light); }
.search-wrap button {
  position: absolute; right: 0; top: 0;
  height: 100%; width: 44px;
  background: var(--green); color: var(--white);
  border-radius: 0 6px 6px 0;
  display: flex; align-items: center; justify-content: center;
  transition: var(--tr);
}
.search-wrap button:hover { background: var(--navy); }
.search-wrap button svg { width: 17px; height: 17px; }

/* Header actions */
.header-actions { display: flex; gap: 18px; align-items: center; margin-left: auto; }
.h-action {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-size: 11px; color: var(--text-mid); cursor: pointer;
  transition: var(--tr); position: relative;
  background: none; border: none;
}
.h-action svg { width: 23px; height: 23px; }
.h-action:hover { color: var(--green); }
.h-action .badge {
  position: absolute; top: -5px; right: -7px;
  background: var(--gold); color: var(--navy);
  font-size: 9px; font-weight: 800;
  width: 16px; height: 16px; border-radius: 50%;
  display: none; align-items: center; justify-content: center;
}
.h-action .badge.show { display: flex; }

/* ─── MAIN NAV ────────────────────────────────────────── */
.main-nav { background: var(--white); border-bottom: 1px solid var(--border); }
.main-nav__inner { display: flex; align-items: center; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.nav-item {
  padding: 13px 15px;
  font-size: 12.5px; font-weight: 600;
  letter-spacing: .5px; text-transform: uppercase;
  color: var(--text); cursor: pointer;
  position: relative; transition: var(--tr);
  display: flex; align-items: center; gap: 3px; white-space: nowrap;
}
.nav-item:hover { color: var(--green); }
.nav-item.active { color: var(--green); }
.nav-item.active::after {
  content: ''; position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px; background: var(--green);
  border-radius: 2px 2px 0 0;
}
.nav-item.plataforma { color: var(--green); }
.nav-item svg { width: 11px; height: 11px; margin-top: 1px; }

/* ─── CART SIDEBAR ────────────────────────────────────── */
.cart-overlay {
  position: fixed; inset: 0; z-index: 900;
  background: rgba(13,33,71,.55);
  opacity: 0; visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}
.cart-overlay.open { opacity: 1; visibility: visible; }

.cart-sidebar {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 420px; max-width: 100vw;
  background: var(--white); z-index: 901;
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  box-shadow: -8px 0 32px rgba(0,0,0,.18);
}
.cart-sidebar.open { transform: translateX(0); }

.cart-sidebar__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--navy); color: var(--white);
}
.cart-sidebar__head h3 { font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.cart-sidebar__head h3 svg { width: 20px; height: 20px; }
.cart-sidebar__count {
  font-size: 11px; font-weight: 700;
  background: var(--gold); color: var(--navy);
  padding: 2px 8px; border-radius: 50px;
}
.cart-sidebar__close {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,.15); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: var(--tr); border: none;
}
.cart-sidebar__close:hover { background: rgba(255,255,255,.3); }
.cart-sidebar__close svg { width: 16px; height: 16px; }

.cart-sidebar__body { flex: 1; overflow-y: auto; padding: 16px 24px; }
.cart-sidebar__body::-webkit-scrollbar { width: 4px; }
.cart-sidebar__body::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.cart-empty {
  text-align: center; padding: 48px 16px; color: var(--text-light);
}
.cart-empty svg { width: 56px; height: 56px; margin: 0 auto 16px; color: var(--border); }
.cart-empty p { font-size: 14px; margin-bottom: 20px; }

.cart-item {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 0; border-bottom: 1px solid var(--border);
}
.cart-item:last-child { border-bottom: none; }
.cart-item__cover {
  width: 60px; height: 80px; border-radius: 6px;
  flex-shrink: 0; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
}
.cart-item__cover .product-card__cover-inner {
  width: 100%; height: 100%; padding: 6px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.cart-item__cover .cover-title { font-size: 7px; }
.cart-item__info { flex: 1; min-width: 0; }
.cart-item__name { font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-item__author { font-size: 11px; color: var(--text-light); margin-bottom: 8px; }
.cart-item__price-row { display: flex; align-items: center; justify-content: space-between; }
.cart-item__price { font-size: 14px; font-weight: 700; color: var(--navy); }
.cart-item__qty {
  display: flex; align-items: center; gap: 0;
  border: 1.5px solid var(--border); border-radius: 5px; overflow: hidden;
}
.cart-item__qty button {
  width: 26px; height: 26px; font-size: 14px;
  background: var(--light); color: var(--text-mid);
  display: flex; align-items: center; justify-content: center;
  border: none; cursor: pointer; transition: var(--tr);
}
.cart-item__qty button:hover { background: var(--border); }
.cart-item__qty span {
  width: 30px; text-align: center; font-size: 13px; font-weight: 700;
  border-left: 1.5px solid var(--border); border-right: 1.5px solid var(--border);
  line-height: 26px; color: var(--navy);
}
.cart-item__remove {
  color: var(--text-light); cursor: pointer; border: none; background: none;
  padding: 2px; border-radius: 4px; transition: var(--tr); flex-shrink: 0;
}
.cart-item__remove:hover { color: #e53e3e; }
.cart-item__remove svg { width: 15px; height: 15px; }

.cart-sidebar__foot {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  background: var(--light);
}
.cart-subtotal {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 14px; font-weight: 700;
}
.cart-subtotal span:first-child { font-size: 13px; color: var(--text-mid); }
.cart-subtotal span:last-child { font-size: 20px; color: var(--navy); }
.cart-actions { display: flex; flex-direction: column; gap: 8px; }
.cart-btn-wa {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  width: 100%; padding: 13px; border-radius: 6px;
  background: #25D366; color: var(--white);
  font-size: 14px; font-weight: 700; letter-spacing: .3px;
  border: none; cursor: pointer; transition: var(--tr); text-decoration: none;
}
.cart-btn-wa:hover { background: #1aaa52; }
.cart-btn-wa svg { width: 20px; height: 20px; }
.cart-btn-checkout {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  width: 100%; padding: 12px; border-radius: 6px;
  background: var(--navy); color: var(--white);
  font-size: 14px; font-weight: 700; letter-spacing: .3px;
  border: none; cursor: pointer; transition: var(--tr); text-decoration: none;
}
.cart-btn-checkout:hover { background: var(--navy-light); }
.cart-btn-checkout svg { width: 16px; height: 16px; flex-shrink: 0; }
.cart-note { font-size: 11px; color: var(--text-light); text-align: center; margin-top: 8px; display: flex; align-items: center; justify-content: center; gap: 4px; }
.cart-note svg { width: 12px; height: 12px; color: var(--green); }

/* Loading spinner for cart */
.cart-loading {
  position: absolute; inset: 0;
  background: rgba(255,255,255,.8);
  display: flex; align-items: center; justify-content: center;
  z-index: 10; display: none;
}
.cart-loading.show { display: flex; }
.cart-spin {
  width: 32px; height: 32px; border: 3px solid var(--border);
  border-top-color: var(--green); border-radius: 50%;
  animation: sl-spin .7s linear infinite;
}
@keyframes sl-spin { to { transform: rotate(360deg); } }

/* ─── HERO ────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 400px; display: flex; align-items: stretch;
}
.hero__bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(13,33,71,.88) 40%, rgba(13,33,71,.3) 100%),
    url('assets/imagenes demo/demo 1.png') right center / cover no-repeat;
}
.hero__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 420px;
  gap: 40px; align-items: center;
  max-width: var(--max); margin: 0 auto;
  padding: 56px 24px;
  width: 100%;
}
.hero__headline {
  font-size: 40px; font-weight: 800;
  color: var(--white); line-height: 1.2; margin-bottom: 4px;
}
.hero__headline span { color: var(--gold); }
.hero__divider { width: 56px; height: 4px; background: var(--gold); border-radius: 2px; margin: 18px 0 16px; }
.hero__text { font-size: 15px; color: rgba(255,255,255,.82); margin-bottom: 28px; line-height: 1.75; }
.hero__cta {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--green); color: var(--white);
  padding: 13px 28px; border-radius: 6px;
  font-size: 14px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase;
  transition: var(--tr); box-shadow: 0 4px 18px rgba(27,107,53,.45);
  border: 2px solid var(--green);
}
.hero__cta:hover { background: transparent; color: var(--white); }
.hero__cta svg { width: 18px; height: 18px; }
.hero__mini-badges { display: flex; gap: 24px; margin-top: 28px; }
.hero__mini { display: flex; align-items: center; gap: 7px; color: rgba(255,255,255,.75); font-size: 12px; }
.hero__mini svg { width: 18px; height: 18px; color: rgba(255,255,255,.55); }

/* Book stack */
.book-stack { display: flex; flex-direction: column; gap: 5px; width: 100%; }
.bs-book {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 18px; border-radius: 5px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase;
  box-shadow: 4px 4px 12px rgba(0,0,0,.35);
  color: white;
}
.bs-book .author { font-size: 9.5px; font-weight: 400; opacity: .8; letter-spacing: .3px; }
.bs-book.b1 { background: linear-gradient(90deg, #C47D1E, #A0620E); }
.bs-book.b2 { background: linear-gradient(90deg, #1a3a6e, #0d2147); }
.bs-book.b3 { background: linear-gradient(90deg, #1B6B35, #124825); }
.bs-book.b4 { background: linear-gradient(90deg, #8B3A0A, #6B2A02); }
.bs-book.b5 { background: linear-gradient(90deg, #9E8B6A, #7E6B4A); color: #fff; }

/* ─── TRUST STRIP ─────────────────────────────────────── */
.trust-strip {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}
.trust-strip__inner { display: flex; justify-content: space-around; align-items: center; flex-wrap: wrap; gap: 16px; }
.trust-item { display: flex; align-items: center; gap: 12px; }
.trust-item__icon {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(27,107,53,.1);
  display: flex; align-items: center; justify-content: center; color: var(--green);
}
.trust-item__icon svg { width: 20px; height: 20px; }
.trust-item strong { display: block; font-size: 13px; font-weight: 700; color: var(--green); }
.trust-item span { font-size: 11.5px; color: var(--text-light); }

/* ─── SECTION HEADER ──────────────────────────────────── */
.section-head { text-align: center; margin-bottom: 28px; }
.section-head h2 { font-size: 24px; font-weight: 700; color: var(--navy); }
.section-head p { color: var(--text-light); font-size: 14px; margin-top: 4px; }

/* ─── CATEGORIES + CAROUSEL ───────────────────────────── */
.categories-section { padding: 48px 0 52px; }
.cat-tabs { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-bottom: 28px; }
.cat-tab {
  display: flex; align-items: center; gap: 5px;
  padding: 7px 16px; border: 1.5px solid var(--border);
  border-radius: 50px; font-size: 13px; font-weight: 500;
  cursor: pointer; transition: var(--tr); color: var(--text-mid);
  background: var(--white); white-space: nowrap;
}
.cat-tab svg { width: 14px; height: 14px; }
.cat-tab:hover, .cat-tab.active { border-color: var(--green); color: var(--green); background: rgba(27,107,53,.05); }
.cat-tab.active { font-weight: 700; }

.carousel-wrap { position: relative; }
.carousel-wrap .arrow {
  position: absolute; top: 38%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--white); border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow); cursor: pointer; transition: var(--tr); z-index: 2; color: var(--navy);
}
.carousel-wrap .arrow:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.carousel-wrap .arrow svg { width: 15px; height: 15px; }
.arrow-prev { left: -18px; }
.arrow-next { right: -18px; }

.product-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
  overflow: hidden;
}

/* ─── PRODUCT CARD ────────────────────────────────────── */
.product-card { display: flex; flex-direction: column; }
.product-card__cover {
  aspect-ratio: 3/4; border-radius: var(--radius);
  overflow: hidden; margin-bottom: 10px;
  box-shadow: var(--shadow); position: relative; cursor: pointer;
}
.product-card__cover-inner {
  width: 100%; height: 100%;
  transition: transform .3s ease;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 14px; text-align: center;
}
.product-card:hover .product-card__cover-inner { transform: scale(1.04); }
.product-card__badge {
  position: absolute; top: 8px; left: 8px;
  background: var(--gold); color: var(--navy);
  font-size: 9px; font-weight: 800;
  padding: 3px 8px; border-radius: 4px; text-transform: uppercase;
}
.product-card__badge.nuevo { background: #1B6B35; color: white; }
.cover-title { font-size: 12px; font-weight: 800; color: white; text-transform: uppercase; letter-spacing: .8px; line-height: 1.3; text-shadow: 0 1px 4px rgba(0,0,0,.4); }
.cover-author { font-size: 9.5px; color: rgba(255,255,255,.8); margin-top: 8px; text-transform: uppercase; letter-spacing: .4px; }
.product-card__title { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 1px; }
.product-card__author { font-size: 11px; color: var(--text-light); margin-bottom: 8px; }
.product-card__foot { display: flex; align-items: center; justify-content: space-between; }
.product-card__price { font-size: 14.5px; font-weight: 700; color: var(--navy); }
.product-card__add {
  width: 30px; height: 30px; border-radius: 6px;
  background: var(--green); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  transition: var(--tr); flex-shrink: 0;
}
.product-card__add:hover { background: var(--navy); }
.product-card__add svg { width: 15px; height: 15px; }

/* Book cover color classes */
.bc-1 { background: linear-gradient(155deg,#C47D1E,#7A4A08); }
.bc-2 { background: linear-gradient(155deg,#1a3a6e,#0a1a3e); }
.bc-3 { background: linear-gradient(155deg,#1a5c2e,#0d3018); }
.bc-4 { background: linear-gradient(155deg,#a34010,#6b2206); }
.bc-5 { background: linear-gradient(155deg,#9E8B6A,#6E5B3A); }
.bc-6 { background: linear-gradient(155deg,#1a3a8e,#0a205e); }
.bc-7 { background: linear-gradient(155deg,#1a6e6e,#0a3e3e); }
.bc-8 { background: linear-gradient(155deg,#3a1a6e,#1a0a3e); }
.bc-9 { background: linear-gradient(155deg,#2a5a9e,#1a3a6e); }
.bc-10{ background: linear-gradient(155deg,#8B2020,#5a0e0e); }

/* ─── NEWSLETTER ──────────────────────────────────────── */
.newsletter { background: var(--light); padding: 48px 0; }
.newsletter__inner {
  display: grid; grid-template-columns: 1fr 1.2fr;
  gap: 48px; align-items: center;
}
.newsletter__visual {
  border-radius: var(--radius-lg); overflow: hidden;
  height: 240px; background: var(--navy);
  display: flex; align-items: center; justify-content: center;
}
.newsletter__visual img { width: 100%; height: 100%; object-fit: cover; }
.newsletter h2 { font-size: 26px; font-weight: 800; color: var(--navy); line-height: 1.3; margin-bottom: 6px; }
.newsletter h2 span { color: var(--green); }
.newsletter p { color: var(--text-light); font-size: 14px; margin-bottom: 18px; }
.newsletter__form { display: flex; gap: 8px; }
.newsletter__form input {
  flex: 1; padding: 11px 16px;
  border: 1.5px solid var(--border); border-radius: 6px;
  font-size: 13.5px; outline: none; transition: var(--tr);
}
.newsletter__form input:focus { border-color: var(--green); }
.newsletter__form button {
  background: var(--green); color: var(--white);
  padding: 11px 20px; border-radius: 6px;
  font-size: 12px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .5px; transition: var(--tr); white-space: nowrap;
}
.newsletter__form button:hover { background: var(--navy); }
.newsletter__note { margin-top: 9px; font-size: 11.5px; color: var(--text-light); display: flex; align-items: center; gap: 5px; }
.newsletter__note svg { width: 13px; height: 13px; flex-shrink: 0; }

/* ─── FOOTER ──────────────────────────────────────────── */
.site-footer { background: var(--navy); color: rgba(255,255,255,.75); }
.footer-main {
  display: grid; grid-template-columns: 180px 1fr 1fr 1fr;
  gap: 40px; padding: 40px 24px; max-width: var(--max); margin: 0 auto;
}
.footer-brand img { height: 56px; width: auto; margin-bottom: 14px; }
.footer-brand p { font-size: 12px; line-height: 1.6; color: rgba(255,255,255,.6); }
.footer-col h4 { font-size: 13px; font-weight: 700; color: var(--white); margin-bottom: 14px; text-transform: uppercase; letter-spacing: .5px; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: 13px; color: rgba(255,255,255,.65); transition: var(--tr); }
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 16px 24px;
  max-width: var(--max); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,.5); }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  color: var(--white); transition: var(--tr);
}
.footer-social a:hover { background: var(--green); }
.footer-social a svg { width: 16px; height: 16px; }

/* ─── BUTTONS ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 24px; border-radius: 6px; font-size: 13.5px;
  font-weight: 700; cursor: pointer; transition: var(--tr);
  border: 2px solid transparent; letter-spacing: .3px;
}
.btn-green { background: var(--green); color: var(--white); border-color: var(--green); }
.btn-green:hover { background: var(--navy); border-color: var(--navy); }
.btn-navy { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-navy:hover { background: var(--navy-light); }
.btn-outline { background: transparent; border-color: var(--green); color: var(--green); }
.btn-outline:hover { background: var(--green); color: var(--white); }
.btn-outline-white { background: transparent; border-color: rgba(255,255,255,.7); color: var(--white); }
.btn-outline-white:hover { background: var(--white); color: var(--navy); }
.btn svg { width: 16px; height: 16px; }

/* ─── PAGE BANNER ─────────────────────────────────────── */
.page-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white); padding: 44px 0; text-align: center;
}
.page-banner h1 { font-size: 32px; font-weight: 800; margin-bottom: 6px; color: var(--white); }
.page-banner p { color: rgba(255,255,255,.78); font-size: 15px; }

/* ─── PAGE GENERIC (page.php / LearnDash) ──────────────── */
.page-content-wrap { padding: 48px 0; }
.page-content { max-width: 860px; margin: 0 auto; }
.page-content h1 { font-size: 30px; font-weight: 800; color: var(--navy); margin-bottom: 20px; }
.page-content h2 { font-size: 22px; font-weight: 700; color: var(--navy); margin: 24px 0 12px; }
.page-content h3 { font-size: 18px; font-weight: 700; color: var(--navy); margin: 20px 0 10px; }
.page-content p { font-size: 14.5px; color: var(--text-mid); line-height: 1.8; margin-bottom: 14px; }
.page-content ul, .page-content ol { padding-left: 22px; margin-bottom: 14px; }
.page-content ul li, .page-content ol li { font-size: 14px; color: var(--text-mid); line-height: 1.7; margin-bottom: 6px; }
.page-content img { border-radius: var(--radius); margin: 14px 0; }
.page-content a { color: var(--green); }
.page-content a:hover { text-decoration: underline; }
/* LearnDash integration */
.learndash-wrapper { max-width: var(--max); margin: 0 auto; padding: 0 24px 48px; }

/* ─── LIBROS PAGE ─────────────────────────────────────── */
.libros-layout {
  display: grid; grid-template-columns: 248px 1fr;
  gap: 28px; padding: 36px 24px;
  max-width: var(--max); margin: 0 auto;
}
.filters-sidebar {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px;
  height: fit-content; position: sticky; top: 90px;
}
.filters-sidebar h3 { font-size: 11px; font-weight: 800; color: var(--navy); text-transform: uppercase; letter-spacing: .8px; margin-bottom: 16px; }
.filter-group { padding-bottom: 18px; border-bottom: 1px solid var(--border); margin-bottom: 18px; }
.filter-group:last-of-type { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }
.filter-group h4 { font-size: 12px; font-weight: 700; color: var(--text); margin-bottom: 10px; text-transform: uppercase; letter-spacing: .4px; }
.filter-opt {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 7px; cursor: pointer; font-size: 13px; color: var(--text-mid);
}
.filter-opt input { accent-color: var(--green); width: 15px; height: 15px; cursor: pointer; }
.filter-opt:hover { color: var(--green); }
.price-row { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-light); margin-bottom: 4px; }
input[type=range] { width: 100%; accent-color: var(--green); }
.btn-clear-filters {
  width: 100%; padding: 9px; border: 1px solid var(--border);
  border-radius: 6px; font-size: 12px; font-weight: 700;
  color: var(--text-mid); cursor: pointer; transition: var(--tr); margin-top: 4px;
}
.btn-clear-filters:hover { border-color: var(--green); color: var(--green); }

.catalog-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.catalog-top h2 { font-size: 20px; font-weight: 700; color: var(--navy); }
.catalog-top select {
  padding: 7px 12px; border: 1px solid var(--border);
  border-radius: 6px; font-size: 12.5px; color: var(--text-mid); outline: none;
}
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 36px; }
.pg-btn {
  width: 34px; height: 34px; border-radius: 6px;
  border: 1.5px solid var(--border); display: flex;
  align-items: center; justify-content: center;
  font-size: 13px; cursor: pointer; transition: var(--tr);
  background: var(--white);
}
.pg-btn.active { background: var(--green); border-color: var(--green); color: var(--white); font-weight: 700; }
.pg-btn:hover:not(.active) { border-color: var(--green); color: var(--green); }

/* WooCommerce pagination */
.woocommerce-pagination { margin-top: 36px; }
.woocommerce-pagination ul.page-numbers {
  display: flex; flex-wrap: wrap; gap: 6px;
  justify-content: center; list-style: none;
  margin: 0; padding: 0;
}
.woocommerce-pagination ul.page-numbers li { margin: 0; }
.woocommerce-pagination ul.page-numbers a.page-numbers,
.woocommerce-pagination ul.page-numbers span.page-numbers {
  display: flex; align-items: center; justify-content: center;
  min-width: 34px; height: 34px; padding: 0 8px;
  border-radius: 6px; border: 1.5px solid var(--border);
  background: var(--white); color: var(--text-mid);
  font-size: 13px; font-weight: 500; transition: var(--tr);
  text-decoration: none;
}
.woocommerce-pagination ul.page-numbers span.current {
  background: var(--green); border-color: var(--green);
  color: var(--white); font-weight: 700;
}
.woocommerce-pagination ul.page-numbers a.page-numbers:hover {
  border-color: var(--green); color: var(--green);
}
.woocommerce-pagination ul.page-numbers .dots {
  border-color: transparent; background: transparent;
  color: var(--text-light); cursor: default;
}
.woocommerce-pagination ul.page-numbers .next,
.woocommerce-pagination ul.page-numbers .prev {
  font-size: 15px;
}
.pg-dots { display: flex; align-items: center; padding: 0 4px; color: var(--text-light); }

/* ─── PLATAFORMA PAGE ─────────────────────────────────── */
.plataforma-hero {
  background: var(--navy); color: var(--white);
  padding: 60px 0; text-align: center;
}
.plataforma-hero .label {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 2px; color: var(--gold); margin-bottom: 12px;
}
.plataforma-hero h1 { font-size: 38px; font-weight: 800; margin-bottom: 10px; color: var(--white); }
.plataforma-hero p { font-size: 15px; color: rgba(255,255,255,.78); max-width: 540px; margin: 0 auto 32px; text-align: center; }
.plat-tabs {
  display: flex; gap: 0; justify-content: center;
  background: rgba(255,255,255,.12); border-radius: 8px;
  padding: 4px; width: fit-content; margin: 0 auto;
}
.plat-tab { padding: 9px 22px; border-radius: 6px; font-size: 13.5px; font-weight: 500; cursor: pointer; transition: var(--tr); color: rgba(255,255,255,.7); background: none; border: none; }
.plat-tab.active { background: var(--white); color: var(--navy); font-weight: 700; }

.platform-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; padding: 48px 0 24px; }
.platform-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 30px; text-align: center;
  transition: var(--tr);
}
.platform-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.plat-card-icon {
  width: 58px; height: 58px; border-radius: 50%;
  background: rgba(27,107,53,.09);
  display: flex; align-items: center; justify-content: center; color: var(--green);
  margin: 0 auto 18px;
}
.plat-card-icon svg { width: 28px; height: 28px; }
.platform-card h3 { font-size: 17px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.plat-divider { width: 36px; height: 3px; background: var(--gold); border-radius: 2px; margin: 10px auto 14px; }
.platform-card > p { font-size: 13px; color: var(--text-light); line-height: 1.65; margin-bottom: 14px; }
.level-row { display: flex; gap: 5px; justify-content: center; flex-wrap: wrap; margin-bottom: 16px; }
.lv { padding: 3px 10px; border-radius: 50px; font-size: 11px; font-weight: 700; }
.lv-a1 { background:#E8F5E9; color:#1B6B35; }
.lv-a2 { background:#E3F2FD; color:#1565C0; }
.lv-b1 { background:#FFF3E0; color:#E65100; }
.lv-b2 { background:#FCE4EC; color:#C62828; }
.lv-c1 { background:#EDE7F6; color:#4527A0; }

.exercise-box { background: var(--light); border-radius: var(--radius); padding: 14px; text-align: left; margin-bottom: 12px; }
.exercise-box .q { font-size: 12.5px; color: var(--text-mid); margin-bottom: 8px; }
.exercise-box .q span { font-style: italic; border-bottom: 1.5px dashed var(--text-light); padding-bottom: 1px; }
.ex-opts { display: flex; flex-direction: column; gap: 5px; }
.ex-opt { display: flex; align-items: center; gap: 7px; font-size: 12.5px; padding: 5px 8px; border-radius: 4px; color: var(--text-mid); }
.ex-opt.correct { background: #E8F5E9; color: var(--green); font-weight: 600; }
.ex-opt input { accent-color: var(--green); }

.test-result-box { background: var(--light); border-radius: var(--radius); padding: 18px; text-align: center; margin-bottom: 12px; }
.test-score { font-size: 42px; font-weight: 800; color: var(--green); line-height: 1; }
.test-label { font-size: 12px; color: var(--text-light); margin-bottom: 12px; }
.test-rows { text-align: left; }
.test-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 11.5px; }
.test-row-name { min-width: 110px; color: var(--text-mid); }
.test-row-bar { flex: 1; height: 5px; background: var(--border); border-radius: 3px; overflow: hidden; }
.test-row-fill { height: 100%; background: var(--green); border-radius: 3px; }
.test-row-pct { font-weight: 700; color: var(--navy); min-width: 28px; text-align: right; }

.mat-list { text-align: left; }
.mat-item { display: flex; align-items: center; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 13px; color: var(--text-mid); }
.mat-item:last-child { border-bottom: none; }
.mat-item-left { display: flex; align-items: center; gap: 9px; }
.mat-item-left svg { width: 18px; height: 18px; color: var(--green); flex-shrink: 0; }
.mat-item svg.arr { width: 14px; height: 14px; color: var(--text-light); }

.plat-cta { background: var(--light); padding: 40px 0; text-align: center; }
.plat-cta .inner { max-width: 680px; margin: 0 auto; padding: 0 24px; }
.plat-cta h3 { font-size: 20px; font-weight: 800; color: var(--navy); margin-bottom: 4px; }
.plat-cta p { font-size: 14px; color: var(--text-light); margin-bottom: 20px; }

/* ─── GÉNEROS PAGE ────────────────────────────────────── */
.generos-section { padding: 48px 0; }
.generos-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.genero-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px 22px;
  display: flex; align-items: flex-start; gap: 16px;
  transition: var(--tr); cursor: pointer;
}
.genero-card:hover { box-shadow: var(--shadow-lg); border-color: var(--green); transform: translateY(-2px); }
.genero-icon {
  width: 50px; height: 50px; border-radius: var(--radius);
  background: var(--light); display: flex; align-items: center; justify-content: center;
  color: var(--navy); flex-shrink: 0;
}
.genero-icon svg { width: 28px; height: 28px; }
.genero-card h3 { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 5px; }
.genero-card p { font-size: 12.5px; color: var(--text-light); line-height: 1.55; }

/* ─── NOVEDADES PAGE ──────────────────────────────────── */
.novedades-section { padding: 48px 0; }
.novedades-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.novedades-features { background: var(--light); padding: 32px 0; }
.nov-feats { display: flex; gap: 40px; justify-content: center; flex-wrap: wrap; }
.nov-feat { display: flex; align-items: center; gap: 12px; }
.nov-feat-icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--white); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; color: var(--green);
}
.nov-feat-icon svg { width: 22px; height: 22px; }
.nov-feat span { font-size: 13px; font-weight: 500; color: var(--text-mid); }
.novedades-newsletter { background: var(--navy); padding: 28px 0; }
.nl-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.nl-inner p { font-size: 14px; color: rgba(255,255,255,.85); font-weight: 500; }
.nl-form { display: flex; gap: 8px; }
.nl-form input { padding: 10px 16px; border: none; border-radius: 6px; font-size: 13.5px; outline: none; min-width: 240px; }
.nl-form button { background: var(--green); color: var(--white); padding: 10px 20px; border-radius: 6px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .4px; transition: var(--tr); border: none; cursor: pointer; }
.nl-form button:hover { background: var(--green-light); }

/* ─── PROMOCIONES PAGE ────────────────────────────────── */
.promo-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white); padding: 56px 0;
}
.promo-hero__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.promo-hero h1 { font-size: 34px; font-weight: 800; margin-bottom: 10px; color: var(--white); }
.promo-hero p { color: rgba(255,255,255,.8); font-size: 15px; margin-bottom: 24px; line-height: 1.65; }
.promo-hero__img {
  border-radius: var(--radius-lg); overflow: hidden; height: 220px;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
}
.promo-hero__img svg { width: 100px; height: 100px; color: var(--gold); opacity: .8; }

.promo-badges { display: flex; gap: 14px; justify-content: center; padding: 32px 0; flex-wrap: wrap; }
.promo-badge {
  display: flex; align-items: center; gap: 12px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 20px;
  box-shadow: var(--shadow-sm); min-width: 160px;
}
.promo-badge__icon { color: var(--green); }
.promo-badge__icon svg { width: 28px; height: 28px; }
.promo-badge__pct { font-size: 22px; font-weight: 900; color: var(--green); line-height: 1; }
.promo-badge__text { font-size: 11.5px; color: var(--text-mid); line-height: 1.4; }

.combos-section { padding: 40px 0 56px; }
.combos-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; margin-top: 28px; }
.combo-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 22px; text-align: center;
  transition: var(--tr);
}
.combo-card:hover { box-shadow: var(--shadow-lg); }
.combo-visual {
  height: 110px; background: var(--light); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px; gap: 6px;
}
.combo-mini-book {
  width: 36px; height: 52px; border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 2px 2px 6px rgba(0,0,0,.2);
}
.combo-card h3 { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.combo-card .combo-desc { font-size: 12px; color: var(--text-light); margin-bottom: 14px; }
.combo-price { display: flex; align-items: baseline; gap: 6px; justify-content: center; margin-bottom: 16px; }
.combo-price .new { font-size: 22px; font-weight: 800; color: var(--navy); }
.combo-price .old { font-size: 13px; color: var(--text-light); text-decoration: line-through; }

/* ─── SOBRE NOSOTROS ──────────────────────────────────── */
.about-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; padding: 56px 0 48px; }
.about-intro h2 { font-size: 28px; font-weight: 800; color: var(--navy); margin-bottom: 16px; }
.about-intro p { font-size: 14.5px; color: var(--text-mid); line-height: 1.8; margin-bottom: 14px; }
.about-visual {
  border-radius: var(--radius-lg); overflow: hidden; height: 320px;
  background: var(--light); display: flex; align-items: center; justify-content: center;
}
.about-visual img { width: 100%; height: 100%; object-fit: cover; }

.values-section { background: var(--light); padding: 48px 0; }
.values-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 28px; }
.value-card {
  background: var(--white); border-radius: var(--radius); padding: 26px;
  transition: var(--tr);
}
.value-card:hover { box-shadow: var(--shadow); }
.value-icon {
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(27,107,53,.1);
  display: flex; align-items: center; justify-content: center; color: var(--green);
  margin-bottom: 14px;
}
.value-icon svg { width: 22px; height: 22px; }
.value-card h3 { font-size: 14.5px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.value-card p { font-size: 13px; color: var(--text-light); line-height: 1.6; }

.added-value { padding: 48px 0; }
.av-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; margin-top: 28px; }
.av-item { display: flex; gap: 14px; padding: 20px; background: var(--light); border-radius: var(--radius); }
.av-item-icon { width: 38px; height: 38px; border-radius: 50%; background: rgba(27,107,53,.1); display: flex; align-items: center; justify-content: center; color: var(--green); flex-shrink: 0; }
.av-item-icon svg { width: 20px; height: 20px; }
.av-item h4 { font-size: 13.5px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.av-item p { font-size: 12.5px; color: var(--text-light); line-height: 1.55; }

/* ─── CONTACTO ────────────────────────────────────────── */
.contact-section { padding: 56px 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: 36px; }
.contact-info h2 { font-size: 20px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.contact-info > p { font-size: 13px; color: var(--text-light); margin-bottom: 24px; line-height: 1.6; }
.c-info-item { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.c-info-icon { width: 36px; height: 36px; border-radius: 50%; background: rgba(27,107,53,.1); display: flex; align-items: center; justify-content: center; color: var(--green); flex-shrink: 0; }
.c-info-icon svg { width: 17px; height: 17px; }
.c-info-text strong { display: block; font-size: 13px; font-weight: 700; color: var(--navy); margin-bottom: 1px; }
.c-info-text span, .c-info-text a { font-size: 13px; color: var(--text-mid); }
.c-info-text a:hover { color: var(--green); }

.contact-form h2 { font-size: 20px; font-weight: 700; color: var(--navy); margin-bottom: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 12.5px; font-weight: 600; color: var(--text); margin-bottom: 5px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 10px 13px;
  border: 1.5px solid var(--border); border-radius: 6px;
  font-size: 13.5px; outline: none; transition: var(--tr); color: var(--text);
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--green); }
.form-group textarea { resize: vertical; min-height: 110px; }

.contact-social h2 { font-size: 20px; font-weight: 700; color: var(--navy); margin-bottom: 18px; }
.social-links { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.social-link {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px;
  border: 1px solid var(--border); border-radius: var(--radius);
  transition: var(--tr); font-size: 13.5px; color: var(--text-mid); font-weight: 500;
}
.social-link:hover { border-color: var(--green); color: var(--green); }
.social-link svg { width: 20px; height: 20px; flex-shrink: 0; }
.map-placeholder {
  height: 130px; background: var(--light2); border-radius: var(--radius);
  border: 1px solid var(--border); overflow: hidden;
  display: flex; align-items: center; justify-content: center; color: var(--text-light); font-size: 13px;
}

.contact-footer-strip { background: var(--navy); padding: 24px 0; }
.cfs-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cfs-inner p { font-size: 13px; color: rgba(255,255,255,.8); }
.cfs-right { display: flex; align-items: center; gap: 16px; }
.cfs-input { display: flex; gap: 8px; }
.cfs-input input { padding: 9px 14px; border: none; border-radius: 6px; font-size: 13px; outline: none; min-width: 200px; }
.cfs-input button { background: var(--green); color: var(--white); padding: 9px 18px; border-radius: 6px; font-size: 12px; font-weight: 800; text-transform: uppercase; transition: var(--tr); border: none; cursor: pointer; }
.cfs-input button:hover { background: var(--green-light); }
.payment-icons { display: flex; gap: 8px; align-items: center; }
.payment-icons span { font-size: 11px; color: rgba(255,255,255,.7); background: rgba(255,255,255,.15); padding: 3px 8px; border-radius: 4px; font-weight: 600; }

/* ─── PRODUCTO INDIVIDUAL ────────────────────────────── */
.breadcrumb {
  padding: 14px 0;
  font-size: 12.5px;
  color: var(--text-light);
  border-bottom: 1px solid var(--border);
}
.breadcrumb a { color: var(--text-light); transition: var(--tr); }
.breadcrumb a:hover { color: var(--green); }
.breadcrumb span { margin: 0 6px; }
.breadcrumb strong { color: var(--text); }

.product-detail { padding: 36px 0 56px; }
.product-detail__layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 52px;
  align-items: start;
}

.product-detail__cover-main {
  aspect-ratio: 3/4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-bottom: 14px;
  display: flex; align-items: center; justify-content: center;
}
.product-detail__cover-main .product-card__cover-inner {
  width: 100%; height: 100%;
  padding: 32px; transform: none !important;
}
.product-detail__cover-main .cover-title { font-size: 22px; }
.product-detail__cover-main .cover-author { font-size: 14px; margin-top: 14px; }
.product-detail__thumbnails { display: flex; gap: 10px; }
.thumb {
  width: 64px; height: 80px;
  border-radius: 6px; overflow: hidden;
  border: 2px solid transparent; cursor: pointer;
  transition: var(--tr); flex-shrink: 0;
}
.thumb.active { border-color: var(--green); }
.thumb:hover { border-color: var(--green); }
.thumb .product-card__cover-inner { width: 100%; height: 100%; padding: 6px; transform: none !important; }
.thumb .cover-title { font-size: 7px; }
.thumb .cover-author { font-size: 6px; margin-top: 4px; }

.product-detail__badge-row { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.pd-cat-badge {
  background: rgba(27,107,53,.1); color: var(--green);
  font-size: 11px; font-weight: 700; padding: 4px 12px;
  border-radius: 50px; text-transform: uppercase; letter-spacing: .4px;
}
.pd-new-badge {
  background: var(--gold); color: var(--navy);
  font-size: 11px; font-weight: 700; padding: 4px 12px; border-radius: 50px;
}
.product-detail__title {
  font-size: 30px; font-weight: 800; color: var(--navy);
  line-height: 1.25; margin-bottom: 6px;
}
.product-detail__author { font-size: 15px; color: var(--text-mid); margin-bottom: 14px; }
.product-detail__author a { color: var(--green); font-weight: 600; }
.product-detail__author a:hover { text-decoration: underline; }

.rating-row { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.stars { display: flex; gap: 2px; color: var(--gold); }
.stars svg { width: 16px; height: 16px; }
.rating-count { font-size: 13px; color: var(--text-light); }
.rating-count a { color: var(--green); }

.price-block { margin-bottom: 20px; }
.price-block .price-main { font-size: 34px; font-weight: 900; color: var(--navy); line-height: 1; }
.price-block .price-old { font-size: 15px; color: var(--text-light); text-decoration: line-through; margin-left: 10px; }
.price-block .price-save { font-size: 12px; background: #E8F5E9; color: var(--green); font-weight: 700; padding: 3px 9px; border-radius: 4px; margin-left: 8px; }
.price-block .price-note { font-size: 12px; color: var(--text-light); margin-top: 5px; }

.product-detail__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.meta-pill {
  display: flex; align-items: center; gap: 6px;
  background: var(--light); border: 1px solid var(--border);
  border-radius: 50px; padding: 6px 14px;
  font-size: 12px; font-weight: 600; color: var(--text-mid);
}
.meta-pill svg { width: 13px; height: 13px; color: var(--green); }

.ideal-para { margin-bottom: 22px; }
.ideal-para h4 { font-size: 12.5px; font-weight: 700; color: var(--navy); margin-bottom: 8px; text-transform: uppercase; letter-spacing: .4px; }
.ideal-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.ideal-tag {
  background: var(--navy); color: white;
  font-size: 11.5px; font-weight: 500; padding: 5px 14px; border-radius: 50px;
}

.niveles-row { margin-bottom: 22px; }
.niveles-row h4 { font-size: 12.5px; font-weight: 700; color: var(--navy); margin-bottom: 8px; text-transform: uppercase; letter-spacing: .4px; }

.add-to-cart-row { display: flex; gap: 12px; align-items: center; margin-bottom: 18px; flex-wrap: wrap; }
.qty-selector {
  display: flex; align-items: center; gap: 0;
  border: 1.5px solid var(--border); border-radius: 6px; overflow: hidden;
}
.qty-btn {
  width: 38px; height: 46px; display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--text-mid); background: var(--light);
  cursor: pointer; transition: var(--tr); border: none;
}
.qty-btn:hover { background: var(--border); color: var(--navy); }
.qty-input {
  width: 48px; height: 46px; text-align: center;
  border: none; border-left: 1.5px solid var(--border); border-right: 1.5px solid var(--border);
  font-size: 15px; font-weight: 700; color: var(--navy); outline: none;
}
.btn-add-cart { flex: 1; justify-content: center; padding: 13px 24px; font-size: 14px; }
.btn-wishlist {
  width: 46px; height: 46px; border-radius: 6px;
  border: 1.5px solid var(--border); display: flex; align-items: center; justify-content: center;
  color: var(--text-mid); cursor: pointer; transition: var(--tr); background: var(--white);
}
.btn-wishlist:hover { border-color: #e53e3e; color: #e53e3e; }
.btn-wishlist svg { width: 18px; height: 18px; }

.product-trust { display: flex; gap: 14px; flex-wrap: wrap; padding: 16px; background: var(--light); border-radius: var(--radius); margin-bottom: 18px; }
.pt-item { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--text-mid); }
.pt-item svg { width: 15px; height: 15px; color: var(--green); flex-shrink: 0; }

.share-row { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--text-light); }
.share-btn { width: 30px; height: 30px; border-radius: 50%; background: var(--light); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: var(--tr); color: var(--text-mid); }
.share-btn:hover { background: var(--navy); color: white; border-color: var(--navy); }
.share-btn svg { width: 14px; height: 14px; }

.product-tabs { margin-top: 48px; border-bottom: 2px solid var(--border); display: flex; gap: 0; }
.product-tab {
  padding: 13px 24px; font-size: 14px; font-weight: 600; color: var(--text-mid);
  cursor: pointer; transition: var(--tr); position: relative; border-bottom: 2px solid transparent; margin-bottom: -2px;
  background: none; border-left: none; border-right: none; border-top: none;
}
.product-tab:hover { color: var(--green); }
.product-tab.active { color: var(--green); border-bottom-color: var(--green); }

.product-tab-content { padding: 32px 0; display: none; }
.product-tab-content.active { display: block; }
.product-tab-content h3 { font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 12px; }
.product-tab-content p { font-size: 14px; color: var(--text-mid); line-height: 1.8; margin-bottom: 14px; }
.product-tab-content ul { padding-left: 0; display: flex; flex-direction: column; gap: 8px; }
.product-tab-content ul li { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; color: var(--text-mid); }
.product-tab-content ul li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--green); margin-top: 7px; flex-shrink: 0; }
.detail-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.detail-table tr { border-bottom: 1px solid var(--border); }
.detail-table td { padding: 11px 16px; }
.detail-table td:first-child { font-weight: 600; color: var(--navy); width: 160px; background: var(--light); }
.detail-table td:last-child { color: var(--text-mid); }

.review-summary { display: flex; gap: 32px; align-items: center; margin-bottom: 28px; padding: 24px; background: var(--light); border-radius: var(--radius-lg); }
.review-big-score { text-align: center; }
.review-big-score .score { font-size: 52px; font-weight: 900; color: var(--navy); line-height: 1; }
.review-big-score .out-of { font-size: 12px; color: var(--text-light); }
.review-bars { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.review-bar-row { display: flex; align-items: center; gap: 10px; font-size: 12px; }
.review-bar-row span:first-child { width: 40px; color: var(--text-light); text-align: right; }
.review-bar-track { flex: 1; height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; }
.review-bar-fill { height: 100%; background: var(--gold); border-radius: 4px; }
.review-bar-row span:last-child { width: 30px; color: var(--text-light); }

.review-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 14px; }
.review-card__header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.reviewer-name { font-size: 14px; font-weight: 700; color: var(--navy); }
.review-date { font-size: 12px; color: var(--text-light); }
.review-card p { font-size: 13.5px; color: var(--text-mid); line-height: 1.7; }

.related-section { padding: 48px 0; background: var(--light); }

@media (max-width: 860px) {
  .product-detail__layout { grid-template-columns: 1fr; }
  .product-detail__cover-main { max-width: 320px; margin: 0 auto 14px; }
  .product-detail__title { font-size: 24px; }
}

/* ─── TOAST NOTIFICATION ──────────────────────────────── */
.sl-toast {
  position: fixed; bottom: 28px; right: 28px; z-index: 9999;
  background: var(--navy); color: #fff; font-size: 13px; font-weight: 600;
  padding: 12px 20px; border-radius: 8px; box-shadow: 0 6px 20px rgba(0,0,0,.25);
  opacity: 0; transition: opacity .25s ease; pointer-events: none;
  font-family: var(--font); display: flex; align-items: center; gap: 10px;
}
.sl-toast.show { opacity: 1; }
.sl-toast svg { width: 16px; height: 16px; color: var(--gold); flex-shrink: 0; }

/* ─── RESPONSIVE ──────────────────────────────────────── */
@media (max-width:1100px) {
  .product-row { grid-template-columns: repeat(4,1fr); }
  .product-grid { grid-template-columns: repeat(3,1fr); }
  .footer-main { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { display: none; }
}
@media (max-width:860px) {
  .hero__inner { grid-template-columns: 1fr; }
  .book-stack { display: none; }
  .hero__headline { font-size: 30px; }
  .newsletter__inner { grid-template-columns: 1fr; }
  .newsletter__visual { display: none; }
  .libros-layout { grid-template-columns: 1fr; }
  .filters-sidebar { display: none; }
  .product-grid { grid-template-columns: repeat(2,1fr); }
  .platform-cards { grid-template-columns: 1fr; }
  .generos-grid { grid-template-columns: repeat(2,1fr); }
  .novedades-grid { grid-template-columns: repeat(2,1fr); }
  .combos-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: repeat(2,1fr); }
  .about-intro { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .promo-hero__inner { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .av-grid { grid-template-columns: 1fr; }
  .cart-sidebar { width: 100vw; }
}
@media (max-width:600px) {
  .top-bar__left { display: none; }
  .product-row { grid-template-columns: repeat(2,1fr); }
  .main-nav__inner { overflow-x: auto; }
  .nav-item { padding: 12px 10px; font-size: 11px; }
  .hero__headline { font-size: 26px; }
  .newsletter__form { flex-direction: column; }
  .generos-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; }
  .promo-badges { flex-direction: column; align-items: center; }
}
