
:root{
  --gea-yellow:#fff2a6;
  --gea-yellow-strong:#f2cf54;
  --paper:#fffdf5;
  --ink:#2d2a22;
  --muted:#6f6755;
  --line:#eadfba;
  --card:#ffffff;
  --accent:#765f1b;
  --accent-soft:#f7e7a4;
  --shadow:0 12px 30px rgba(83,67,24,.12);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color:var(--ink);
  background:linear-gradient(180deg,var(--gea-yellow) 0,#fff9d8 260px,#faf7ec 650px);
  line-height:1.55;
}
a{color:#5d4a12;text-decoration:none}
a:hover{text-decoration:underline}
img{max-width:100%;height:auto}
.container{width:min(1180px, calc(100% - 32px));margin-inline:auto}
.site-header{
  border-bottom:1px solid rgba(93,74,18,.18);
  background:rgba(255,242,166,.92);
  backdrop-filter: blur(10px);
  position:sticky;top:0;z-index:20;
}
.header-inner{display:flex;align-items:center;gap:18px;padding:14px 0}
.logo-link{display:flex;align-items:center;gap:12px;color:var(--ink)}
.logo{width:62px;height:62px;object-fit:contain}
.brand-title{font-size:clamp(1.45rem,2.6vw,2.2rem);line-height:1.05;font-weight:800;letter-spacing:.2px}
.brand-subtitle{font-size:.92rem;color:var(--muted);margin-top:3px}
.main-nav{margin-left:auto;display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.nav-item{position:relative}
.nav-link,.plain-nav{
  display:inline-flex;align-items:center;gap:6px;
  padding:10px 12px;border-radius:999px;
  font-weight:700;font-size:.93rem;
}
.nav-link:hover,.plain-nav:hover{background:rgba(255,255,255,.55);text-decoration:none}
.dropdown{
  position:absolute;right:0;top:calc(100% + 8px);
  background:#fffef8;border:1px solid var(--line);box-shadow:var(--shadow);
  border-radius:18px;padding:12px;min-width:240px;
  opacity:0;visibility:hidden;transform:translateY(6px);
  transition:.18s ease;
}
.nav-item:hover .dropdown{opacity:1;visibility:visible;transform:translateY(0)}
.dropdown a{display:block;padding:8px 10px;border-radius:10px;color:var(--ink)}
.dropdown a:hover{background:var(--accent-soft);text-decoration:none}
.hero{padding:42px 0 30px}
.hero-card{
  background:rgba(255,255,255,.72);
  border:1px solid rgba(93,74,18,.16);
  border-radius:28px;
  box-shadow:var(--shadow);
  padding:clamp(22px,4vw,42px);
  display:grid;
  grid-template-columns:1.35fr .65fr;
  gap:26px;
}
.kicker{font-weight:800;text-transform:uppercase;letter-spacing:.09em;color:var(--accent);font-size:.78rem}
.hero h1{font-size:clamp(2rem,4vw,3.5rem);line-height:1.05;margin:8px 0 12px}
.hero p{font-size:1.08rem;color:#4d4636;margin:0}
.hero-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:22px}
.btn{
  display:inline-flex;align-items:center;justify-content:center;
  border-radius:999px;padding:11px 16px;font-weight:800;border:1px solid #a98d2f;
  background:#735d18;color:#fff;text-decoration:none;
}
.btn:hover{text-decoration:none;background:#5d4a12}
.btn.secondary{background:#fffef7;color:#5d4a12}
.hero-side{
  background:#fff7c7;border:1px solid var(--line);border-radius:22px;padding:20px;
}
.hero-side h2{font-size:1rem;margin:0 0 10px}
.hero-side ul{margin:0;padding-left:20px;color:#4d4636}
.section{padding:24px 0}
.section-title{display:flex;align-items:end;justify-content:space-between;gap:12px;margin-bottom:16px}
.section-title h2{font-size:clamp(1.45rem,2vw,2rem);margin:0}
.section-title p{margin:4px 0 0;color:var(--muted)}
.layout{display:grid;grid-template-columns:1fr 280px;gap:26px;align-items:start}
.book-grid{
  display:grid;
  grid-template-columns:repeat(4, minmax(0,1fr));
  gap:18px;
}
.book-card{
  background:var(--card);border:1px solid var(--line);border-radius:22px;
  overflow:hidden;box-shadow:0 6px 18px rgba(83,67,24,.09);
  display:flex;flex-direction:column;min-height:100%;
}
.book-card a.cover-link{display:block;background:#f5efcf;text-align:center;padding:16px 14px 10px}
.book-card img{height:210px;width:auto;max-width:100%;object-fit:contain;filter:drop-shadow(0 6px 10px rgba(0,0,0,.16))}
.book-info{padding:14px 14px 16px;display:flex;flex-direction:column;gap:6px;flex:1}
.book-info h3{font-size:1rem;line-height:1.2;margin:0}
.book-meta{color:var(--muted);font-size:.9rem;margin:0}
.card-actions{margin-top:auto;padding-top:8px}
.link-button{
  display:inline-flex;align-items:center;justify-content:center;
  width:100%;border-radius:12px;background:#fff7d0;border:1px solid var(--line);
  padding:9px 10px;font-weight:800;
}
.link-button:hover{background:#ffefab;text-decoration:none}
.side-panel{
  background:#fffef8;border:1px solid var(--line);border-radius:22px;padding:18px;box-shadow:var(--shadow);
  position:sticky;top:104px;
}
.side-panel h2{font-size:1.05rem;margin:0 0 12px}
.side-group{margin-top:16px}
.side-group h3{font-size:.9rem;text-transform:uppercase;letter-spacing:.06em;margin:0 0 8px;color:var(--accent)}
.side-panel a{display:block;padding:7px 0;border-bottom:1px dashed #eadfba;font-size:.95rem}
.catalog-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.catalog-card{background:#fff;border:1px solid var(--line);border-radius:20px;padding:18px;box-shadow:0 6px 18px rgba(83,67,24,.08)}
.catalog-card h3{margin:0 0 10px}
.book-page{padding:34px 0}
.breadcrumb{font-size:.9rem;color:var(--muted);margin-bottom:18px}
.book-hero{
  background:#ffffff;border:1px solid var(--line);border-radius:28px;padding:clamp(20px,3vw,34px);
  box-shadow:var(--shadow);display:grid;grid-template-columns:280px 1fr;gap:32px;align-items:start;
}
.book-cover{text-align:center;background:#f6efcb;border-radius:22px;padding:20px}
.book-cover img{max-height:380px;object-fit:contain;filter:drop-shadow(0 10px 16px rgba(0,0,0,.16))}
.book-details h1{font-size:clamp(1.8rem,3vw,3rem);line-height:1.05;margin:0 0 16px}
.details-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:18px 0}
.detail{background:#fff7d0;border:1px solid var(--line);border-radius:14px;padding:10px 12px}
.detail span{display:block;color:var(--muted);font-size:.78rem;text-transform:uppercase;font-weight:800}
.detail strong{font-size:1rem}
.tabs{margin-top:26px;background:#fffef8;border:1px solid var(--line);border-radius:24px;box-shadow:var(--shadow);overflow:hidden}
.tab-buttons{display:flex;gap:0;border-bottom:1px solid var(--line);background:#fff7d0}
.tab-buttons button{appearance:none;border:0;background:transparent;padding:14px 18px;font-weight:900;cursor:pointer;color:#5d4a12}
.tab-buttons button.active{background:#fffef8;color:var(--ink)}
.tab-panel{display:none;padding:22px}
.tab-panel.active{display:block}
.tab-panel p{margin:0 0 1em}
.index-list{columns:2;column-gap:34px;margin:0;padding-left:22px}
.index-list li{break-inside:avoid;margin-bottom:6px}
.site-footer{margin-top:38px;background:#4a3b12;color:#fff8cf}
.footer-grid{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:22px;padding:28px 0}
.site-footer a{color:#fff8cf;display:block;margin:6px 0}
.footer-bottom{border-top:1px solid rgba(255,255,255,.2);padding:12px 0;color:#f5e8a7;font-size:.9rem}
.notice{background:#fff7d0;border:1px solid var(--line);border-radius:18px;padding:14px;margin-top:18px;color:#5d4a12}
@media (max-width: 1000px){
  .book-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .layout{grid-template-columns:1fr}
  .side-panel{position:static}
  .hero-card{grid-template-columns:1fr}
}
@media (max-width: 760px){
  .site-header{position:static}
  .header-inner{align-items:flex-start}
  .main-nav{width:100%;margin-left:0}
  .dropdown{position:static;opacity:1;visibility:visible;transform:none;box-shadow:none;margin-top:4px;display:none}
  .nav-item:focus-within .dropdown,.nav-item:hover .dropdown{display:block}
  .book-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .book-hero{grid-template-columns:1fr}
  .details-list{grid-template-columns:1fr}
  .catalog-grid{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:1fr}
  .index-list{columns:1}
}
@media (max-width: 480px){
  .container{width:min(100% - 22px,1180px)}
  .book-grid{grid-template-columns:1fr}
  .book-card img{height:230px}
  .logo{width:50px;height:50px}
}


/* ===== Ajustes versión 3: paleta turquesa/cielo coherente ===== */
:root {
  --gea-ink: #1f2f35;
  --gea-text: #25353a;
  --gea-muted: #60737a;
  --gea-primary: #59bdc9;
  --gea-primary-dark: #1b7f8c;
  --gea-primary-deep: #126270;
  --gea-primary-soft: #e7f8fa;
  --gea-primary-softer: #f6fcfd;
  --gea-primary-pale: #dff4f7;
  --gea-card: #ffffff;
  --gea-border: #c8e8ed;
  --gea-shadow: rgba(18, 98, 112, 0.16);
  --gea-hero-start: #e9f9fb;
  --gea-hero-mid: #f6fcfd;
  --gea-hero-end: #ffffff;
}

/* Base */
body {
  background: linear-gradient(180deg, var(--gea-primary-softer) 0%, #ffffff 75%) !important;
  color: var(--gea-text) !important;
}

a {
  color: var(--gea-primary-dark) !important;
}

a:hover {
  color: var(--gea-primary-deep) !important;
}

/* Cabecera y zona hero */
header,
.site-header,
.topbar {
  background: var(--gea-primary-soft) !important;
  color: var(--gea-ink) !important;
  border-color: var(--gea-border) !important;
}

.hero,
.hero-section,
.home-hero,
.catalog-hero,
.intro-hero,
.banner,
.cover,
.section-hero {
  background: linear-gradient(135deg, var(--gea-hero-start) 0%, var(--gea-hero-mid) 58%, var(--gea-hero-end) 100%) !important;
  color: var(--gea-ink) !important;
  border-color: var(--gea-border) !important;
}

.hero *,
.hero-section *,
.home-hero *,
.catalog-hero *,
.intro-hero *,
.banner *,
.cover *,
.section-hero * {
  color: inherit;
}

/* Menú superior y desplegables */
nav,
.nav,
.main-nav,
.menu,
.menu-bar,
.navbar,
.site-nav {
  background: var(--gea-primary) !important;
  color: var(--gea-ink) !important;
  border-color: var(--gea-primary) !important;
}

nav a,
.nav a,
.main-nav a,
.menu a,
.menu-bar a,
.navbar a,
.site-nav a {
  color: var(--gea-ink) !important;
}

nav a:hover,
.nav a:hover,
.main-nav a:hover,
.menu a:hover,
.menu-bar a:hover,
.navbar a:hover,
.site-nav a:hover {
  color: var(--gea-primary-deep) !important;
  background: rgba(255,255,255,0.25) !important;
}

/* Dropdowns: fuerza legibilidad y nueva paleta */
.dropdown,
.dropdown-menu,
.submenu,
.menu-dropdown,
.nav-dropdown,
nav ul ul,
.nav ul ul,
.main-nav ul ul,
.menu ul ul,
.menu-bar ul ul,
.site-nav ul ul {
  background: var(--gea-primary) !important;
  border-color: var(--gea-primary) !important;
  color: var(--gea-ink) !important;
  box-shadow: 0 12px 28px rgba(18, 98, 112, 0.18) !important;
}

.dropdown *,
.dropdown-menu *,
.submenu *,
.menu-dropdown *,
.nav-dropdown *,
nav ul ul *,
.nav ul ul *,
.main-nav ul ul *,
.menu ul ul *,
.menu-bar ul ul *,
.site-nav ul ul * {
  color: var(--gea-ink) !important;
}

.dropdown a,
.dropdown-menu a,
.submenu a,
.menu-dropdown a,
.nav-dropdown a,
nav ul ul a,
.nav ul ul a,
.main-nav ul ul a,
.menu ul ul a,
.menu-bar ul ul a,
.site-nav ul ul a {
  color: var(--gea-ink) !important;
  background: transparent !important;
}

.dropdown a:hover,
.dropdown-menu a:hover,
.submenu a:hover,
.menu-dropdown a:hover,
.nav-dropdown a:hover,
nav ul ul a:hover,
.nav ul ul a:hover,
.main-nav ul ul a:hover,
.menu ul ul a:hover,
.menu-bar ul ul a:hover,
.site-nav ul ul a:hover {
  background: rgba(255,255,255,0.32) !important;
  color: var(--gea-primary-deep) !important;
}

/* Títulos y textos antes marrones */
.eyebrow,
.kicker,
.label,
.section-label,
.catalog-label,
.categoria-label,
.temas-label,
h1, h2, h3, h4,
.section-title,
.catalog-title,
.explore-title {
  color: var(--gea-ink) !important;
}

.hero-subtitle,
.subtitle,
.tagline,
.lead,
.intro,
.catalog-intro,
.site-description,
.header-description,
.index-subtitle,
.index-description,
.home-description,
.site-header p {
  font-size: 0.92rem !important;
  line-height: 1.45 !important;
  color: var(--gea-muted) !important;
}

/* Temáticas principales y tarjetas */
.card,
.book-card,
.catalog-card,
.theme-card,
.tema-card,
.sidebar,
.aside,
.panel,
.box,
.book-panel,
.category-panel,
.recommended-card {
  background: var(--gea-card) !important;
  border-color: var(--gea-border) !important;
  color: var(--gea-text) !important;
}

.card *,
.book-card *,
.catalog-card *,
.theme-card *,
.tema-card *,
.sidebar *,
.aside *,
.panel *,
.box *,
.book-panel *,
.category-panel *,
.recommended-card * {
  color: inherit;
}

.card h3,
.book-card h3,
.catalog-card h3,
.theme-card h3,
.tema-card h3 {
  color: var(--gea-ink) !important;
}

.card p,
.book-card p,
.catalog-card p,
.theme-card p,
.tema-card p {
  color: var(--gea-text) !important;
}

.tematicas-principales,
.main-topics,
.topics-panel,
.topics-box,
.temas-principales {
  background: var(--gea-card) !important;
  border-color: var(--gea-border) !important;
  color: var(--gea-text) !important;
}

.tematicas-principales *,
.main-topics *,
.topics-panel *,
.topics-box *,
.temas-principales * {
  color: var(--gea-text) !important;
}

.card:hover,
.book-card:hover,
.catalog-card:hover,
.theme-card:hover,
.tema-card:hover {
  box-shadow: 0 10px 24px var(--gea-shadow) !important;
}

/* Botones */
button,
.btn,
.boton,
.button,
.card a.btn,
.book-card a.btn,
.book-card .btn,
.card .btn,
a.btn,
a.button,
.ver-ficha,
.consultar-precio,
.hacer-consulta {
  background: var(--gea-primary) !important;
  border-color: var(--gea-primary-dark) !important;
  color: var(--gea-ink) !important;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease !important;
}

button:hover,
.btn:hover,
.boton:hover,
.button:hover,
.card a.btn:hover,
.book-card a.btn:hover,
.book-card .btn:hover,
.card .btn:hover,
a.btn:hover,
a.button:hover,
.ver-ficha:hover,
.consultar-precio:hover,
.hacer-consulta:hover {
  background: var(--gea-primary-dark) !important;
  border-color: var(--gea-primary-deep) !important;
  color: #ffffff !important;
  box-shadow: 0 8px 18px var(--gea-shadow) !important;
  transform: translateY(-1px);
}

/* Fichas de libro: tipografía más pequeña */
.book-detail h1,
.book-detail h2,
.libro-detalle h1,
.libro-detalle h2,
.product-detail h1,
.product-detail h2,
.book-main h1,
.book-main h2,
main article h1 {
  font-size: clamp(1.28rem, 2.3vw, 1.8rem) !important;
  line-height: 1.2 !important;
  color: var(--gea-ink) !important;
}

.book-meta,
.libro-meta,
.product-meta,
.ficha-tecnica,
.book-data,
.book-info,
.datos-libro,
.detail-meta,
.book-detail p,
.libro-detalle p,
.product-detail p {
  font-size: 0.9rem !important;
  line-height: 1.45 !important;
}

.book-meta p,
.libro-meta p,
.product-meta p,
.ficha-tecnica p,
.book-data p,
.book-info p,
.datos-libro p,
.detail-meta p {
  margin: 0.28rem 0 !important;
}

.price-note,
.precio-nota,
.note,
small,
.text-muted,
.price-maintenance {
  font-size: 0.82rem !important;
  line-height: 1.42 !important;
  color: var(--gea-muted) !important;
}

/* Pestañas descripción/índice */
.tabs,
.tab-container,
.book-tabs,
.libro-tabs {
  border-color: var(--gea-border) !important;
}

.tabs button,
.tab-button,
.tab-link,
.book-tabs button,
.libro-tabs button,
.tabs a,
.tab-nav a {
  background: var(--gea-primary-soft) !important;
  color: var(--gea-ink) !important;
  border-color: var(--gea-border) !important;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease !important;
}

.tabs button:hover,
.tab-button:hover,
.tab-link:hover,
.book-tabs button:hover,
.libro-tabs button:hover,
.tabs a:hover,
.tab-nav a:hover {
  background: var(--gea-primary-pale) !important;
  color: var(--gea-primary-deep) !important;
}

.tabs button.active,
.tab-button.active,
.tab-link.active,
.book-tabs button.active,
.libro-tabs button.active,
.tabs a.active,
.tab-nav a.active,
[aria-selected="true"] {
  background: var(--gea-primary) !important;
  color: var(--gea-ink) !important;
  border-color: var(--gea-primary-dark) !important;
}

/* Pie */
footer,
.site-footer {
  background: var(--gea-primary-soft) !important;
  color: var(--gea-text) !important;
  border-color: var(--gea-border) !important;
  font-size: 0.92rem !important;
}

footer *,
.site-footer * {
  color: var(--gea-text) !important;
}

footer a,
.site-footer a {
  color: var(--gea-primary-dark) !important;
}

footer a:hover,
.site-footer a:hover {
  color: var(--gea-primary-deep) !important;
}

footer h3,
.site-footer h3,
footer h4,
.site-footer h4 {
  font-size: 1rem !important;
  color: var(--gea-ink) !important;
}

.copyright,
.footer-copy,
.site-copy {
  color: var(--gea-text) !important;
}


/* ===== Ajuste v5: eliminar restos de paleta antigua en index/tarjetas/botones ===== */
:root {
  --v5-sky-soft: #e9f9fb;
  --v5-sky-soft-2: #f6fcfd;
  --v5-turquoise: #59bdc9;
  --v5-turquoise-dark: #176f7d;
  --v5-text: #243238;
  --v5-border: #c8e8ed;
}

/* Bloques destacados como "Temáticas principales" */
.tematicas-principales,
.temas-principales,
.main-topics,
.topics-panel,
.topics-box,
.category-panel,
.feature-box,
.highlight-box,
.info-box,
.index-panel,
.home-panel,
aside .panel,
.sidebar .panel {
  background: linear-gradient(135deg, var(--v5-sky-soft) 0%, var(--v5-sky-soft-2) 62%, #ffffff 100%) !important;
  border-color: var(--v5-border) !important;
  color: var(--v5-text) !important;
}

/* Si el bloque está hecho con cards genéricas */
.card,
.book-card,
.catalog-card,
.recommended-card,
.libro-card,
.product-card,
.grid-card {
  background: #ffffff !important;
  border-color: var(--v5-border) !important;
  color: var(--v5-text) !important;
}

/* Área/recinto visual de las imágenes de libros */
.card img,
.book-card img,
.catalog-card img,
.recommended-card img,
.libro-card img,
.product-card img,
.book-cover,
.cover-wrap,
.image-wrap,
.img-wrap,
.portada,
.portada-libro {
  background-color: var(--v5-sky-soft) !important;
  border-color: var(--v5-border) !important;
}

/* Botones como "Ver ficha" */
.btn,
.button,
.boton,
a.btn,
a.button,
.ver-ficha,
.card a,
.book-card a,
.catalog-card a,
.recommended-card a {
  background-color: var(--v5-turquoise) !important;
  border-color: var(--v5-turquoise-dark) !important;
  color: #ffffff !important;
}

.btn:hover,
.button:hover,
.boton:hover,
a.btn:hover,
a.button:hover,
.ver-ficha:hover,
.card a:hover,
.book-card a:hover,
.catalog-card a:hover,
.recommended-card a:hover {
  background-color: var(--v5-turquoise-dark) !important;
  border-color: #105a64 !important;
  color: #ffffff !important;
}

/* Texto dentro de temáticas principales */
.tematicas-principales *,
.temas-principales *,
.main-topics *,
.topics-panel *,
.topics-box *,
.category-panel *,
.feature-box *,
.highlight-box *,
.info-box *,
.index-panel *,
.home-panel * {
  color: var(--v5-text) !important;
}


/* ===== FIX v6 ===== */

/* quitar fondo en títulos de libros */
.book-card h3,
.book-card h3 a,
.catalog-card h3,
.catalog-card h3 a,
.card h3,
.card h3 a {
  background: none !important;
  border: none !important;
  padding: 0 !important;
}

/* asegurar fondo tematicas principales */
h2:contains("Temáticas principales"),
.tematicas-principales,
.temas-principales,
.main-topics {
  background: linear-gradient(135deg,#e9f9fb,#ffffff) !important;
  padding: 10px !important;
}


/* ===== FIX v7: panel completo temáticas + títulos visibles ===== */

/* Panel completo de Temáticas principales */
.v7-topics-panel {
  background: linear-gradient(135deg, #e9f9fb 0%, #f6fcfd 62%, #ffffff 100%) !important;
  border: 1px solid #c8e8ed !important;
  border-radius: 14px !important;
  padding: 18px 20px !important;
  color: #243238 !important;
  box-shadow: 0 8px 20px rgba(23,111,125,0.10) !important;
}

.v7-topics-panel,
.v7-topics-panel *,
.v7-topics-title {
  color: #243238 !important;
  background-color: transparent !important;
}

.v7-topics-panel a {
  color: #176f7d !important;
  text-decoration: none !important;
}

.v7-topics-panel a:hover {
  color: #105a64 !important;
  text-decoration: underline !important;
}

/* Títulos de libros recomendados: visibles, sin recuadro, con hover subrayado */
.book-card h3,
.catalog-card h3,
.recommended-card h3,
.card h3 {
  background: transparent !important;
  border: 0 !important;
  color: #243238 !important;
}

.book-card h3 a,
.catalog-card h3 a,
.recommended-card h3 a,
.card h3 a,
.book-title a,
.titulo-libro a {
  background: transparent !important;
  border: 0 !important;
  color: #176f7d !important;
  text-decoration: none !important;
  padding: 0 !important;
  display: inline !important;
}

.book-card h3 a:hover,
.catalog-card h3 a:hover,
.recommended-card h3 a:hover,
.card h3 a:hover,
.book-title a:hover,
.titulo-libro a:hover {
  color: #105a64 !important;
  text-decoration: underline !important;
  background: transparent !important;
}

/* Evita que reglas generales de botones afecten enlaces de títulos dentro de cards */
.card h3 a.btn,
.book-card h3 a.btn,
.catalog-card h3 a.btn,
.recommended-card h3 a.btn {
  background: transparent !important;
  color: #176f7d !important;
}


/* ===== Ajuste puntual fichas de libro: bloque de datos sin amarillo ===== */
.book-page .details-list {
  background: linear-gradient(135deg, #e9f9fb 0%, #f6fcfd 62%, #ffffff 100%) !important;
  border: 1px solid #c8e8ed !important;
  color: #243238 !important;
}

.book-page .details-list .detail {
  background: transparent !important;
  border-bottom-color: #c8e8ed !important;
}

.book-page .details-list .detail span {
  color: #60737a !important;
}

.book-page .details-list .detail strong {
  color: #243238 !important;
}

.book-page .notice {
  background: linear-gradient(135deg, #e9f9fb 0%, #f6fcfd 62%, #ffffff 100%) !important;
  border: 1px solid #c8e8ed !important;
  color: #60737a !important;
}

.book-page .notice .price-note {
  background: transparent !important;
  color: #60737a !important;
}


/* ===== ajuste details-list blanco ===== */
/* Contenedor global de Autor / Editorial / Peso / Páginas / ISBN */
.book-page .details-list {
  background: #ffffff !important;
  background-color: #ffffff !important;
  border: 1px solid #c8e8ed !important;
  box-shadow: none !important;
}

/* Cada fila dentro del bloque */
.book-page .details-list .detail {
  background: #ffffff !important;
  background-color: #ffffff !important;
  border-bottom: 1px solid #e4f2f4 !important;
}

/* Última fila sin borde inferior */
.book-page .details-list .detail:last-child {
  border-bottom: 0 !important;
}

/* Textos dentro del bloque */
.book-page .details-list .detail span {
  color: #60737a !important;
}

.book-page .details-list .detail strong {
  color: #243238 !important;
}

/* Mantener el kicker con su estilo, sin contaminar details-list */
.book-page .kicker {
  background-color: initial;
}


/* ===== refinado: contenedor blanco + bloques internos suaves ===== */

.book-page .details-list {
  background: #ffffff !important;
}

/* recuperar color suave SOLO en cada fila */
.book-page .details-list .detail {
  background: linear-gradient(135deg, #e9f9fb 0%, #f6fcfd 62%, #ffffff 100%) !important;
  border-radius: 6px;
  padding: 6px 10px;
  margin-bottom: 6px;
  border-bottom: none !important;
}


/* ===== ajuste fino: borde exterior datos + zona pestañas ===== */

/* Quitar/ocultar borde rectangular exterior del bloque AUTOR/EDITORIAL/etc. */
.book-page .details-list {
  border-color: #ffffff !important;
  border: 0 !important;
  box-shadow: none !important;
  background: #ffffff !important;
}

/* Mantener los bloques internos suaves */
.book-page .details-list .detail {
  background: linear-gradient(135deg, #e9f9fb 0%, #f6fcfd 62%, #ffffff 100%) !important;
}

/* Zona de pestañas Descripción / Índice: neutralizar fondos antiguos */
.book-page .tabs,
.book-page .tab-section,
.book-page .tab-container,
.book-page .book-tabs,
.book-page .tab-content,
.book-page .tab-panel,
.book-page .tab-panels {
  background: #ffffff !important;
}

/* Si el contenedor principal de pestañas tenía color heredado */
.book-page .content-card,
.book-page .book-content,
.book-page .book-body {
  background: #ffffff !important;
}


/* fix fondo tabs completo */
.tabs, .tab-panel, .tab-buttons {
  background:#ffffff !important;
}


/* fix quirúrgico bloque Temáticas principales */
.hero-side {
  background: linear-gradient(135deg,#e9f9fb 0%,#f6fcfd 62%,#ffffff 100%) !important;
  border-color: #c8e8ed !important;
  color: #243238 !important;
}

.hero-side,
.hero-side * {
  color: #243238 !important;
}

.hero-side a {
  color: #176f7d !important;
}


/* ===== ajuste menú desplegable más suave tipo botón ===== */

.dropdown {
  background: linear-gradient(135deg, #e9f9fb 0%, #f6fcfd 62%, #ffffff 100%) !important;
  border: 1px solid #c8e8ed !important;
  box-shadow: 0 8px 18px rgba(23,111,125,0.12) !important;
}

.dropdown a {
  color: #243238 !important;
  background: transparent !important;
  padding: 8px 12px;
  display: block;
}

.dropdown a:hover {
  background: #e9f9fb !important;
  color: #105a64 !important;
}


/* ===== ajuste final menú desplegable: más claro + hover más marcado ===== */

/* Contenedor del desplegable: más claro, similar al encabezado */
.main-nav .dropdown,
.dropdown {
  background: #f6fcfd !important;
  border: 1px solid #c8e8ed !important;
  box-shadow: 0 10px 24px rgba(23,111,125,0.14) !important;
}

/* Opciones normales */
.main-nav .dropdown a,
.dropdown a {
  color: #243238 !important;
  background: transparent !important;
  border-radius: 8px !important;
  margin: 3px 6px !important;
  padding: 9px 12px !important;
  transition: background-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease !important;
}

/* Hover más potente, inspirado en el botón Ver recomendados */
.main-nav .dropdown a:hover,
.dropdown a:hover {
  background: #59bdc9 !important;
  color: #ffffff !important;
  box-shadow: 0 6px 14px rgba(23,111,125,0.20) !important;
  transform: translateX(2px);
}


/* ===== ajuste fino tamaños tipografía ===== */

/* Hero principal index.htm */
.hero-copy h1,
.hero-copy .hero-title {
  font-size: 2.15rem !important;
  line-height: 1.2 !important;
}

/* Título de libros individuales */
.book-page h1,
.book-page .book-title,
.book-header h1 {
  font-size: 2rem !important;
  line-height: 1.18 !important;
}


/* ===== barra menú superior con bordes redondeados ===== */

.main-nav,
.nav-wrapper,
.nav-container,
header nav {
  border-radius: 18px !important;
  overflow: visible !important;
}


/* ===== mejoras footer contacto/info ===== */
footer a {
  display:block;
  margin:6px 0;
}


/* ===== corrección alineación footer ===== */
.footer-columns,
.footer-content {
  display:flex !important;
  gap:40px !important;
  flex-wrap:wrap !important;
  align-items:flex-start !important;
}

.footer-column {
  display:flex !important;
  flex-direction:column !important;
  min-width:220px;
}


/* ===== footer copyright ===== */
.footer-bottom {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.18);
  text-align: center;
  color: #e8f7f9;
  font-size: 0.92rem;
}


/* ===== footer más compacto y alineado ===== */

.footer-bottom {
  margin-top: 8px !important;
  padding-top: 8px !important;
  border-top: 1px solid rgba(255,255,255,0.12);
  text-align: left !important;
  color: #e8f7f9;
  font-size: 0.88rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

footer {
  padding-bottom: 0px !important;
}


/* ===== alineación exacta copyright footer ===== */

.footer-bottom {
  padding-left: 0 !important;
  margin-left: 0 !important;
  text-indent: 0 !important;
  width: 100%;
  box-sizing: border-box;
}

.footer-bottom,
.footer-bottom * {
  text-align: left !important;
}


/* ===== icono whatsapp más reconocible ===== */
a[href*="wa.me"] {
  font-weight: 500;
}


/* ===== icono real whatsapp ===== */
.wa-icon {
  width: 18px;
  height: 18px;
  vertical-align: text-bottom;
  margin-right: 7px;
  border-radius: 4px;
}


/* ===== normalizar peso enlaces footer ===== */
footer a,
.footer-column a,
a[href*="wa.me"] {
  font-weight: 400 !important;
}


/* ===== precios centralizados ===== */
[data-precio-libro] {
  font-weight: inherit;
}


/* ===== ajuste precio + portada index ===== */

/* El precio debe verse igual que el valor de ISBN/Páginas/etc. */
.book-page .details-list .detail strong [data-precio-libro],
.book-page .details-list .detail [data-precio-libro] {
  font: inherit !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  color: inherit !important;
  letter-spacing: inherit !important;
}

/* Solo recuadro que envuelve la foto de cada libro en index.htm */
body:not(.book-page) .book-card .cover-link {
  background: #e9f9fb !important;
  border-color: #c8e8ed !important;
}

body:not(.book-page) .book-card .cover-link img {
  background: #e9f9fb !important;
}


/* ===== hover recuadro portada index ===== */
body:not(.book-page) .book-card .cover-link {
  transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease !important;
}

body:not(.book-page) .book-card .cover-link:hover {
  background: #59bdc9 !important;
  border-color: #176f7d !important;
  box-shadow: 0 8px 18px rgba(23,111,125,0.20) !important;
  transform: translateY(-1px);
}


/* ===== ajuste nuevo logo GEA ===== */
.logo img,
.brand img,
.site-logo img,
img[src*="gea-2026.png"] {
  width: 86px !important;
  height: 86px !important;
  object-fit: contain !important;
}



/* ===== ajuste responsive cabecera móvil ===== */
/* Evita que el menú superior tape "Publicaciones GEA" en móviles verticales */
@media (max-width: 760px) {
  .header-inner {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 16px !important;
  }

  .logo-link {
    width: 100% !important;
    align-items: center !important;
  }

  .main-nav {
    position: relative !important;
    width: 100% !important;
    margin-top: 4px !important;
    justify-content: flex-start !important;
    flex-wrap: wrap !important;
    z-index: 1 !important;
  }

  .nav-item {
    position: relative !important;
  }

  .nav-link {
    white-space: nowrap !important;
  }
}

@media (max-width: 430px) {
  .brand-title {
    font-size: 1.35rem !important;
    line-height: 1.15 !important;
  }

  .brand-subtitle {
    font-size: 0.86rem !important;
    line-height: 1.3 !important;
  }

  .main-nav {
    gap: 8px !important;
  }
}



/* ===== fix dropdown móvil ===== */
@media (max-width: 760px) {

  .main-nav {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 10px !important;
    overflow: visible !important;
  }

  .nav-item {
    position: relative !important;
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  .dropdown {
    position: absolute !important;
    top: calc(100% + 6px) !important;
    left: 0 !important;
    min-width: 220px !important;
    z-index: 9999 !important;
  }
}



/* ===== fix z-index dropdown sobre imagen libro ===== */

/* La cabecera y navegación deben quedar por encima del contenido */
header,
.site-header,
.header-inner,
.main-nav,
.nav-item {
  position: relative !important;
  z-index: 5000 !important;
}

/* Dropdown siempre visible sobre portadas e imágenes */
.dropdown {
  position: absolute !important;
  z-index: 99999 !important;
}

/* El contenido principal queda por debajo */
.book-hero,
.book-cover,
.book-layout,
main,
section {
  z-index: 1;
}


/* ===== contenido central blanco ===== */
main,
.main-content,
.content,
.page-content,
.book-page,
.book-layout,
.books-grid-section {
    background: #ffffff !important;
}


/* ===== catálogo especializado fondo blanco ===== */
.hero,
.hero-section,
.catalogo,
.catalog-section,
.intro-section,
.featured-section,
.section-intro {
    background: #ffffff !important;
}


/* ===== igualar color menú superior con botón Ver recomendados ===== */
.top-nav a,
.dropdown-toggle,
.nav-menu > li > a {
    background: #735d18 !important;
}


/* ===== subtítulo catálogo especializado ===== */
.catalog-subtitle,
.catalogo-subtitulo,
.hero-subtitle,
.section-subtitle,
.intro-subtitle {
    font-size: 1.05rem !important;
    line-height: 1.35 !important;
    max-width: 760px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

@media (max-width: 768px) {
    .catalog-subtitle,
    .catalogo-subtitulo,
    .hero-subtitle,
    .section-subtitle,
    .intro-subtitle {
        font-size: 0.95rem !important;
        max-width: 92% !important;
    }
}


/* ===== fondo blanco temáticas principales ===== */
.tematicas-principales,
.temas-principales,
.featured-topics,
.topics-section,
.categories-section {
    background: #ffffff !important;
}


/* ===== quitar fondo sección temáticas principales ===== */
.tematicas-principales,
.temas-principales,
.featured-topics,
.topics-section,
.categories-section,
.categories-grid,
.categories-wrapper,
.category-box,
.category-list,
.section-categories,
section {
    background-color: #ffffff !important;
    background: #ffffff !important;
}


/* ===== quitar fondo completo sección temáticas ===== */
.tematicas-principales,
.temas-principales,
.featured-topics,
.topics-section,
.categories-section,
.categories-grid,
.categories-wrapper,
.category-box,
.category-list,
.section-categories,
.home-categories,
.home-topics,
.main-categories,
.container-categories,
.section-topics,
.topic-area {
    background: #ffffff !important;
    background-color: #ffffff !important;
}

/* ===== subtítulo catálogo especializado ===== */
.catalog-subtitle,
.catalogo-subtitulo,
.hero-subtitle,
.section-subtitle,
.intro-subtitle,
.hero p,
.hero-text p,
.catalog-text p {
    font-size: 0.92rem !important;
    line-height: 1.25 !important;
    max-width: 980px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-wrap: balance !important;
}

@media (max-width: 768px) {

    .catalog-subtitle,
    .catalogo-subtitulo,
    .hero-subtitle,
    .section-subtitle,
    .intro-subtitle,
    .hero p,
    .hero-text p,
    .catalog-text p {
        font-size: 0.86rem !important;
        max-width: 94% !important;
    }
}
.content-page {
    max-width: 900px;
    margin: 0 auto;
}

.content-page p {
    font-size: 1.08rem;
    line-height: 1.95;
    color: #555;
    margin-bottom: 28px;
}
.pagination {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 14px !important;
    margin-top: 42px !important;
    margin-bottom: 10px !important;
}

.pagination a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 42px !important;
    height: 42px !important;
    padding: 0 14px !important;
    border-radius: 999px !important;
    border: 1px solid var(--line) !important;
    background: #fff !important;
    color: #4b3f32 !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    font-size: 1.05rem !important;
}

.pagination a:hover {
    background: #fff7d0 !important;
}

.pagination a.active {
    background: #fff7d0 !important;
    border-color: #d8c77a !important;
}
.pagination-info {
text-align:center;
margin-top:40px;
}
.book-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
}

.book-navigation a {
    text-decoration: none;
    font-weight: 600;
}

.book-navigation a:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {

    .book-navigation {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

}

/* ===== formulario de contacto ===== */

.contact-form {
    max-width: 760px;
    margin: 0 auto;
}

.contact-form .form-group {
    margin-bottom: 18px;
}

.contact-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
    color: #243238;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid #c8e8ed;
    border-radius: 12px;
    padding: 11px 13px;
    font-family: inherit;
    font-size: 1rem;
    color: #243238;
    background: #ffffff;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #59bdc9;
    box-shadow: 0 0 0 3px rgba(89, 189, 201, 0.18);
}

.contact-form textarea {
    min-height: 260px;
    resize: vertical;
}

.contact-form .btn {
    margin-top: 8px;
}
.contact-form select {
    height: 48px;
}