/*
Theme Name: Librería Portolatino
Theme URI: https://portolatino.org.pe/
Author: J. Boris Mendoza Portolatino
Description: Tema editorial para Librería Portolatino, compatible con WooCommerce.
Version: 1.0.0
Text Domain: portolatino
*/

:root{
  --navy:#0f2747;
  --navy2:#173a66;
  --gold:#d7a64a;
  --cream:#f7f2e8;
  --paper:#ffffff;
  --ink:#1c2430;
  --muted:#6b7280;
  --line:#e7e9ee;
  --soft:#f7f8fb;
  --shadow:0 18px 50px rgba(15,39,71,.10);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:Arial,Helvetica,sans-serif;color:var(--ink);background:#fff}
a{text-decoration:none;color:inherit}
img{max-width:100%;height:auto}
.container{width:min(1160px,92%);margin:auto}
.site-header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.96);backdrop-filter:blur(10px);border-bottom:1px solid var(--line)}
.nav{min-height:76px;display:flex;align-items:center;justify-content:space-between;gap:28px}
.brand{display:flex;align-items:center;gap:12px}
.brand-mark{width:44px;height:44px;border-radius:13px;background:linear-gradient(145deg,var(--navy),var(--navy2));display:grid;place-items:center;color:#fff;font-weight:800}
.brand strong{display:block;font-family:Georgia,serif;font-size:20px}
.brand span{display:block;font-size:12px;color:var(--muted);margin-top:2px}
.primary-menu{display:flex;gap:24px;align-items:center;list-style:none;margin:0;padding:0}
.primary-menu a{font-size:14px;font-weight:700}
.primary-menu a:hover{color:var(--gold)}
.header-actions{display:flex;align-items:center;gap:10px}
.cart-link{border:1px solid var(--line);padding:10px 13px;border-radius:12px;font-weight:700;background:#fff}
.hero{background:radial-gradient(circle at 80% 10%,#efe3c8 0,transparent 28%),linear-gradient(160deg,#fbfaf7 0%,#f5f7fb 100%);padding:76px 0}
.hero-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:56px;align-items:center}
.eyebrow{display:inline-block;font-size:12px;letter-spacing:.16em;font-weight:800;color:var(--gold);margin-bottom:12px}
.hero h1,.section-title{font-family:Georgia,serif;color:var(--navy);margin:0}
.hero h1{font-size:clamp(42px,6vw,72px);line-height:1.02}
.hero h1 .accent{color:var(--gold)}
.hero p{font-size:18px;line-height:1.7;color:var(--muted);max-width:720px}
.actions{display:flex;gap:12px;flex-wrap:wrap;margin:28px 0}
.btn{display:inline-flex;align-items:center;justify-content:center;border-radius:12px;padding:14px 20px;font-weight:800;border:1px solid transparent}
.btn-primary{background:var(--navy);color:#fff}
.btn-ghost{border-color:#cfd5df;background:#fff;color:var(--navy)}
.trust-row{display:flex;gap:22px;flex-wrap:wrap;color:var(--navy);font-size:14px;font-weight:700}
.hero-showcase{background:#fff;border-radius:28px;padding:26px;box-shadow:var(--shadow);border:1px solid rgba(15,39,71,.07)}
.hero-showcase .cover-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:20px 0}
.hero-book{aspect-ratio:3/4;border-radius:8px;display:flex;align-items:end;padding:16px;color:white;font-family:Georgia,serif;font-weight:700;box-shadow:0 12px 28px rgba(0,0,0,.18)}
.hero-book:nth-child(1){background:linear-gradient(145deg,#11284a,#071423)}
.hero-book:nth-child(2){background:linear-gradient(145deg,#7c2d40,#37111a)}
.hero-book:nth-child(3){background:linear-gradient(145deg,#357562,#14352c)}
.section{padding:76px 0}
.section.soft{background:var(--soft)}
.section-head{display:flex;align-items:end;justify-content:space-between;gap:40px;margin-bottom:30px}
.section-title{font-size:42px}
.section-head p{max-width:560px;color:var(--muted);line-height:1.6}
.category-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.category-card{padding:22px;border-radius:18px;border:1px solid var(--line);background:#fff;transition:.2s}
.category-card:hover{transform:translateY(-3px);box-shadow:var(--shadow)}
.category-card h3{margin:0 0 8px;color:var(--navy)}
.category-card p{margin:0;color:var(--muted);font-size:14px}
.products-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:24px}
.product-card{background:#fff;border-radius:20px;overflow:hidden;border:1px solid var(--line)}
.product-card .thumb{aspect-ratio:3/4;background:#eef1f5;overflow:hidden}
.product-card .thumb img{width:100%;height:100%;object-fit:cover}
.product-card .body{padding:18px}
.product-card .body h3{margin:8px 0;color:var(--navy);font-size:18px}
.product-card .price{font-weight:800;font-size:22px;color:var(--navy);margin:12px 0}
.product-card .woocommerce-Price-amount{font-weight:800}
.author-section{background:linear-gradient(135deg,#0f2747,#173a66);color:white}
.author-grid{display:grid;grid-template-columns:.7fr 1.3fr;gap:70px;align-items:center}
.author-photo-wrap{text-align:center}
.author-photo{width:320px;height:320px;border-radius:50%;object-fit:cover;border:10px solid rgba(255,255,255,.1);background:#eaeef4}
.author-placeholder{width:320px;height:320px;border-radius:50%;margin:auto;display:grid;place-items:center;background:linear-gradient(145deg,#d9c9a5,#f6efe2);color:var(--navy);font-weight:800;font-size:36px;border:10px solid rgba(255,255,255,.1)}
.author-copy h2{color:white}
.author-copy p{font-size:17px;line-height:1.75;color:#d7dfeb}
.faq{display:grid;grid-template-columns:1fr 1fr;gap:16px}
details{background:white;border:1px solid var(--line);border-radius:14px;padding:18px}
summary{font-weight:800;color:var(--navy);cursor:pointer}
details p{color:var(--muted);line-height:1.6}
.site-footer{background:#09182b;color:white;padding:44px 0 18px}
.footer-grid{display:grid;grid-template-columns:1.5fr 1fr 1fr;gap:40px}
.site-footer p,.site-footer a{color:#aeb8c8;line-height:1.8}
.copyright{text-align:center;border-top:1px solid rgba(255,255,255,.08);padding-top:18px;margin-top:30px;color:#9aa5b5;font-size:13px}
.woocommerce ul.products li.product, .woocommerce-page ul.products li.product{border:1px solid var(--line);border-radius:18px;padding:14px;background:#fff}
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button{background:var(--navy)!important;color:#fff!important;border-radius:10px!important}
.woocommerce div.product p.price, .woocommerce div.product span.price{color:var(--navy)!important;font-weight:800}
@media(max-width:950px){
  .primary-menu{display:none}
  .hero-grid,.author-grid{grid-template-columns:1fr}
  .products-grid,.category-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:620px){
  .hero{padding:52px 0}
  .hero h1{font-size:44px}
  .section{padding:54px 0}
  .section-title{font-size:34px}
  .section-head{flex-direction:column;align-items:flex-start}
  .products-grid,.category-grid,.faq,.footer-grid{grid-template-columns:1fr}
  .author-photo,.author-placeholder{width:250px;height:250px}
}
