:root{
  --brand:#8f1838;
  --brand-dark:#5f1025;
  --gold:#c69a3b;
  --gold-soft:#f4e8c8;
  --ink:#19171b;
  --muted:#655d58;
  --bg:#f3efe9;
  --panel:#fffaf3;
  --card:#ffffff;
  --line:rgba(25,23,27,.12);
  --ok:#067647;
  --danger:#b42318;
  --warn:#9a5b00;
  --shadow:0 22px 58px rgba(25,23,27,.09);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:Inter,Arial,Helvetica,sans-serif;background:var(--bg);color:var(--ink);line-height:1.55;font-size:15px}
a{color:inherit;text-decoration:none}a:hover{color:var(--brand)}
img{max-width:100%;display:block}.container{width:min(1160px,calc(100% - 48px));margin:0 auto}
/* Header plataforma libros */
.libro-site-header{position:sticky;top:0;z-index:60;background:rgba(243,239,233,.96);border-bottom:1px solid var(--line);backdrop-filter:blur(16px)}
.libro-header-inner{width:min(1180px,calc(100% - 48px));margin:0 auto;min-height:82px;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:22px}
.libro-brand{display:flex;align-items:center;gap:14px;min-width:220px}.libro-brand img{width:178px;height:auto;max-height:48px;object-fit:contain}.libro-brand span{font-size:11px;letter-spacing:.16em;text-transform:uppercase;color:var(--muted);white-space:nowrap}.libro-main-nav{display:flex;justify-content:center;align-items:center;gap:22px;font-size:14px;font-weight:800}.libro-main-nav a{white-space:nowrap;color:rgba(25,23,27,.84)}.libro-main-nav a.is-active{color:var(--brand)}.libro-header-cta{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;background:linear-gradient(180deg,#b94d42 0%,var(--brand) 100%);color:#fff!important;padding:13px 20px;font-weight:900;box-shadow:0 14px 28px rgba(143,24,56,.2);white-space:nowrap}
/* Legacy header/admin compatibility */
.header{background:rgba(243,239,233,.96);border-bottom:1px solid var(--line)}.header .container{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 0}.brand{font-weight:950;letter-spacing:.08em;text-transform:uppercase;font-size:20px;color:var(--brand)}.tagline{font-size:12px;color:var(--muted);letter-spacing:.16em;text-transform:uppercase}.nav a{display:inline-flex;margin-left:18px;font-weight:800}.adminbar{background:var(--brand-dark);color:#fff;padding:10px 18px}.adminbar a{color:#fff;margin-right:16px;font-weight:800}
/* Typography */
h1{font-size:clamp(34px,4.8vw,58px);line-height:1.02;margin:0 0 18px;color:var(--brand);letter-spacing:-.045em}h2{font-size:clamp(24px,3vw,34px);margin:0 0 10px;color:var(--brand);letter-spacing:-.03em}h3{font-size:20px;line-height:1.18;margin:0 0 10px;color:var(--ink)}p{margin:0 0 14px}.lead{font-size:clamp(18px,2vw,22px);color:#3f342f;max-width:760px}.muted{color:var(--muted)}.small{font-size:13px}.eyebrow{display:inline-flex;border-left:5px solid var(--gold);padding:4px 0 4px 12px;text-transform:uppercase;letter-spacing:.14em;color:var(--brand);font-weight:950;font-size:12px;margin-bottom:16px}
/* Buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:12px;background:var(--brand);color:#fff!important;padding:13px 18px;font-weight:950;cursor:pointer;text-align:center;min-height:46px}.btn:hover{background:var(--brand-dark);color:#fff!important}.btn.gold{background:var(--gold);color:#1f1609!important}.btn.gold:hover{background:#b5892f;color:#1f1609!important}.btn.outline{background:#fff;color:var(--brand)!important;border:1px solid rgba(143,24,56,.35)}.btn.outline:hover{background:var(--panel)}.btn.full{width:100%}
/* Cards, forms, tables */
.card{background:var(--card);border:1px solid var(--line);border-radius:18px;padding:24px;box-shadow:var(--shadow)}.feature{padding:22px;border:1px solid var(--line);background:#fff;border-radius:18px;box-shadow:0 12px 32px rgba(25,23,27,.05)}.feature strong{color:var(--brand)}.section{padding:48px 0}.grid-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}.grid-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.grid-4{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.form-row{margin-bottom:14px}label{display:block;font-weight:850;margin-bottom:6px}input,select,textarea{width:100%;border:1px solid #d8cfc5;border-radius:10px;padding:12px;font-size:15px;background:#fff;color:var(--ink)}textarea{min-height:110px}.hint{font-size:13px;color:var(--muted);margin-top:5px}.notice{border-radius:13px;padding:14px 16px;margin:14px 0;border:1px solid var(--line);background:#fff}.notice.ok{border-color:#abefc6;background:#ecfdf3;color:var(--ok)}.notice.err{border-color:#fecdca;background:#fef3f2;color:var(--danger)}.notice.warn{border-color:#f6d58c;background:#fff7e5;color:var(--warn)}.table{width:100%;border-collapse:collapse;background:#fff}.table th,.table td{padding:11px;border-bottom:1px solid var(--line);text-align:left;font-size:14px;vertical-align:top}.table th{background:var(--panel);color:var(--brand);font-weight:950}.pill{display:inline-block;border-radius:999px;padding:4px 9px;font-size:12px;font-weight:950}.pill.paid{background:#ecfdf3;color:#067647}.pill.pending{background:#fffaeb;color:#b54708}.pill.failed,.pill.cancelled{background:#fef3f2;color:#b42318}.pill.expired{background:#f2f4f7;color:#475467}
/* Catalog */
.catalog-hero-pro{padding:78px 0 54px;background:linear-gradient(180deg,#fffaf3 0%,var(--bg) 100%);border-bottom:1px solid var(--line)}.catalog-hero-layout{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:36px;align-items:center}.catalog-summary-pro{background:#fff;border:1px solid var(--line);border-radius:22px;padding:26px;box-shadow:var(--shadow)}.catalog-summary-pro strong{display:block;font-size:62px;line-height:1;color:var(--brand);letter-spacing:-.06em}.catalog-summary-pro span{display:block;font-weight:950;margin:8px 0}.hero-badges{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}.hero-badges span,.badge{display:inline-flex;border:1px solid var(--gold-soft);background:#fff7e8;color:var(--brand-dark);border-radius:999px;padding:7px 11px;font-size:12px;font-weight:900}.catalog-section{padding-top:46px}.section-title-row{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:22px}.catalog-grid-pro{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:26px}.book-card-pro{display:grid;grid-template-columns:142px minmax(0,1fr);gap:22px;align-items:start;background:#fff;border:1px solid var(--line);border-radius:24px;padding:22px;box-shadow:var(--shadow)}.book-cover-pro{display:block;width:142px;max-width:142px}.book-cover-pro img{width:142px;height:204px;object-fit:cover;border-radius:14px;border:1px solid rgba(25,23,27,.1);box-shadow:0 14px 26px rgba(25,23,27,.14);background:#fff}.book-kicker{display:inline-flex;text-transform:uppercase;letter-spacing:.13em;color:var(--brand);font-weight:950;font-size:11px;margin-bottom:8px}.book-subtitle{font-weight:800;color:var(--muted)}.book-price-pro{font-size:28px;line-height:1;font-weight:950;color:var(--brand);margin:18px 0}.book-actions-pro{display:flex;gap:10px;flex-wrap:wrap}
/* Product detail */
.product-hero-pro{padding:66px 0;background:linear-gradient(180deg,#fffaf3 0%,var(--bg) 100%);border-bottom:1px solid var(--line)}.product-hero-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:48px;align-items:start}.product-copy-pro{min-width:0}.cover-frame-pro,.cover-image{background:linear-gradient(180deg,#fff,#fbfaf7);border-radius:26px;padding:12px;border:1px solid rgba(143,24,56,.16);box-shadow:var(--shadow);width:100%;max-width:280px;margin:0 auto}.cover-frame-pro img,.cover-image img{width:100%;aspect-ratio:2/3;height:auto;object-fit:cover;border-radius:18px;background:#fff}.price-panel{border:1px solid var(--gold-soft);background:#fff8ed;border-radius:18px;padding:20px;margin:22px 0;max-width:680px}.price-main{font-size:42px;line-height:1;font-weight:950;color:var(--brand);letter-spacing:-.03em}.price-sub{font-size:16px;color:var(--ink);margin-top:8px}.price-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:16px}.price-meta div{border:1px solid var(--line);background:#fff;border-radius:13px;padding:12px}.price-meta strong{display:block;color:var(--brand);font-size:11px;text-transform:uppercase;letter-spacing:.08em}.price-meta span{font-size:14px;color:var(--ink)}.note-line{border-top:1px solid var(--line);padding-top:12px;margin-top:14px}.product-actions-pro{display:flex;gap:12px;flex-wrap:wrap}.price{font-size:34px;font-weight:950;color:var(--brand)}
/* Footer */
.libro-site-footer{margin-top:40px;border-top:1px solid var(--line);background:#fff;padding:34px 0;color:var(--muted)}.libro-footer-inner{width:min(1160px,calc(100% - 48px));margin:0 auto;display:grid;grid-template-columns:1.1fr 1.4fr .8fr;gap:28px;align-items:start}.libro-footer-inner strong{color:var(--ink)}.libro-footer-inner p{margin-top:6px}.libro-footer-inner nav{display:flex;gap:16px;flex-wrap:wrap}.libro-footer-inner nav a,.libro-footer-inner a{font-weight:800;color:var(--brand)}
/* Responsive */
@media(max-width:1050px){.libro-header-inner{grid-template-columns:1fr;gap:12px;padding:14px 0}.libro-brand{justify-content:center}.libro-main-nav{flex-wrap:wrap;gap:14px}.libro-header-cta{justify-self:center}.catalog-hero-layout,.product-hero-layout{grid-template-columns:1fr}.catalog-summary-pro{max-width:320px}.cover-frame-pro{max-width:240px}.grid-3,.grid-4,.grid-2{grid-template-columns:1fr}}
@media(max-width:700px){.container,.libro-header-inner,.libro-footer-inner{width:min(100% - 28px,1160px)}h1{font-size:34px}.libro-brand{min-width:0}.libro-brand img{width:150px}.libro-brand span{display:none}.libro-main-nav{font-size:13px}.catalog-hero-pro,.product-hero-pro{padding:42px 0}.book-card-pro{grid-template-columns:1fr}.book-cover-pro{width:128px;max-width:128px}.book-cover-pro img{width:128px;height:184px}.price-meta{grid-template-columns:1fr}.libro-footer-inner{grid-template-columns:1fr}.cover-frame-pro,.cover-image{max-width:210px}.card{padding:20px}}

/* =========================================================
   REPARACIÓN CORPORATIVA CATÁLOGO DIGITAL — v4
   Header, catálogo, imágenes y footer compactos.
   ========================================================= */
body{font-family:Inter,Arial,Helvetica,sans-serif!important;background:#f3efe9!important;color:#19171b!important;font-size:15px!important;line-height:1.55!important;}
.container{width:min(1120px,calc(100% - 48px))!important;margin:0 auto!important;}
.libro-site-header{position:sticky!important;top:0!important;z-index:70!important;background:rgba(243,239,233,.98)!important;border-bottom:1px solid rgba(25,23,27,.12)!important;backdrop-filter:blur(16px)!important;}
.libro-header-inner{width:min(1120px,calc(100% - 48px))!important;margin:0 auto!important;min-height:76px!important;display:grid!important;grid-template-columns:190px 1fr auto!important;align-items:center!important;gap:20px!important;}
.libro-brand{display:flex!important;align-items:center!important;gap:12px!important;min-width:0!important;}
.libro-brand img{width:160px!important;height:auto!important;max-height:42px!important;object-fit:contain!important;background:#fff!important;border-radius:6px!important;padding:5px 8px!important;}
.libro-brand span{font-size:10px!important;letter-spacing:.13em!important;text-transform:uppercase!important;color:#655d58!important;white-space:nowrap!important;}
.libro-main-nav{display:flex!important;justify-content:center!important;align-items:center!important;gap:18px!important;font-size:13px!important;line-height:1.1!important;font-weight:800!important;}
.libro-main-nav a{display:inline-flex!important;white-space:nowrap!important;color:rgba(25,23,27,.84)!important;text-decoration:none!important;}
.libro-main-nav a:hover,.libro-main-nav a.is-active{color:#8f1838!important;}
.libro-header-cta{display:inline-flex!important;align-items:center!important;justify-content:center!important;border-radius:999px!important;background:linear-gradient(180deg,#b94d42 0%,#8f1838 100%)!important;color:#fff!important;padding:12px 18px!important;font-size:13px!important;font-weight:900!important;box-shadow:0 12px 24px rgba(143,24,56,.18)!important;white-space:nowrap!important;text-decoration:none!important;}
h1{font-size:clamp(32px,4vw,52px)!important;line-height:1.04!important;margin:0 0 16px!important;color:#8f1838!important;letter-spacing:-.04em!important;}
h2{font-size:clamp(22px,2.4vw,30px)!important;margin:0 0 10px!important;color:#8f1838!important;}
h3{font-size:18px!important;line-height:1.2!important;margin:0 0 8px!important;}
.catalog-hero-pro{padding:62px 0 42px!important;background:linear-gradient(180deg,#fffaf3 0%,#f3efe9 100%)!important;border-bottom:1px solid rgba(25,23,27,.10)!important;}
.catalog-grid-pro{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(330px,1fr))!important;gap:24px!important;}
.book-card-pro{display:grid!important;grid-template-columns:128px minmax(0,1fr)!important;gap:20px!important;align-items:start!important;background:#fff!important;border:1px solid rgba(25,23,27,.10)!important;border-radius:22px!important;padding:20px!important;box-shadow:0 18px 42px rgba(25,23,27,.08)!important;}
.book-cover-pro{display:block!important;width:128px!important;max-width:128px!important;}
.book-cover-pro img{width:128px!important;height:184px!important;object-fit:cover!important;border-radius:13px!important;border:1px solid rgba(25,23,27,.12)!important;box-shadow:0 12px 24px rgba(25,23,27,.14)!important;background:#fff!important;}
.product-hero-layout{display:grid!important;grid-template-columns:minmax(0,1fr) 260px!important;gap:42px!important;align-items:start!important;}
.cover-frame-pro,.cover-image{max-width:246px!important;width:100%!important;margin:0 auto!important;border-radius:24px!important;padding:10px!important;background:linear-gradient(180deg,#fff,#fbfaf7)!important;border:1px solid rgba(143,24,56,.16)!important;box-shadow:0 18px 42px rgba(25,23,27,.10)!important;}
.cover-frame-pro img,.cover-image img{width:100%!important;max-height:370px!important;aspect-ratio:2/3!important;object-fit:cover!important;border-radius:16px!important;background:#fff!important;}
.price-panel{max-width:640px!important;}
.price-main{font-size:38px!important;}
/* Footer igualado al sitio corporativo */
.site-footer{background:#1d1b20!important;color:#d8d2cc!important;margin-top:44px!important;padding:30px 0 0!important;border-top:1px solid rgba(201,161,74,.35)!important;font-size:13px!important;line-height:1.45!important;}
.site-footer .footer-grid{width:min(1120px,calc(100% - 48px))!important;margin:0 auto!important;display:grid!important;grid-template-columns:1.25fr .9fr .9fr 1.15fr!important;gap:34px!important;align-items:start!important;padding:0 0 24px!important;}
.site-footer .footer-logo{width:auto!important;height:32px!important;max-width:160px!important;object-fit:contain!important;margin:0 0 12px!important;background:#fff!important;border-radius:8px!important;padding:6px 10px!important;}
.site-footer h4{color:#fff!important;font-size:12px!important;line-height:1.15!important;letter-spacing:.10em!important;text-transform:uppercase!important;margin:0 0 12px!important;font-weight:800!important;}
.site-footer a,.site-footer p,.site-footer address{display:block!important;color:#d8d2cc!important;font-size:13px!important;line-height:1.45!important;margin:0 0 8px!important;font-weight:500!important;text-decoration:none!important;opacity:.94!important;}
.site-footer a:hover{color:#c9a14a!important;opacity:1!important;}
.site-footer address{font-style:italic!important;color:#ece7df!important;}
.footer-legal-bar{width:100%!important;border-top:1px solid rgba(255,255,255,.10)!important;padding:11px max(24px,calc((100% - 1120px)/2))!important;display:flex!important;justify-content:space-between!important;align-items:center!important;gap:18px!important;color:#d8d2cc!important;font-size:12px!important;line-height:1.35!important;}
.footer-legal-links{display:flex!important;align-items:center!important;gap:16px!important;flex-wrap:wrap!important;}
.footer-legal-links a,.footer-cookie-btn{color:#d8d2cc!important;font-size:12px!important;line-height:1.35!important;margin:0!important;background:transparent!important;border:0!important;padding:0!important;cursor:pointer!important;font-family:inherit!important;font-weight:500!important;}
@media(max-width:1050px){.libro-header-inner{grid-template-columns:1fr!important;gap:12px!important;padding:14px 0!important}.libro-brand{justify-content:center!important}.libro-main-nav{flex-wrap:wrap!important;gap:14px!important}.libro-header-cta{justify-self:center!important}.product-hero-layout,.catalog-hero-layout{grid-template-columns:1fr!important}.cover-frame-pro,.cover-image{max-width:220px!important}.grid-3,.grid-4,.grid-2{grid-template-columns:1fr!important}.site-footer .footer-grid{grid-template-columns:1fr 1fr!important;gap:24px!important}}
@media(max-width:700px){.container,.libro-header-inner{width:min(100% - 28px,1120px)!important}.libro-brand img{width:148px!important}.libro-brand span{display:none!important}.libro-main-nav{font-size:12.5px!important;gap:10px!important}.catalog-hero-pro,.product-hero-pro{padding:40px 0!important}.book-card-pro{grid-template-columns:1fr!important}.book-cover-pro{width:112px!important;max-width:112px!important}.book-cover-pro img{width:112px!important;height:162px!important}.cover-frame-pro,.cover-image{max-width:200px!important}.site-footer .footer-grid{grid-template-columns:1fr!important;width:min(100% - 32px,1120px)!important}.footer-legal-bar{flex-direction:column!important;align-items:flex-start!important;padding:12px 16px 90px!important}}
