@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600&display=swap');
/* ===================== TOKENS ===================== */
:root {
  /* Paleta de marca — Editorial Tanto Monta */
  --oxblood: #e4002b;        /* rojo Tanto Monta */
  --oxblood-deep: #b3001f;   /* rojo profundo para hover */
  --gold: #a8894f;           /* acento bronce sobrio */
  --gold-soft: #c0a369;
  --cream: #f7f3e8;          /* crema principal del manual */
  --cream-deep: #f0e9d8;
  --beige: #ede4dd;
  --slate: #29343d;          /* neutro oscuro alternativo del manual */
  --ink: #2b2723;            /* negro cálido 90% */
  --ink-soft: #6b615a;
  --paper: #fffdf8;
  --line: #e4dbca;
  --radius: 4px;
  --display-caps: "Cinzel", Georgia, serif;
  --serif-display: "Cormorant Garamond", Georgia, serif;
  --serif-body: "EB Garamond", Georgia, serif;
  --maxw: 1160px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: var(--serif-body);
  color: var(--ink);
  background: var(--paper);
  font-size: 19px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.container.narrow { max-width: 780px; }
.center { text-align: center; }

/* ===================== TYPOGRAPHY HELPERS ===================== */
.eyebrow {
  font-family: var(--display-caps);
  text-transform: uppercase;
  letter-spacing: .24em;
  font-size: .72rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 1rem;
}
.eyebrow.light { color: var(--gold-soft); }
.section-title {
  font-family: var(--serif-display);
  font-weight: 600;
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  line-height: 1.1;
  letter-spacing: -.01em;
  color: var(--oxblood-deep);
  margin-bottom: 1.2rem;
}
.section-title.light { color: var(--cream); }
.lede { font-size: 1.18rem; color: var(--ink-soft); }
.lede.light { color: rgba(247,242,233,.85); }
.lede.sub { max-width: 620px; margin: 0 auto; }

/* ===================== HEADER ===================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand-mark {
  width: 44px; height: 44px; flex: none;
  display: grid; place-items: center;
  background: var(--oxblood); color: var(--cream);
  font-family: var(--display-caps); font-weight: 700; font-size: 1rem;
  letter-spacing: .01em; border-radius: 2px;
}
.brand-logo { width: 46px; height: 46px; flex: none; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: .64rem; text-transform: uppercase; letter-spacing: .28em; color: var(--ink-soft); font-weight: 600; }
.brand-text em { font-family: var(--display-caps); font-style: normal; font-size: 1.02rem; font-weight: 600; letter-spacing: .04em; color: var(--oxblood-deep); text-transform: uppercase; }
.main-nav { display: flex; gap: 26px; }
.main-nav a { font-size: .96rem; color: var(--ink-soft); position: relative; padding: 4px 0; transition: color .2s; }
.main-nav a:hover { color: var(--oxblood); }
.main-nav a::after { content:""; position:absolute; left:0; bottom:0; width:0; height:1.5px; background: var(--gold); transition: width .25s; }
.main-nav a:hover::after { width:100%; }

.cart-btn { position: relative; background: none; border: none; cursor: pointer; color: var(--ink); padding: 6px; }
.cart-count {
  position: absolute; top: -4px; right: -6px;
  background: var(--oxblood); color: #fff; font-family: var(--serif-body);
  font-size: .68rem; min-width: 18px; height: 18px; border-radius: 9px;
  display: grid; place-items: center; padding: 0 4px;
}
.menu-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--oxblood); }

/* ===================== HERO ===================== */
.hero {
  position: relative;
  min-height: 82vh;
  display: flex; align-items: center;
  background:
    radial-gradient(120% 90% at 70% 10%, rgba(90,26,31,.55), transparent 60%),
    linear-gradient(180deg, var(--oxblood-deep), var(--oxblood));
  color: var(--cream);
  overflow: hidden;
}
.hero::before {
  content:""; position:absolute; inset:0;
  background-image: radial-gradient(rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 22px 22px; opacity:.6;
}
.hero-content { position: relative; padding: 90px 28px; max-width: 900px; }
.hero-eyebrow { font-family: var(--display-caps); text-transform: uppercase; letter-spacing: .3em; font-size: .78rem; color: var(--gold-soft); margin-bottom: 1.4rem; }
.hero-title {
  font-family: var(--serif-display); font-weight: 600;
  font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.04;
  letter-spacing: -.015em; margin-bottom: 1.6rem;
}
.hero-lead { font-size: 1.3rem; max-width: 620px; color: rgba(247,242,233,.88); margin-bottom: 2.2rem; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-block; font-family: var(--display-caps);
  font-size: .74rem; text-transform: uppercase; letter-spacing: .18em; font-weight: 600;
  padding: 15px 30px; border-radius: 2px;
  cursor: pointer; border: 1px solid transparent; transition: all .25s ease; line-height: 1;
}
.btn + .btn { margin-left: 12px; }
/* Primario para fondos claros: rojo de marca, texto crema */
.btn-primary { background: var(--oxblood); color: var(--cream); border-color: var(--oxblood); }
.btn-primary:hover { background: var(--oxblood-deep); border-color: var(--oxblood-deep); }
/* Crema para fondos oscuros/rojos (hero) */
.btn-cream { background: var(--cream); color: var(--oxblood-deep); border-color: var(--cream); }
.btn-cream:hover { background: #fff; border-color: #fff; }
/* Contorno claro (secundario sobre rojo/oscuro) */
.btn-ghost, .btn-outline-light { background: transparent; color: var(--cream); border-color: rgba(247,242,233,.5); }
.btn-ghost:hover, .btn-outline-light:hover { border-color: var(--cream); background: rgba(255,255,255,.08); }
.btn.full { width: 100%; text-align: center; }

/* ===================== SECTIONS ===================== */
.section { padding: 96px 0; }
#catalogo.section, #preparacion.section { padding: 44px 0; }
#catalogo .section-title, #preparacion .section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 0; }
#catalogo .shop-grid, #preparacion .shop-grid { margin-top: 1.6rem; }
.section-alt { background: var(--cream); }
.eyebrow, .section-title, .lede { }
#fundacion .center { margin-bottom: 3rem; }

.pillars { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; margin-top: 1rem; }
.pillar { padding: 32px 28px; background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: var(--radius); }
.pillar h3 { font-family: var(--serif-display); font-size: 1.7rem; color: var(--oxblood); margin-bottom: .5rem; font-weight: 600; }
.pillar p { color: var(--ink-soft); font-size: 1.02rem; }

/* ===================== LINES ===================== */
.lines-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 26px; margin-top: 3rem; }
.line-card { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 40px 34px 34px; transition: transform .2s, box-shadow .2s; overflow: hidden; }
.line-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -24px rgba(67,20,26,.5); }
.line-index { font-family: var(--serif-display); font-size: 3.4rem; color: var(--cream-deep); position: absolute; top: 14px; right: 24px; line-height: 1; }
.line-card h3 { font-family: var(--serif-display); font-size: 1.9rem; color: var(--oxblood-deep); font-weight: 600; margin-bottom: .3rem; }
.line-kicker { text-transform: uppercase; letter-spacing: .12em; font-size: .74rem; color: var(--gold); margin-bottom: 1rem; }
.line-card p { color: var(--ink-soft); }
.line-link { display: inline-block; margin-top: 1.2rem; color: var(--oxblood); font-weight: 600; border-bottom: 1.5px solid var(--gold); padding-bottom: 2px; }
.line-link:hover { color: var(--gold); }

/* ===================== TIMELINE ===================== */
.timeline { margin-top: 3.4rem; max-width: 760px; }
.tl-item { display: grid; grid-template-columns: 120px 1fr; gap: 28px; padding: 0 0 40px; position: relative; }
.tl-item::before { content:""; position:absolute; left: 120px; top: 8px; bottom: -8px; width: 2px; background: var(--line); }
.tl-item:last-child::before { display: none; }
.tl-year { font-family: var(--serif-display); font-size: 2rem; color: var(--gold); text-align: right; font-weight: 600; position: relative; }
.tl-year::after { content:""; position:absolute; right: -35px; top: 12px; width: 12px; height: 12px; background: var(--oxblood); border-radius: 50%; border: 3px solid var(--paper); }
.tl-body h3 { font-family: var(--serif-display); font-size: 1.5rem; color: var(--oxblood-deep); font-weight: 600; margin-bottom: .3rem; }
.tl-body p { color: var(--ink-soft); }

/* ===================== PRODUCTS ===================== */
.products-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 32px; margin-top: 3rem; max-width: 920px; margin-left: auto; margin-right: auto; }
.product { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.product:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -24px rgba(67,20,26,.5); }
.product-cover { aspect-ratio: 3/4; background: linear-gradient(160deg, var(--oxblood), var(--oxblood-deep)); position: relative; display: grid; place-items: center; padding: 22px; }
.product-cover.has-img { padding: 0; background: var(--cream-deep); }
.product-cover img { width: 100%; height: 100%; object-fit: contain; }
.product-cover .cover-fallback { font-family: var(--serif-display); color: var(--cream); font-size: 1.25rem; text-align: center; line-height: 1.2; }
.product-body { padding: 24px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-title { font-family: var(--serif-display); font-size: 1.55rem; color: var(--oxblood-deep); font-weight: 600; line-height: 1.12; }
.product-subtitle { font-family: var(--serif-display); font-size: 1.05rem; color: var(--ink-soft); font-style: italic; }
.product-author { font-size: .9rem; color: var(--gold); text-transform: uppercase; letter-spacing: .08em; margin-top: 2px; }
.product-desc { font-size: .98rem; color: var(--ink-soft); margin-top: 8px; }
.product-price { font-family: var(--serif-display); font-size: 1.4rem; color: var(--ink); margin-top: auto; padding-top: 14px; }
.product .btn { margin-top: 10px; padding: 11px; font-size: .95rem; }
.tag { display:inline-block; font-size:.64rem; text-transform:uppercase; letter-spacing:.12em; background: var(--oxblood); color:var(--cream); padding:4px 9px; border-radius:2px; position:absolute; top:12px; left:12px; z-index:2; }
.ci-cover { background-size: cover; background-position: center; }

/* ===================== COLABORA ===================== */
.colabora { background: linear-gradient(160deg, var(--oxblood), var(--oxblood-deep)); }
.colabora .center { margin-bottom: 3rem; }
.collab-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; }
.collab-card { border: 1px solid rgba(247,242,233,.22); border-radius: var(--radius); padding: 34px 28px; text-align: center; background: rgba(255,255,255,.03); }
.collab-card h3 { font-family: var(--serif-display); font-size: 1.7rem; color: var(--cream); font-weight: 600; margin-bottom: .6rem; }
.collab-card p { color: rgba(247,242,233,.78); margin-bottom: 1.4rem; }

/* ===================== CONTACTO ===================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-list { list-style: none; margin-top: 1.6rem; display: flex; flex-direction: column; gap: 12px; }
.contact-list li { display: flex; flex-direction: column; }
.contact-list strong { text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; color: var(--gold); }
.contact-form { display: flex; flex-direction: column; gap: 16px; background: var(--cream); padding: 36px; border-radius: var(--radius); border: 1px solid var(--line); }
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-soft); font-weight: 600; }
.contact-form input, .contact-form select, .contact-form textarea {
  font-family: var(--serif-body); font-size: 1.05rem; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); color: var(--ink);
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.form-note { color: var(--oxblood); font-weight: 600; text-transform: none; letter-spacing: 0; }

/* ===================== FOOTER ===================== */
.site-footer { background: var(--ink); color: var(--cream); padding: 64px 0 28px; }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 40px; border-bottom: 1px solid rgba(247,242,233,.15); }
.footer-brand { display: flex; gap: 16px; align-items: flex-start; max-width: 340px; }
.footer-logo { width: 56px; height: 56px; flex: none; object-fit: contain; }
.footer-brand strong { font-family: var(--serif-display); font-size: 1.3rem; }
.footer-brand p { color: rgba(247,242,233,.6); font-size: .95rem; }
.footer-cols { display: flex; gap: 64px; }
.footer-cols h4 { text-transform: uppercase; letter-spacing: .16em; font-size: .74rem; color: var(--gold-soft); margin-bottom: 1rem; }
.footer-cols a { display: block; color: rgba(247,242,233,.72); font-size: .98rem; padding: 4px 0; }
.footer-cols a:hover { color: var(--cream); }
.footer-bottom { padding-top: 24px; color: rgba(247,242,233,.5); font-size: .88rem; }

/* ===================== CART DRAWER ===================== */
.cart-backdrop { position: fixed; inset: 0; background: rgba(36,20,18,.5); opacity: 0; visibility: hidden; transition: .3s; z-index: 60; }
.cart-backdrop.open { opacity: 1; visibility: visible; }
.cart-drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: 400px; max-width: 90vw;
  background: var(--paper); z-index: 70; transform: translateX(100%); transition: transform .3s;
  display: flex; flex-direction: column; box-shadow: -12px 0 40px -18px rgba(0,0,0,.4);
}
.cart-drawer.open { transform: translateX(0); }
.cart-head { display: flex; justify-content: space-between; align-items: center; padding: 24px; border-bottom: 1px solid var(--line); }
.cart-head h3 { font-family: var(--serif-display); font-size: 1.6rem; color: var(--oxblood-deep); }
.cart-close { background: none; border: none; font-size: 2rem; line-height: 1; cursor: pointer; color: var(--ink-soft); }
.cart-items { flex: 1; overflow-y: auto; padding: 12px 24px; }
.cart-empty { color: var(--ink-soft); text-align: center; padding: 40px 0; font-style: italic; }
.ci { display: grid; grid-template-columns: 48px 1fr auto; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.ci-cover { width: 48px; height: 64px; background: linear-gradient(160deg, var(--oxblood), var(--oxblood-deep)); border-radius: 2px; }
.ci-title { font-family: var(--serif-display); font-size: 1.1rem; color: var(--oxblood-deep); line-height: 1.1; }
.ci-meta { font-size: .85rem; color: var(--ink-soft); }
.ci-qty { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; }
.ci-qty button { width: 22px; height: 22px; border: 1px solid var(--line); background: var(--cream); cursor: pointer; border-radius: 2px; color: var(--ink); }
.ci-remove { background: none; border: none; color: var(--ink-soft); cursor: pointer; font-size: .82rem; text-decoration: underline; }
.ci-price { font-family: var(--serif-display); font-size: 1.1rem; }
.cart-foot { padding: 24px; border-top: 1px solid var(--line); }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; }
.cart-total span { text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; color: var(--ink-soft); }
.cart-total strong { font-family: var(--serif-display); font-size: 1.8rem; color: var(--oxblood-deep); }
.cart-note { font-size: .8rem; color: var(--ink-soft); margin-top: 12px; text-align: center; font-style: italic; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 900px) {
  body { font-size: 18px; }
  .main-nav { display: none; }
  .menu-toggle { display: block; }
  .main-nav.open { display: flex; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; background: var(--paper); padding: 18px 28px; border-bottom: 1px solid var(--line); gap: 8px; }
  .pillars, .lines-grid, .collab-grid, .contact-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: repeat(2,1fr); }
  .contact-grid { gap: 32px; }
  .section { padding: 68px 0; }
}
@media (max-width: 520px) {
  .products-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .tl-item { grid-template-columns: 70px 1fr; gap: 18px; }
  .tl-item::before { left: 70px; }
  .tl-year { font-size: 1.4rem; }
  .tl-year::after { right: -24px; }
  .footer-cols { gap: 36px; }
}

/* ===================== PROYECTOS (Fundación) ===================== */
.proyectos-grid { grid-template-columns: repeat(3, 1fr); }
.line-card.featured { border-top: 3px solid var(--oxblood); background: linear-gradient(180deg, var(--paper), var(--cream)); }
.line-card.featured .line-index { color: var(--oxblood); opacity: .5; font-size: 2.6rem; }
.line-card.featured .line-link { color: var(--oxblood); border-color: var(--oxblood); }
@media (max-width: 900px) { .proyectos-grid { grid-template-columns: 1fr; } }

/* ===================== DIRECTORIO ===================== */
.directorio-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px 24px; margin-top: 3rem; }
.member { text-align: center; }
.member-photo { width: 120px; height: 120px; margin: 0 auto 14px; border-radius: 50%; overflow: hidden; background: var(--cream-deep); border: 2px solid var(--line); display: grid; place-items: center; }
.member-photo img { width: 100%; height: 100%; object-fit: cover; }
.member-initials { font-family: var(--display-caps); font-size: 2rem; color: var(--oxblood); }
.member-name { font-family: var(--serif-display); font-size: 1.3rem; color: var(--oxblood-deep); font-weight: 600; line-height: 1.12; }
.member-role { font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: var(--gold); margin-top: 4px; }
.member.is-lead .member-photo { border-color: var(--oxblood); }
@media (max-width: 900px) { .directorio-grid { grid-template-columns: repeat(2, 1fr); } }

/* ===================== NOTICIAS ===================== */
.news-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; margin-top: 3rem; }
.news-card { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--oxblood); border-radius: var(--radius); padding: 28px 26px; transition: transform .2s, box-shadow .2s; }
.news-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -24px rgba(67,20,26,.5); }
.news-date { font-family: var(--display-caps); text-transform: uppercase; letter-spacing: .16em; font-size: .68rem; color: var(--gold); margin-bottom: .8rem; }
.news-card h3 { font-family: var(--serif-display); font-size: 1.45rem; color: var(--oxblood-deep); font-weight: 600; margin-bottom: .5rem; line-height: 1.14; }
.news-card h3 a { color: inherit; }
.news-card h3 a:hover { color: var(--oxblood); }
.news-card p { color: var(--ink-soft); font-size: 1rem; }
.news-more { display: inline-block; margin-top: auto; padding-top: 12px; color: var(--oxblood); font-weight: 600; }
.news-cta { text-align: center; margin-top: 2.4rem; }
@media (max-width: 900px) { .news-grid { grid-template-columns: 1fr; } }

/* ===================== LEY DE DONACIONES ===================== */
.ley-box { max-width: 820px; margin: 0 auto 2.6rem; text-align: center; background: rgba(255,255,255,.06); border: 1px solid rgba(247,242,233,.25); border-radius: var(--radius); padding: 28px 32px; }
.ley-box .ley-badge { display: inline-block; font-family: var(--display-caps); text-transform: uppercase; letter-spacing: .16em; font-size: .7rem; color: var(--gold-soft); border: 1px solid rgba(247,242,233,.3); border-radius: 999px; padding: 5px 14px; margin-bottom: 14px; }
.ley-box p { color: rgba(247,242,233,.85); font-size: 1.05rem; }

/* ===================== ENTRADA (single) ===================== */
.post-single { max-width: 760px; margin: 0 auto; }
.post-single .post-meta { font-family: var(--display-caps); text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; color: var(--gold); margin-bottom: 1rem; }
.post-single h1 { font-family: var(--serif-display); font-size: clamp(2rem, 4.5vw, 3rem); color: var(--oxblood-deep); font-weight: 600; line-height: 1.1; margin-bottom: 1.4rem; }
.post-single .post-body { font-size: 1.14rem; color: var(--ink); }
.post-single .post-body p { margin-bottom: 1.2rem; }
.post-back { display: inline-block; margin-bottom: 2rem; color: var(--oxblood); font-weight: 600; }

/* ===================== NUESTROS PROYECTOS (con logos) ===================== */
.proyectos-logos { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 26px; margin-top: 3rem; }
.proy-card { display: flex; flex-direction: column; align-items: center; text-align: center; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 24px; transition: transform .2s, box-shadow .2s; }
.proy-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -24px rgba(67,20,26,.5); }
.proy-logo { height: 88px; display: grid; place-items: center; margin-bottom: 18px; width: 100%; }
.proy-logo img { max-height: 72px; max-width: 100%; width: auto; object-fit: contain; }
.proy-logo--text .proy-name { font-family: var(--display-caps); font-size: 1.15rem; line-height: 1.2; color: var(--oxblood-deep); letter-spacing: .04em; text-transform: uppercase; }
.proy-logo--text .proy-name em { display: block; font-family: var(--serif-display); font-style: italic; text-transform: none; letter-spacing: 0; font-size: 1.05rem; color: var(--ink-soft); margin-top: 4px; }
.proy-desc { color: var(--ink-soft); font-size: 1rem; margin-bottom: 1.1rem; flex: 1; }
.proy-card .line-link { border-bottom: 1.5px solid var(--gold); }
@media (max-width: 900px) { .proyectos-logos { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .proyectos-logos { grid-template-columns: 1fr; } }

/* ===================== NUESTRO ALCANCE (números) ===================== */
.stats-band { position: relative; padding: 90px 0; color: var(--cream); background: linear-gradient(160deg, var(--oxblood), var(--oxblood-deep)); overflow: hidden; }
.stats-band::before { content:""; position:absolute; inset:0; background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px); background-size: 22px 22px; opacity:.6; }
.stats-band .container { position: relative; }
.stats-band .center { margin-bottom: 2.6rem; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; padding: 10px; }
.stat-num { display: block; font-family: var(--serif-display); font-weight: 600; font-size: clamp(2.8rem, 6vw, 4.2rem); line-height: 1; color: var(--cream); }
.stat-label { display: block; margin-top: 10px; font-family: var(--display-caps); text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; color: var(--gold-soft); }
@media (max-width: 760px) { .stats-grid { grid-template-columns: 1fr 1fr; gap: 32px 16px; } }

/* Botón dentro de tarjeta de proyecto */
.proy-btn { margin-top: auto; padding: 10px 22px; font-size: .95rem; }

/* ===================== CARRUSEL / GALERÍA ===================== */
.carousel { position: relative; margin-top: 3rem; }
.carousel-viewport { overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); }
.carousel-track { display: flex; transition: transform .55s cubic-bezier(.4,0,.2,1); }
.slide { min-width: 100%; }
.slide img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: none; background: rgba(43,39,35,.55); color: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: background .2s; z-index: 2; }
.carousel-btn:hover { background: var(--oxblood); }
.carousel-prev { left: 16px; }
.carousel-next { right: 16px; }
.carousel-dots { display: flex; justify-content: center; gap: 10px; margin-top: 18px; }
.carousel-dots button { width: 10px; height: 10px; padding: 0; border-radius: 50%; border: none; background: var(--line); cursor: pointer; transition: background .2s, transform .2s; }
.carousel-dots button.active { background: var(--oxblood); transform: scale(1.25); }
@media (max-width: 620px) { .carousel-btn { width: 38px; height: 38px; font-size: 1.4rem; } }

/* ===================== COLLAGE INTEGRADO (Nuestro alcance) ===================== */
.impact-collage { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 180px; gap: 14px; margin-top: 2.8rem; }
.ic-item { margin: 0; overflow: hidden; border-radius: var(--radius); box-shadow: 0 12px 28px -18px rgba(0,0,0,.55); }
.ic-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.ic-item:hover img { transform: scale(1.05); }
.ic-lead { grid-column: span 2; grid-row: span 2; }
@media (max-width: 760px) {
  .impact-collage { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 130px; }
  .ic-lead { grid-column: span 2; grid-row: span 1; }
}

/* ===================== PÁGINAS INTERNAS ===================== */
.page-hero { position: relative; overflow: hidden; padding: 96px 0 72px; color: var(--cream); background: linear-gradient(160deg, var(--oxblood), var(--oxblood-deep)); }
.page-hero::before { content:""; position:absolute; inset:0; background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px); background-size: 22px 22px; opacity:.6; }
.page-hero .container { position: relative; }
.page-hero .eyebrow { color: var(--gold-soft); }
.page-hero h1 { font-family: var(--serif-display); font-weight: 600; font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.05; color: var(--cream); }
.page-hero p.page-sub { margin-top: 1rem; max-width: 620px; font-size: 1.2rem; color: rgba(247,242,233,.85); }
.section-cta { text-align: center; margin-top: 2.6rem; }
/* Enlace tipo "ver más" en resúmenes de la portada */
.summary-more { display:inline-block; margin-top: 1.4rem; }

/* ===================== VARIANTES CLARAS / BOTÓN OSCURO ===================== */
.btn-outline-dark { background: transparent; color: var(--oxblood); border-color: rgba(192,57,43,.4); }
.btn-outline-dark:hover { background: var(--oxblood); color: var(--cream); border-color: var(--oxblood); }

/* Ley de Donaciones sobre fondo claro (página Aportar) */
.ley-box--light { background: var(--cream); border-color: var(--line); }
.ley-box--light .ley-badge { color: var(--gold); border-color: var(--line); }
.ley-box--light p { color: var(--ink); }

/* Tarjetas de aporte sobre fondo claro */
.collab-grid--light { margin-top: 2.4rem; }
.collab-card--light { background: var(--paper); border-color: var(--line); }
.collab-card--light h3 { color: var(--oxblood-deep); }
.collab-card--light p { color: var(--ink-soft); }

/* ===================== TABLA CONGRESO ===================== */
.table-wrap { margin-top: 2.6rem; overflow-x: auto; }
.congreso-table { width: 100%; border-collapse: collapse; }
.congreso-table thead th {
  background: var(--oxblood-deep); color: var(--cream);
  font-family: var(--display-caps); text-transform: uppercase; letter-spacing: .14em;
  font-size: .72rem; text-align: left; padding: 18px 22px; white-space: nowrap;
}
.congreso-table tbody td { padding: 22px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 1.05rem; color: var(--ink); line-height: 1.35; }
.congreso-table tbody tr:hover { background: var(--cream); }
.congreso-table .ed { font-family: var(--display-caps); color: var(--oxblood); font-weight: 700; white-space: nowrap; letter-spacing: .04em; }
@media (max-width: 680px) {
  .congreso-table, .congreso-table tbody, .congreso-table tr, .congreso-table td { display: block; width: 100%; }
  .congreso-table thead { display: none; }
  .congreso-table tr { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 16px; padding: 6px 4px; }
  .congreso-table tbody td { border: none; padding: 8px 18px; display: flex; justify-content: space-between; gap: 16px; }
  .congreso-table tbody td::before { content: attr(data-label); font-family: var(--display-caps); text-transform: uppercase; letter-spacing: .1em; font-size: .64rem; color: var(--gold); flex: none; align-self: center; }
  .congreso-table .ed { font-size: 1.2rem; }
}

/* ===================== ACORDEÓN CONGRESO (ediciones desplegables) ===================== */
.congreso-acc { margin-top: 2.6rem; border-top: 1px solid var(--line); }
.acc-headrow, .acc-head { display: grid; grid-template-columns: 110px 150px 1fr 210px 28px; gap: 22px; align-items: center; }
.acc-headrow { background: var(--oxblood-deep); color: var(--cream); font-family: var(--display-caps); text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; padding: 16px 22px; }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-head { width: 100%; text-align: left; background: var(--paper); border: none; cursor: pointer; padding: 22px; font-family: var(--serif-body); font-size: 1.05rem; color: var(--ink); line-height: 1.35; transition: background .2s; }
.acc-head:hover { background: var(--cream); }
.acc-head .ed { font-family: var(--display-caps); color: var(--oxblood); font-weight: 700; letter-spacing: .04em; white-space: nowrap; }
.acc-caret { color: var(--gold); justify-self: end; transition: transform .25s; }
.acc-head[aria-expanded="true"] { background: var(--cream); }
.acc-head[aria-expanded="true"] .acc-caret { transform: rotate(180deg); }
.acc-body { display: none; background: var(--cream); padding: 0 22px 26px; }
.acc-body.open { display: block; }
.ed-program .ed-meta { font-family: var(--display-caps); text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; color: var(--gold); margin-bottom: 14px; }
.ed-sched { list-style: none; }
.ed-sched li { display: grid; grid-template-columns: 130px 1fr; gap: 20px; padding: 12px 0; border-top: 1px solid var(--line); }
.ed-sched li:first-child { border-top: none; }
.ed-sched .t { font-family: var(--display-caps); font-size: .8rem; color: var(--oxblood); letter-spacing: .04em; white-space: nowrap; }
.ed-sched .a { color: var(--ink); }
.ed-empty { color: var(--ink-soft); font-style: italic; }
@media (max-width: 680px) {
  .acc-headrow { display: none; }
  .acc-head { display: block; position: relative; padding-right: 46px; }
  .acc-head span { display: block; }
  .acc-head .ed { font-size: 1.2rem; margin-bottom: 4px; }
  .acc-caret { position: absolute; right: 20px; top: 22px; }
  .ed-sched li { grid-template-columns: 1fr; gap: 2px; }
}

/* Programa simplificado (Panel / Conferencia) */
.ed-block { padding: 16px 0; border-top: 1px solid var(--line); }
.ed-block:first-of-type { border-top: none; }
.ed-kind { display: inline-block; font-family: var(--display-caps); text-transform: uppercase; letter-spacing: .14em; font-size: .66rem; color: var(--gold); margin-bottom: 6px; }
.ed-tt { font-family: var(--serif-display); font-size: 1.35rem; color: var(--oxblood-deep); font-weight: 600; line-height: 1.15; }
.ed-people { color: var(--ink-soft); font-size: 1.02rem; margin-top: 3px; }

/* ===================== MINI-GALERÍA POR EDICIÓN + VISOR ===================== */
.ed-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin-top: 22px; }
.ed-thumb { display: block; aspect-ratio: 4/3; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); cursor: pointer; }
.ed-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.ed-thumb:hover img { transform: scale(1.06); }

/* Visor (lightbox) */
.lb-overlay { position: fixed; inset: 0; z-index: 200; background: rgba(20,16,14,.92); display: none; align-items: center; justify-content: center; }
.lb-overlay.open { display: flex; }
.lb-img { max-width: 88vw; max-height: 82vh; object-fit: contain; box-shadow: 0 20px 60px -20px rgba(0,0,0,.7); border-radius: 2px; }
.lb-btn { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: none; width: 52px; height: 52px; border-radius: 50%; font-size: 1.8rem; cursor: pointer; display: grid; place-items: center; transition: background .2s; }
.lb-btn:hover { background: var(--oxblood); }
.lb-prev { left: 4vw; } .lb-next { right: 4vw; }
.lb-close { top: 4vh; right: 4vw; width: 44px; height: 44px; font-size: 1.4rem; }
.lb-count { position: absolute; bottom: 4vh; left: 0; right: 0; text-align: center; color: rgba(247,242,233,.8); font-family: var(--display-caps); letter-spacing: .12em; font-size: .78rem; }
@media (max-width: 620px) { .lb-btn { width: 42px; height: 42px; } .lb-prev { left: 2vw; } .lb-next { right: 2vw; } }

/* Directorio con presentación (bio) */
.directorio-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.member-bio { font-size: .92rem; color: var(--ink-soft); margin-top: 8px; line-height: 1.5; max-width: 300px; margin-left: auto; margin-right: auto; }

/* ===================== SUBMENÚ DESPLEGABLE (encabezado) ===================== */
.nav-item { position: relative; display: flex; align-items: center; }
.nav-caret { font-size: .7em; color: var(--gold); margin-left: 2px; }
.sub-menu {
  position: absolute; top: 100%; left: -14px; min-width: 190px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 16px 34px -20px rgba(67,20,26,.5);
  padding: 8px 0; display: none; z-index: 60;
}
.sub-menu::before { content: ""; position: absolute; top: -10px; left: 0; right: 0; height: 10px; }
.nav-item:hover .sub-menu { display: block; }
.sub-menu a { display: block; padding: 9px 20px; font-size: .95rem; color: var(--ink-soft); white-space: nowrap; }
.sub-menu a::after { display: none; }
.sub-menu a:hover { background: var(--cream); color: var(--oxblood); }
@media (max-width: 900px) {
  .nav-item, .nav-item.has-sub { display: block; }
  .nav-caret { display: none; }
  .sub-menu { position: static; display: block; border: none; box-shadow: none; padding: 2px 0 6px 16px; min-width: 0; }
  .sub-menu::before { display: none; }
}

/* Cifras de impacto del Congreso (fondo claro) */
.congreso-impacto { margin-top: 3rem; }
.congreso-impacto .stat-num { color: var(--oxblood); }
.congreso-impacto .stat-label { color: var(--gold); }

/* Nube de logos (monocromática, altura pareja) */
.logo-cloud { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 30px 46px; max-width: 940px; margin: 3.2rem auto 0; }
.logo-chip { display: flex; align-items: center; justify-content: center; height: 42px; }
.logo-chip img { max-height: 40px; max-width: 155px; width: auto; object-fit: contain; opacity: .78; transition: opacity .25s, transform .25s; }
.logo-chip img:hover { opacity: 1; transform: scale(1.08); }
@media (max-width: 560px) { .logo-cloud { gap: 24px 30px; } .logo-chip { height: 34px; } .logo-chip img { max-height: 32px; max-width: 120px; } }

/* Impacto del Congreso: 5 cifras parejas */
.congreso-impacto { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 760px) { .congreso-impacto { grid-template-columns: repeat(2, 1fr); } }

/* Cátedra — grupos de lectura */
.lectura-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; margin-top: 3rem; max-width: 820px; margin-left: auto; margin-right: auto; }
.lectura-card { background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--oxblood); border-radius: var(--radius); padding: 30px 30px 32px; }
.lectura-year { font-family: var(--display-caps); font-size: 1.05rem; letter-spacing: .1em; color: var(--gold); margin-bottom: 10px; }
.lectura-card h3 { font-family: var(--serif-display); font-size: 1.7rem; color: var(--oxblood-deep); font-weight: 600; line-height: 1.12; }
.lectura-author { font-style: italic; color: var(--ink-soft); margin-top: 2px; }
.lectura-note { color: var(--ink-soft); margin-top: 12px; }
@media (max-width: 640px) { .lectura-grid { grid-template-columns: 1fr; } }

/* Cátedra — lista de cursos */
.curso-kicker { font-family: var(--display-caps); text-transform: uppercase; letter-spacing: .16em; font-size: .72rem; color: var(--gold); text-align: center; margin-top: 1.4rem; }
.curso-list { list-style: none; max-width: 560px; margin: 1.2rem auto 0; }
.curso-list li { font-family: var(--serif-display); font-size: 1.35rem; color: var(--oxblood-deep); text-align: center; padding: 14px 0; border-top: 1px solid var(--line); }
.curso-list li:first-child { border-top: none; }

/* Cátedra — galería con pies de foto (usa el visor .ed-thumb) */
.cat-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px; margin-top: 3rem; }
.cat-fig { margin: 0; }
.cat-fig .ed-thumb { display: block; aspect-ratio: 4/3; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); cursor: pointer; }
.cat-fig .ed-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.cat-fig .ed-thumb:hover img { transform: scale(1.06); }
.cat-fig figcaption { font-size: .88rem; color: var(--ink-soft); margin-top: 8px; line-height: 1.35; }

/* ===================== CÁTEDRA — REDISEÑO ===================== */
/* Hero con foto */
.catedra-hero { background-color: var(--oxblood-deep); background-size: cover; background-position: center; padding: 132px 0 112px; }
.catedra-hero::before { background-image: linear-gradient(180deg, rgba(28,14,11,.48), rgba(70,20,15,.84)); background-size: cover; opacity: 1; }
.catedra-hero h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }

/* 3 instancias */
.instancias { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 3rem; }
.instancia { position: relative; background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--oxblood); border-radius: var(--radius); padding: 34px 30px 30px; overflow: hidden; }
.inst-num { position: absolute; top: 14px; right: 22px; font-family: var(--serif-display); font-size: 3rem; line-height: 1; color: var(--cream-deep); }
.inst-cadence { display: inline-block; font-family: var(--display-caps); text-transform: uppercase; letter-spacing: .12em; font-size: .6rem; color: var(--cream); background: var(--oxblood); border-radius: 999px; padding: 5px 13px; margin-bottom: 14px; }
.instancia h3 { font-family: var(--serif-display); font-size: 1.75rem; color: var(--oxblood-deep); font-weight: 600; margin-bottom: .4rem; }
.instancia p { color: var(--ink-soft); }

/* Filas imagen + texto */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.fr-media { min-height: 460px; background-size: cover; background-position: center; }
.fr-body { padding: 74px clamp(28px, 6vw, 88px); display: flex; flex-direction: column; justify-content: center; }
.feature-row.reverse .fr-media { order: 2; }
.fr-title { font-family: var(--serif-display); font-weight: 600; font-size: clamp(1.9rem, 3.4vw, 2.7rem); color: var(--oxblood-deep); line-height: 1.1; margin: .2rem 0 1rem; }
.fr-text { color: var(--ink-soft); font-size: 1.1rem; margin-bottom: 1rem; }
.fr-list { list-style: none; }
.fr-list li { position: relative; padding: 12px 0 12px 24px; border-top: 1px solid var(--line); color: var(--ink); }
.fr-list li:first-child { border-top: none; }
.fr-list li::before { content: "—"; position: absolute; left: 0; color: var(--gold); }
.fr-list--plain li { font-family: var(--serif-display); font-size: 1.3rem; color: var(--oxblood-deep); }
.fr-list--plain li::before { display: none; }
.fr-year { font-family: var(--display-caps); color: var(--oxblood); font-size: .9rem; margin-right: 6px; letter-spacing: .04em; }
.fr-kicker { font-family: var(--display-caps); text-transform: uppercase; letter-spacing: .14em; font-size: .7rem; color: var(--gold); margin: 1.1rem 0 .2rem; }

/* Cierre */
.catedra-cta { background: linear-gradient(160deg, var(--oxblood), var(--oxblood-deep)); }

@media (max-width: 860px) {
  .instancias { grid-template-columns: 1fr; }
  .feature-row { grid-template-columns: 1fr; }
  .feature-row .fr-media { min-height: 280px; order: 0 !important; }
  .fr-body { padding: 48px 28px; }
}

/* ===================== REVISTA ESTUDIOS ===================== */
.pullquote { text-align: center; font-family: var(--serif-display); font-style: italic; font-size: clamp(1.8rem, 4vw, 2.8rem); color: var(--oxblood); margin: 2.6rem auto 0; max-width: 720px; line-height: 1.2; }
.revista-spread { margin: 3rem auto 0; max-width: 940px; }
.revista-spread img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 24px 50px -28px rgba(67,20,26,.5); }
.revista-spread figcaption { text-align: center; font-size: .9rem; color: var(--ink-soft); font-style: italic; margin-top: 12px; }
.revista-ficha { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 32px; margin-top: 2.6rem; border-top: 1px solid var(--line); padding-top: 2rem; }
.revista-ficha .ficha-wide { grid-column: 1 / -1; }
.ficha-kicker { font-family: var(--display-caps); text-transform: uppercase; letter-spacing: .14em; font-size: .68rem; color: var(--gold); margin-bottom: 4px; }
.ficha-value { font-family: var(--serif-display); font-size: 1.2rem; color: var(--oxblood-deep); }
.ficha-wide .ficha-value { font-size: 1.05rem; line-height: 1.5; }
.temas-cloud { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 2.6rem; }
.temas-cloud span { font-family: var(--display-caps); text-transform: uppercase; letter-spacing: .1em; font-size: .74rem; color: var(--oxblood-deep); border: 1px solid var(--line); border-radius: 999px; padding: 9px 18px; background: var(--paper); }
@media (max-width: 620px) { .revista-ficha { grid-template-columns: 1fr; } }

/* Revista — Número 1: portada + ficha en dos columnas */
.revista-n1 { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 48px; align-items: center; margin-top: 3rem; max-width: 980px; margin-left: auto; margin-right: auto; }
.revista-cover { margin: 0; }
.revista-cover img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: 0 30px 60px -26px rgba(67,20,26,.6); }
.revista-ficha-col .ficha-row { padding: 16px 0; border-top: 1px solid var(--line); }
.revista-ficha-col .ficha-row:first-child { border-top: none; }
.ficha-comite { font-size: 1.02rem !important; line-height: 1.6; }
@media (max-width: 760px) { .revista-n1 { grid-template-columns: 1fr; gap: 28px; max-width: 460px; } }

/* ===================== HERO CON FOTO (portada) ===================== */
.hero--photo { background-color: var(--oxblood-deep); background-size: cover; background-position: center; }
.hero--photo::before {
  background-image: linear-gradient(90deg, rgba(28,13,10,.88) 0%, rgba(45,17,13,.7) 45%, rgba(60,20,15,.48) 100%);
  background-size: cover; opacity: 1;
}
.hero--photo .hero-content { padding-top: 96px; padding-bottom: 96px; }

/* Espaciado pilares en portada (Quiénes somos) */
#quienes-somos .pillars { margin-top: 2.8rem; }
#quienes-somos .section-cta { margin-top: 2.6rem; }

/* ===================== MEMORABILIA — MARCA/COMPONENTES ===================== */
.brand-wordmark { height: 30px; width: auto; display: block; }
.footer-wordmark { height: 34px; width: auto; }

/* Hero oscuro tipo manuscrito */
.hero-dark { background: radial-gradient(120% 90% at 75% 15%, rgba(196,52,23,.28), transparent 55%), linear-gradient(180deg, #201d1a, var(--ink)); }
.hero-dark::before { opacity: .5; }
.hero-dark .hero-eyebrow { color: var(--gold-soft); letter-spacing: .34em; }

/* Catálogo (tienda) */
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); justify-content: center; gap: 28px; margin-top: 2.6rem; }
.book {
  display: flex; flex-direction: column; text-align: center;
  background: #fff; border: 1px solid var(--line); border-radius: 4px;
  padding: 18px 16px 20px; box-shadow: 0 12px 30px -24px rgba(43,20,12,.45);
  transition: transform .25s ease, box-shadow .25s ease;
}
.book:hover { transform: translateY(-4px); box-shadow: 0 22px 44px -26px rgba(228,0,43,.32); }
.book-cover { display: block; border-radius: 2px; overflow: hidden; aspect-ratio: 2/3; box-shadow: 0 8px 20px -16px rgba(43,20,12,.5); }
.book-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.book:hover .book-cover img { transform: scale(1.04); }
.book-title { font-family: var(--serif-display); font-size: 1.15rem; color: var(--oxblood-deep); font-weight: 600; line-height: 1.18; margin-top: 14px; }
.book-title a { color: inherit; }
.book-author { font-size: .85rem; color: var(--gold); text-transform: uppercase; letter-spacing: .08em; margin-top: 3px; }
.book-price { font-family: var(--serif-display); font-size: 1.1rem; color: var(--ink); font-weight: 600; margin-top: 8px; margin-bottom: 12px; }
.book-price .badge-prep { display: inline-block; font-family: var(--display-caps); text-transform: uppercase; letter-spacing: .1em; font-size: .62rem; color: var(--ink-soft); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; }
.book .btn { margin-top: auto; font-size: .64rem; padding: 12px 18px; }

/* Comité editorial */
.committee-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 28px; margin-top: 3rem; max-width: 860px; margin-left: auto; margin-right: auto; }
.member { text-align: center; }
.member-photo { width: 140px; height: 140px; margin: 0 auto 16px; border-radius: 50%; overflow: hidden; background: var(--cream-deep); border: 2px solid var(--line); }
.member-photo img { width: 100%; height: 100%; object-fit: cover; }
.member-name { font-family: var(--serif-display); font-size: 1.3rem; color: var(--oxblood-deep); font-weight: 600; line-height: 1.15; }
.member-role { font-size: .92rem; color: var(--ink-soft); margin-top: 4px; }

/* Franja Fundación */
.foundation-strip { background: var(--ink); color: var(--cream); padding: 56px 0; }
.fs-inner { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.fs-logo { width: 70px; height: 70px; flex: none; }
.fs-inner > div { flex: 1; min-width: 260px; }
.fs-kicker { font-family: var(--display-caps); text-transform: uppercase; letter-spacing: .2em; font-size: .7rem; color: var(--gold-soft); }
.fs-inner h3 { font-family: var(--serif-display); font-size: 1.9rem; color: var(--cream); font-weight: 600; margin: 2px 0 8px; }
.fs-text { color: rgba(247,242,233,.75); font-size: 1rem; }
.btn-outline-dark { background: transparent; color: var(--cream); border-color: rgba(247,242,233,.45); }
.btn-outline-dark:hover { background: var(--cream); color: var(--ink); }

@media (max-width: 760px) { .committee-grid { grid-template-columns: 1fr 1fr; } .fs-inner { flex-direction: column; text-align: center; align-items: center; } }

/* ===================== AUTORES (franja oscura) ===================== */
.authors-band { background: linear-gradient(180deg, #211d1a, var(--ink)); color: var(--cream); padding: 92px 0; }
.authors-band .eyebrow { color: var(--gold-soft); }
.authors-band .section-title { color: var(--cream); }
.authors-band .lede { color: rgba(247,242,233,.8); }
.authors-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; margin-top: 3.2rem; }
.author-card { margin: 0; text-align: center; }
.author-portrait { aspect-ratio: 3/4; overflow: hidden; border-radius: var(--radius); border: 1px solid rgba(247,242,233,.16); background: #000; }
.author-portrait img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.author-card:hover .author-portrait img { transform: scale(1.06); }
.author-name { font-family: var(--serif-display); font-size: 1.12rem; color: var(--cream); margin-top: 12px; line-height: 1.15; }
@media (max-width: 820px) { .authors-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .authors-grid { grid-template-columns: 1fr 1fr; } }

/* ===================== TIRA DE AUTORES (full-bleed, sin títulos) ===================== */
.authors-strip { display: flex; gap: 2px; width: 100%; height: clamp(190px, 21vw, 260px); background: var(--cream-deep); overflow: hidden; }
.authors-strip figure { position: relative; flex: 1 1 0; min-width: 0; margin: 0; overflow: hidden; }
.authors-strip img { width: 100%; height: 100%; object-fit: cover; object-position: center 28%; display: block; transition: transform .6s ease; }
.authors-strip figure:hover img { transform: scale(1.05); }
@media (max-width: 700px) {
  .authors-strip { height: 200px; overflow-x: auto; -webkit-overflow-scrolling: touch; gap: 2px; }
  .authors-strip figure { flex: 0 0 46%; }
}

/* ===================== HERO EDITORIAL (con libro destacado) ===================== */
.hero-book { min-height: 90vh; }
.hero-book-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; width: 100%; position: relative; padding: 60px 0; }
.hero-book .hero-content { position: static; padding: 0; max-width: 620px; }
.hero-feature { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.hero-feature img { width: min(340px, 78%); height: auto; border-radius: 3px;
  box-shadow: 0 44px 80px -34px rgba(0,0,0,.85), 0 0 70px -26px rgba(196,52,23,.45);
  transform: perspective(1200px) rotateY(-7deg); transition: transform .55s ease; }
.hero-feature img:hover { transform: perspective(1200px) rotateY(0deg) translateY(-4px); }
.hero-feature figcaption { font-family: var(--display-caps); text-transform: uppercase; letter-spacing: .2em; font-size: .68rem; color: var(--gold-soft); }
@media (max-width: 880px) {
  .hero-book { min-height: 0; }
  .hero-book-grid { grid-template-columns: 1fr; gap: 34px; text-align: center; padding: 40px 0; }
  .hero-book .hero-actions { justify-content: center; }
  .hero-feature { order: -1; }
  .hero-feature img { width: 210px; transform: none; }
}

/* Catálogo — tarjetas más finas */
.book-cover { box-shadow: 0 18px 38px -24px rgba(67,20,26,.55); transition: transform .25s ease, box-shadow .25s ease; }
.book:hover .book-cover { transform: translateY(-4px); box-shadow: 0 26px 48px -26px rgba(67,20,26,.6); }

/* ===================== HERO CON FOTO (full-bleed) ===================== */
.hero-photo {
  position: relative;
  min-height: 78vh;
  display: flex; align-items: flex-end;
  background-size: cover; background-position: center;
  color: var(--cream);
}
/* Fallback cuando aún no hay foto cargada */
.hero-photo--empty {
  background:
    radial-gradient(120% 90% at 70% 15%, rgba(90,26,31,.5), transparent 60%),
    linear-gradient(180deg, var(--oxblood-deep), var(--oxblood));
}
.hero-photo-inner { position: relative; padding: 0 28px 72px; max-width: 720px; }
.hero-photo-title {
  font-family: var(--serif-display); font-weight: 600;
  font-size: clamp(2.4rem, 5.2vw, 4rem); line-height: 1.05;
  letter-spacing: -.015em; margin-bottom: 1.2rem;
  text-shadow: 0 2px 24px rgba(0,0,0,.35);
}
.hero-photo-lead { font-size: 1.18rem; color: rgba(247,242,233,.92); max-width: 560px; margin-bottom: 2rem; text-shadow: 0 1px 12px rgba(0,0,0,.3); }

@media (max-width: 700px) {
  .hero-photo { min-height: 62vh; }
  .hero-photo-inner { padding-bottom: 48px; }
}

/* ===================== HERO GALERÍA (obra enmarcada + texto) ===================== */
.hero-gallery { background: var(--cream); padding: clamp(48px, 7vw, 96px) 0; }
.hero-gallery-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.hero-gallery-text { max-width: 480px; }
.hero-gallery-title {
  font-family: var(--serif-display); font-weight: 600;
  font-size: clamp(2.3rem, 4.6vw, 3.5rem); line-height: 1.05;
  letter-spacing: -.015em; color: var(--oxblood-deep); margin-bottom: 1.4rem;
}
.hero-gallery-lead { font-size: 1.16rem; color: var(--ink-soft); margin-bottom: 2rem; }

.hero-gallery-art { margin: 0; justify-self: center; max-width: 420px; }
.hero-gallery-art img {
  width: 100%; height: auto; display: block;
  border: 8px solid #fff;
  box-shadow:
    0 0 0 1px var(--line),
    0 34px 60px -28px rgba(43,20,12,.55);
  border-radius: 2px;
}
.hero-gallery-art figcaption {
  margin-top: 16px; text-align: center;
  font-family: var(--serif-body); font-size: .84rem; color: var(--ink-soft);
  letter-spacing: .02em;
}
.hero-gallery-art figcaption span { font-style: italic; }

@media (max-width: 820px) {
  .hero-gallery-grid { grid-template-columns: 1fr; gap: 36px; text-align: center; }
  .hero-gallery-text { max-width: none; }
  .hero-gallery-text .hero-actions { justify-content: center; }
  .hero-gallery-art { order: -1; max-width: 320px; }
}

/* ===================== SCROLL-REVEAL ===================== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.22,.61,.36,1), transform .8s cubic-bezier(.22,.61,.36,1); will-change: opacity, transform; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1 !important; transform: none !important; transition: none; } }

/* ===================== CITA CLÁSICA ===================== */
.quote-band {
  background: linear-gradient(160deg, var(--oxblood-deep), var(--oxblood));
  color: var(--cream);
  padding: clamp(60px, 8vw, 110px) 0;
  position: relative;
}
.quote-band::before {
  content: "\201C";
  position: absolute; top: .1em; left: 50%; transform: translateX(-50%);
  font-family: var(--serif-display); font-size: clamp(6rem, 14vw, 11rem);
  line-height: 1; color: rgba(247,242,233,.14); pointer-events: none;
}
.classic-quote { margin: 0; position: relative; }
.quote-latin {
  font-family: var(--serif-display); font-style: italic; font-weight: 500;
  font-size: clamp(1rem, 2vw, 1.25rem); letter-spacing: .02em;
  color: var(--gold-soft); margin-bottom: 1.3rem;
}
.quote-es {
  font-family: var(--serif-display); font-weight: 500;
  font-size: clamp(1.6rem, 3.6vw, 2.7rem); line-height: 1.28;
  letter-spacing: -.005em; max-width: 860px; margin: 0 auto 1.8rem;
}
.classic-quote cite {
  display: inline-block; position: relative; margin-top: 2rem; padding-top: 1.5rem;
  font-style: normal; font-family: var(--display-caps); font-weight: 600;
  text-transform: uppercase; letter-spacing: .24em; font-size: .86rem;
  color: var(--cream);
}
.classic-quote cite::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 48px; height: 2px; background: var(--gold-soft);
}

/* ===================== IN MEMORIAM ===================== */
.memoriam {
  background: linear-gradient(160deg, #211d18, #2b2723);
  color: var(--cream);
  padding: clamp(56px, 8vw, 96px) 0;
  position: relative;
}
.memoriam::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-soft), transparent);
  opacity: .5;
}
.memoriam-inner {
  display: grid; grid-template-columns: auto 1fr;
  gap: clamp(32px, 5vw, 68px); align-items: center;
}
.memoriam-portrait { margin: 0; }
.memoriam-portrait img {
  width: clamp(128px, 16vw, 184px); height: clamp(128px, 16vw, 184px);
  object-fit: cover; object-position: 52% 18%; border-radius: 50%;
  border: 1px solid var(--gold-soft);
  box-shadow: 0 0 0 6px rgba(192,163,105,.12), 0 26px 48px -24px rgba(0,0,0,.75);
}
.memoriam-eyebrow {
  font-family: var(--display-caps); text-transform: uppercase;
  letter-spacing: .34em; font-size: .72rem; color: var(--gold-soft); margin-bottom: 1rem;
}
.memoriam-name {
  font-family: var(--serif-display); font-weight: 600;
  font-size: clamp(2rem, 4vw, 3rem); line-height: 1.05; color: var(--cream);
  margin-bottom: .5rem;
}
.memoriam-dates {
  font-family: var(--serif-display); font-style: italic;
  font-size: 1.15rem; color: var(--gold-soft); margin-bottom: .4rem;
}
.memoriam-role {
  font-family: var(--display-caps); text-transform: uppercase;
  letter-spacing: .18em; font-size: .68rem; color: rgba(247,242,233,.65); margin-bottom: 1.3rem;
}
.memoriam-tribute {
  font-family: var(--serif-display); font-style: italic;
  font-size: clamp(1.12rem, 1.8vw, 1.38rem); line-height: 1.5;
  color: rgba(247,242,233,.9); max-width: 640px;
}
@media (max-width: 640px) {
  .memoriam-inner { grid-template-columns: 1fr; text-align: center; justify-items: center; }
}

/* ===================== NOSOTROS / COMITÉ CIENTÍFICO ===================== */
.quienes-sello {
  margin: 2.8rem auto 0; max-width: 620px;
  display: flex; align-items: center; gap: 20px;
  text-align: center;
  font-family: var(--display-caps); text-transform: uppercase;
  letter-spacing: .2em; font-size: .92rem; font-weight: 600; color: var(--oxblood);
}
.quienes-sello::before,
.quienes-sello::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-soft));
}
.quienes-sello::after { background: linear-gradient(90deg, var(--gold-soft), transparent); }
@media (max-width: 560px) {
  .quienes-sello { flex-direction: column; gap: 14px; font-size: .82rem; }
  .quienes-sello::before, .quienes-sello::after { width: 120px; flex: none; }
}
.committee-card { text-align: center; margin: 0; }
.committee-photo {
  display: block; width: 150px; height: 150px; margin: 0 auto 16px;
  border-radius: 50%; overflow: hidden; background: var(--cream-deep);
  border: 1px solid var(--line);
  box-shadow: 0 0 0 5px rgba(192,163,105,.10), 0 18px 34px -22px rgba(67,20,26,.5);
}
.committee-photo img { width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 50% 24%); }
.committee-photo--empty {
  display: grid; place-items: center;
  font-family: var(--serif-display); font-size: 3rem; color: var(--gold);
  background: var(--cream-deep);
}
.committee-name {
  display: block; font-family: var(--serif-display); font-size: 1.35rem;
  color: var(--oxblood-deep); font-weight: 600; line-height: 1.2;
}
.committee-role {
  display: block; font-size: .95rem; color: var(--ink-soft); margin-top: 5px;
  max-width: 240px; margin-left: auto; margin-right: auto; line-height: 1.35;
}

/* ===================== ¿QUIÉNES SOMOS? (dos columnas) ===================== */
.quienes-grid {
  display: grid; grid-template-columns: 1.15fr .85fr;
  gap: clamp(36px, 5vw, 72px); align-items: center;
}
.quienes-grid .quienes-sello { margin-left: 0; margin-right: 0; }
.quienes-art { margin: 0; align-self: center; }
.quienes-art img {
  width: 100%; height: auto; display: block;
  border: 8px solid #fff;
  box-shadow: 0 0 0 1px var(--line), 0 34px 60px -28px rgba(43,20,12,.55);
  border-radius: 2px;
}
.quienes-art figcaption {
  margin-top: 14px; text-align: center;
  font-family: var(--serif-body); font-size: .84rem; color: var(--ink-soft);
}
.quienes-art figcaption span { font-style: italic; }
@media (max-width: 820px) {
  .quienes-grid { grid-template-columns: 1fr; gap: 32px; }
  .quienes-art { order: -1; max-width: 360px; margin: 0 auto; }
  .quienes-grid .quienes-sello { margin-left: auto; margin-right: auto; }
}

/* ===================== TANTO MONTA — MARCA ===================== */
.brand-monogram { height: 42px; width: auto; display: block; flex: none; }
.footer-monogram { height: 54px; width: auto; display: block; filter: brightness(0) invert(1); opacity: .92; }

/* ===================== HERO TANTO MONTA ===================== */
.hero-tm {
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(228,0,43,.06), transparent 60%),
    var(--paper);
  border-bottom: 1px solid var(--line);
  padding: clamp(70px, 11vw, 140px) 0 clamp(60px, 9vw, 110px);
  text-align: center;
}
.hero-tm-inner { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.hero-tm-logo { width: min(440px, 82%); height: auto; margin-bottom: 2.2rem; }
.hero-tm-lead { font-size: clamp(1.15rem, 2vw, 1.4rem); color: var(--ink-soft); max-width: 620px; margin-bottom: 2.2rem; line-height: 1.5; }
.hero-tm .hero-actions { justify-content: center; }

/* ===================== COLECCIONES ===================== */
.collections-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 3rem; }
.collection-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--line);
  border-top: 3px solid var(--oxblood); border-radius: var(--radius);
  padding: 34px 30px 30px; overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.collection-card:hover { transform: translateY(-4px); box-shadow: 0 20px 44px -26px rgba(228,0,43,.4); }
.collection-index {
  font-family: var(--serif-display); font-size: 3.2rem; line-height: 1;
  color: var(--cream-deep); position: absolute; top: 16px; right: 22px;
}
.collection-title {
  font-family: var(--serif-display); font-size: 1.6rem; font-weight: 600;
  color: var(--oxblood-deep); line-height: 1.15; margin-bottom: .6rem; max-width: 85%;
}
.collection-desc { color: var(--ink-soft); font-size: 1rem; margin-bottom: 1.4rem; }
.collection-more {
  margin-top: auto; font-family: var(--display-caps); text-transform: uppercase;
  letter-spacing: .14em; font-size: .68rem; font-weight: 600; color: var(--oxblood);
}
@media (max-width: 900px) { .collections-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .collections-grid { grid-template-columns: 1fr; } }

/* ===================== NOTICIAS (con imagen) ===================== */
.news-card { padding: 0; overflow: hidden; }
.news-thumb { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--cream-deep); }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.news-card:hover .news-thumb img { transform: scale(1.04); }
.news-body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }

/* ===================== CONTENIDO (páginas / noticias) ===================== */
.rich { font-size: 1.12rem; color: var(--ink); line-height: 1.7; }
.rich p { margin-bottom: 1.2rem; }
.rich h2 { font-family: var(--serif-display); font-size: 1.9rem; color: var(--oxblood-deep); margin: 2rem 0 .8rem; }
.rich h3 { font-family: var(--serif-display); font-size: 1.5rem; color: var(--oxblood-deep); margin: 1.6rem 0 .6rem; }
.rich a { color: var(--oxblood); text-decoration: underline; text-underline-offset: 3px; }
.rich img { border-radius: var(--radius); margin: 1.4rem 0; }
.rich blockquote { border-left: 3px solid var(--gold); padding-left: 20px; font-style: italic; color: var(--ink-soft); margin: 1.4rem 0; }
.rich ul, .rich ol { margin: 0 0 1.2rem 1.3rem; }
.rich li { margin-bottom: .4rem; }

.post-meta { font-family: var(--display-caps); text-transform: uppercase; letter-spacing: .16em; font-size: .72rem; color: var(--gold); }
.post-hero { margin: 0; }
.post-hero img { width: 100%; height: auto; max-height: 520px; object-fit: cover; border-radius: var(--radius); box-shadow: 0 24px 50px -30px rgba(43,20,12,.5); }

.news-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 3rem; }
.news-pagination .page-numbers {
  display: inline-block; padding: 8px 14px; border: 1px solid var(--line);
  border-radius: 2px; color: var(--ink-soft); font-size: .95rem;
}
.news-pagination .page-numbers.current { background: var(--oxblood); color: #fff; border-color: var(--oxblood); }
.news-pagination a.page-numbers:hover { border-color: var(--oxblood); color: var(--oxblood); }

/* ===================== HERO — lockup «EDITORIAL TANTO MONTA» ===================== */
.hero-tm-brand { display: inline-flex; align-items: center; gap: clamp(16px, 2.4vw, 26px); margin-bottom: 2.4rem; }
.hero-tm-monogram { height: clamp(72px, 10vw, 104px); width: auto; display: block; flex: none; }
.hero-tm-words { display: flex; flex-direction: column; line-height: 1; text-align: left; }
.hero-tm-words strong {
  font-family: var(--display-caps); text-transform: uppercase; font-weight: 600;
  letter-spacing: .34em; font-size: clamp(.8rem, 1.4vw, 1.05rem); color: var(--ink-soft);
  margin-bottom: .35em;
}
.hero-tm-words em {
  font-family: var(--display-caps); font-style: normal; font-weight: 600;
  text-transform: uppercase; letter-spacing: .04em;
  font-size: clamp(1.8rem, 4.2vw, 3rem); color: var(--oxblood-deep);
}
@media (max-width: 520px) {
  .hero-tm-brand { flex-direction: column; gap: 14px; text-align: center; }
  .hero-tm-words { text-align: center; align-items: center; }
}

/* ===================== COLECCIÓN OSVALDO LIRA ===================== */
:root { --brick: #8a2820; --brick-deep: #732017; }

/* Columna centrada más angosta para toda la página */
.ol-crumb .container,
.ol-hero .container,
.ol-portrait-sec .container,
.ol-bio-sec .container,
.ol-vols-sec .container,
.ol-vids-sec .container { max-width: 820px; }

/* Migas + encabezado */
.ol-crumb { background: #f6f4ef; border-bottom: 1px solid var(--line); }
.ol-crumb .container { padding-top: 14px; padding-bottom: 14px; font-family: var(--display-caps); font-size: .82rem; letter-spacing: .02em; }
.ol-crumb a { color: var(--ink-soft); text-decoration: none; }
.ol-crumb a:hover { color: var(--brick); }
.ol-crumb-sep { color: var(--gold); margin: 0 .5em; }
.ol-crumb-cur { color: var(--ink); font-weight: 600; }
.ol-hero { padding: clamp(34px,5vw,60px) 0 0; }
.ol-title { font-family: var(--serif-display); font-weight: 600; font-size: clamp(2.4rem,6vw,4.4rem); line-height: 1.02; color: var(--ink); letter-spacing: -.01em; text-align: center; }
.ol-hr { border: 0; border-top: 1px solid var(--brick); margin: clamp(28px,4vw,44px) 0 0; opacity: .8; }

/* Retrato enmarcado, centrado */
.ol-portrait-sec { padding: clamp(40px,5vw,60px) 0 0; }
.ol-portrait { margin: 0 auto; display: inline-block; max-width: 420px; }
.ol-portrait img { width: 100%; height: auto; display: block; padding: 10px; background: #fff; border: 1px solid var(--line); box-shadow: 0 30px 60px -34px rgba(43,20,12,.55); }
.ol-portrait-ph { display: grid; place-items: center; width: 320px; aspect-ratio: 3/4; margin: 0 auto; background: var(--cream-deep); color: var(--gold); font-family: var(--serif-display); font-size: 4rem; padding: 10px; border: 1px solid var(--line); }
.ol-portrait figcaption { margin-top: 20px; font-family: var(--serif-display); font-weight: 600; font-size: 1.35rem; color: var(--ink); }
.ol-portrait figcaption span { color: var(--ink-soft); font-weight: 500; }

/* Cajas de biografía / edición */
.ol-bio-sec { padding-top: clamp(40px,5vw,60px); }
.ol-biobox { background: #f7f5f0; border-left: 5px solid var(--brick); padding: clamp(30px,4vw,46px) clamp(26px,4vw,48px); border-radius: 0 var(--radius) var(--radius) 0; }
.ol-biobox + .ol-biobox { margin-top: 28px; }
.ol-biobox--soft { background: #faf9f5; border-left-color: var(--gold); }
.ol-h { font-family: var(--serif-display); font-weight: 600; font-variant: small-caps; letter-spacing: .01em; font-size: clamp(1.7rem,3.2vw,2.35rem); color: var(--brick); line-height: 1.12; margin-bottom: 1.3rem; }
.ol-biobox--soft .ol-h { color: var(--gold); }
.ol-biobox p { font-family: var(--serif-body); font-size: 1.14rem; color: var(--ink); line-height: 1.72; margin-bottom: 1.15rem; text-align: justify; }
.ol-biobox p:last-child { margin-bottom: 0; }

/* Encabezado de sección (versalitas rojas con filete) */
.ol-section-h { font-family: var(--serif-display); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: clamp(1.6rem,3.4vw,2.5rem); color: var(--brick); text-align: center; padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: clamp(30px,4vw,46px); }

/* Volúmenes */
.ol-vols-sec { padding-top: clamp(48px,6vw,76px); }
.ol-vols { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; max-width: 640px; margin: 0 auto; }
.ol-vol { display: flex; flex-direction: column; background: #faf9f5; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; transition: transform .2s ease, box-shadow .2s ease; }
a.ol-vol--link:hover { transform: translateY(-3px); box-shadow: 0 18px 34px -24px rgba(138,40,32,.5); }
.ol-vol-bar { display: block; margin: 14px 16px 0; text-align: center; font-family: var(--display-caps); text-transform: uppercase; letter-spacing: .16em; font-size: .58rem; font-weight: 600; color: #fff; background: var(--brick); padding: 6px 10px; border-radius: 2px; }
.ol-vol--prep .ol-vol-bar { background: #8b8577; }
.ol-vol-body { display: flex; flex-direction: column; flex: 1; padding: 14px 16px 18px; text-align: center; }
.ol-vol-n { font-family: var(--serif-display); font-weight: 700; font-size: 1.4rem; color: var(--ink); margin-bottom: .55rem; }
.ol-vol--prep .ol-vol-n { color: var(--ink-soft); }
.ol-vol-obras { list-style: none; margin: 0; padding: 0; }
.ol-vol-obras li { font-family: var(--serif-display); font-size: .98rem; color: var(--ink-soft); padding: 3px 0; }
.ol-vol-more { margin-top: 10px; font-family: var(--display-caps); text-transform: uppercase; letter-spacing: .12em; font-size: .58rem; font-weight: 600; color: var(--brick); }
@media (max-width: 700px) { .ol-vols { grid-template-columns: 1fr; max-width: 340px; } .ol-biobox p { text-align: left; } }

/* Videos */
.ol-vids-sec { padding-top: clamp(48px,6vw,76px); }
.ol-videos { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.ol-video { margin: 0; }
.ol-video-frame { position: relative; padding-top: 56.25%; border-radius: var(--radius); overflow: hidden; box-shadow: 0 20px 44px -26px rgba(43,20,12,.5); background: #000; }
.ol-video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ol-video figcaption { margin-top: 16px; text-align: center; font-family: var(--serif-display); font-style: italic; font-size: 1.18rem; color: var(--ink); }
.ol-video figcaption strong { font-style: normal; font-weight: 700; color: var(--brick); }
@media (max-width: 760px) { .ol-videos { grid-template-columns: 1fr; } }

/* ============================================================
   WOOCOMMERCE — estilo de marca (ficha, tienda, carrito, checkout)
   ============================================================ */
.wc-wrap { padding-top: 40px; padding-bottom: 80px; }

/* Breadcrumb */
.woocommerce-breadcrumb {
  font-family: var(--display-caps); text-transform: uppercase; letter-spacing: .12em;
  font-size: .68rem; color: var(--ink-soft); margin-bottom: 2rem;
}
.woocommerce-breadcrumb a { color: var(--oxblood); }

/* ---------- FICHA DE PRODUCTO ---------- */
.woocommerce div.product {
  display: grid; grid-template-columns: minmax(0, 46%) 1fr;
  gap: clamp(32px, 5vw, 64px); align-items: start;
}
.woocommerce div.product .woocommerce-product-gallery { grid-column: 1; margin: 0 !important; float: none !important; width: 100% !important; }
.woocommerce div.product .summary { grid-column: 2; margin: 0 !important; float: none !important; width: 100% !important; }
.woocommerce div.product .woocommerce-tabs,
.woocommerce div.product .related,
.woocommerce div.product .upsells { grid-column: 1 / -1; }

/* Portada */
.woocommerce div.product .woocommerce-product-gallery__image img,
.woocommerce div.product div.images img {
  border: 8px solid #fff;
  box-shadow: 0 0 0 1px var(--line), 0 30px 60px -30px rgba(43,20,12,.5);
  border-radius: 2px;
}
.woocommerce span.onsale {
  background: var(--oxblood); color: #fff; font-family: var(--display-caps);
  text-transform: uppercase; letter-spacing: .1em; font-size: .62rem; border-radius: 2px;
  min-height: auto; min-width: auto; padding: 6px 12px; line-height: 1;
}

/* Resumen */
.woocommerce div.product .product_title {
  font-family: var(--serif-display); font-weight: 600; color: var(--oxblood-deep);
  font-size: clamp(1.9rem, 3.6vw, 2.8rem); line-height: 1.08; letter-spacing: -.01em;
  margin: 0 0 .6rem;
}
.woocommerce div.product .sku_wrapper {
  display: block; font-family: var(--display-caps); text-transform: uppercase;
  letter-spacing: .14em; font-size: .64rem; color: var(--ink-soft); margin-bottom: 1rem;
}
.woocommerce div.product p.price,
.woocommerce div.product span.price {
  color: var(--oxblood); font-family: var(--serif-display); font-weight: 600;
  font-size: 1.9rem; margin-bottom: 1.4rem;
}
.woocommerce div.product .woocommerce-product-details__short-description {
  font-family: var(--serif-body); color: var(--ink); font-size: 1.08rem; line-height: 1.65;
  margin-bottom: 1.6rem; padding-bottom: 1.6rem; border-bottom: 1px solid var(--line);
}

/* Cantidad + Añadir al carrito */
.woocommerce div.product form.cart { display: flex; gap: 14px; align-items: stretch; flex-wrap: wrap; margin-bottom: 1.6rem; }
.woocommerce .quantity .qty {
  height: 52px; width: 84px; border: 1px solid var(--line); border-radius: 2px;
  font-family: var(--serif-body); font-size: 1.05rem; text-align: center; color: var(--ink); background: #fff;
}
.woocommerce div.product form.cart .button,
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce #respond input#submit, .woocommerce .button.alt {
  background: var(--oxblood); color: var(--cream); border: 1px solid var(--oxblood);
  font-family: var(--display-caps); text-transform: uppercase; letter-spacing: .16em;
  font-size: .74rem; font-weight: 600; border-radius: 2px; padding: 17px 30px; line-height: 1;
  transition: all .2s ease; cursor: pointer;
}
.woocommerce div.product form.cart .button:hover,
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover,
.woocommerce #respond input#submit:hover, .woocommerce .button.alt:hover {
  background: var(--oxblood-deep); border-color: var(--oxblood-deep); color: #fff;
}
.woocommerce a.button.wc-backward, .woocommerce .button.wc-backward {
  background: transparent; color: var(--oxblood); border-color: var(--oxblood);
}
.woocommerce div.product .product_meta { font-size: .9rem; color: var(--ink-soft); padding-top: 1rem; border-top: 1px solid var(--line); }
.woocommerce div.product .product_meta a { color: var(--oxblood); }

/* Pestañas / Descripción */
.woocommerce div.product .woocommerce-tabs { margin-top: 3.5rem; }
.woocommerce div.product .woocommerce-tabs ul.tabs { border-bottom: 1px solid var(--line); padding: 0; margin-bottom: 2rem; }
.woocommerce div.product .woocommerce-tabs ul.tabs::before { border-color: var(--line); }
.woocommerce div.product .woocommerce-tabs ul.tabs li {
  background: none; border: 0; border-bottom: 2px solid transparent; border-radius: 0; margin: 0 24px 0 0; padding: 0 0 12px;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { border-bottom-color: var(--oxblood); }
.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
  font-family: var(--display-caps); text-transform: uppercase; letter-spacing: .12em;
  font-size: .74rem; font-weight: 600; color: var(--ink-soft); padding: 0;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--oxblood-deep); }
.woocommerce div.product .woocommerce-Tabs-panel h2 { font-family: var(--serif-display); color: var(--oxblood-deep); font-weight: 600; font-size: 1.6rem; margin-bottom: 1rem; }
.woocommerce div.product .woocommerce-Tabs-panel { font-family: var(--serif-body); font-size: 1.1rem; line-height: 1.7; color: var(--ink); max-width: 760px; }
.woocommerce div.product .woocommerce-Tabs-panel p { margin-bottom: 1rem; }

/* Relacionados */
.woocommerce .related > h2, .woocommerce .upsells > h2 { font-family: var(--serif-display); color: var(--oxblood-deep); font-weight: 600; font-size: 1.8rem; margin: 3rem 0 1.4rem; }

/* Avisos */
.woocommerce-message, .woocommerce-info, .woocommerce-error {
  border-top-color: var(--oxblood); font-family: var(--serif-body); border-radius: 2px;
}
.woocommerce-message::before, .woocommerce-info::before { color: var(--oxblood); }

@media (max-width: 780px) {
  .woocommerce div.product { grid-template-columns: 1fr; }
  .woocommerce div.product .woocommerce-product-gallery,
  .woocommerce div.product .summary { grid-column: 1; }
  .woocommerce div.product .woocommerce-product-gallery { max-width: 360px; margin: 0 auto !important; }
}

/* Fix: WooCommerce (.woocommerce-page img{height:auto}) agranda el logo en las
   páginas de tienda. Forzamos el tamaño del monograma del header y del footer. */
.site-header .brand-monogram { height: 32px !important; width: auto !important; filter: brightness(0); }
.site-footer .footer-monogram { height: 54px !important; width: auto !important; }

/* ---------- TIENDA (grilla de productos): más por fila, portada completa ---------- */
.woocommerce ul.products, .woocommerce-page ul.products {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
  gap: 34px 24px; margin: 0 !important; padding: 0 !important;
}
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none !important; }
.woocommerce ul.products li.product, .woocommerce-page ul.products li.product {
  width: auto !important; float: none !important; margin: 0 !important; text-align: center;
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: 4px;
  padding: 18px 16px 20px !important;
  box-shadow: 0 12px 30px -24px rgba(43,20,12,.45);
  transition: box-shadow .25s ease, transform .25s ease;
}
.woocommerce ul.products li.product:hover { transform: translateY(-4px); box-shadow: 0 22px 44px -26px rgba(228,0,43,.32); }
/* El botón se ancla al fondo en todas las tarjetas (sin hueco blanco debajo) */
.woocommerce ul.products li.product .price { margin-bottom: 12px !important; }
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .added_to_cart { margin-top: auto !important; }
/* Portada completa (sin recorte), altura uniforme */
.woocommerce ul.products li.product a img {
  width: 100%; aspect-ratio: 2 / 3; height: auto; object-fit: cover !important; object-position: center;
  margin: 0 0 16px !important; box-shadow: 0 8px 20px -16px rgba(43,20,12,.5); border-radius: 2px;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--serif-display); font-size: 1.05rem; font-weight: 600;
  color: var(--oxblood-deep); line-height: 1.2; padding: 0 6px 6px !important;
}
.woocommerce ul.products li.product .price {
  font-family: var(--serif-display); font-size: 1.05rem; color: var(--ink); font-weight: 600;
}
.woocommerce ul.products li.product .button {
  display: inline-block; margin-top: 12px !important; padding: 11px 18px !important;
  font-size: .64rem !important; letter-spacing: .12em !important;
}
.woocommerce ul.products li.product .added_to_cart { display: inline-block; margin-top: 8px; font-size: .7rem; color: var(--oxblood); }
@media (max-width: 520px) {
  .woocommerce ul.products, .woocommerce-page ul.products { grid-template-columns: 1fr 1fr; gap: 24px 16px; }
  .woocommerce ul.products li.product a img { height: 190px; }
}


/* ===================== COLECCIÓN — libros (estilo página) ===================== */
/* Introducción: lead editorial centrado (sin caja gris) */
.col-intro { max-width: 760px; margin: 1.8rem auto 2.4rem; text-align: center; position: relative; }
.col-intro p {
  font-family: var(--serif-display); font-weight: 500;
  font-size: clamp(1.25rem, 2.2vw, 1.6rem); line-height: 1.5; color: var(--ink); margin: 0;
}
.col-intro p strong { color: var(--oxblood-deep); font-weight: 600; }
.col-titulos { text-align: center; margin-top: 1rem; }
.col-titulos .eyebrow { margin-bottom: 1rem; }
.col-rule { width: 72px; height: 2px; background: var(--gold); margin: 0 auto; border: 0; }

.col-books { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 360px)); justify-content: center; gap: 40px; margin-top: 2.8rem; }
.col-book {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--oxblood);
  border-radius: 6px; padding: 38px 34px 34px;
  box-shadow: 0 18px 40px -28px rgba(43,20,12,.5);
  transition: transform .3s ease, box-shadow .3s ease;
}
.col-book:hover { transform: translateY(-6px); box-shadow: 0 34px 60px -30px rgba(228,0,43,.35); }
.col-book-cover { display: block; width: 100%; text-align: center; margin-bottom: 24px; }
.col-book-cover img {
  width: 208px; max-width: 74%; height: auto; display: block; margin: 0 auto;
  border: 7px solid #fff; border-radius: 2px;
  box-shadow: 0 0 0 1px var(--line), 0 28px 50px -22px rgba(43,20,12,.7);
  transition: transform .3s ease;
}
.col-book:hover .col-book-cover img { transform: scale(1.02); }
.col-book-title { font-family: var(--serif-display); font-weight: 600; font-size: 1.85rem; line-height: 1.12; color: var(--oxblood-deep); }
.col-book-title a { color: inherit; }
.col-book-autor { font-family: var(--serif-display); font-style: italic; font-size: 1.2rem; color: var(--ink); margin-top: .55rem; }
.col-book-sep { width: 56px; height: 1px; background: var(--gold-soft); margin: 1.3rem 0; }
.col-book-desc { font-family: var(--serif-body); font-size: 1.08rem; line-height: 1.68; color: var(--ink-soft); }
.col-book-foot { margin-top: 1.8rem; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: center; }
.col-book-price { font-family: var(--serif-display); font-weight: 600; font-size: 1.35rem; color: var(--ink); }


/* ===================== MENÚ DESPLEGABLE (Colecciones) ===================== */
.main-nav { align-items: center; }
.nav-dropdown { position: relative; display: inline-flex; align-items: center; }
.nav-dropdown-toggle { display: inline-flex; align-items: center; gap: 5px; }
.nav-caret { font-size: .7em; transition: transform .2s ease; }
.nav-dropdown:hover .nav-caret { transform: rotate(180deg); }
.nav-menu {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(8px);
  min-width: 260px; background: var(--paper); border: 1px solid var(--line);
  border-radius: 4px; box-shadow: 0 24px 50px -24px rgba(43,20,12,.45);
  padding: 8px; z-index: 60;
  opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s ease, transform .2s ease;
}
.nav-dropdown:hover .nav-menu, .nav-dropdown:focus-within .nav-menu {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(4px);
}
.nav-menu::before { content: ""; position: absolute; top: -8px; left: 0; right: 0; height: 8px; }
.nav-menu a {
  display: block; padding: 11px 16px; font-size: .95rem; color: var(--ink);
  border-radius: 3px; line-height: 1.25;
}
.nav-menu a::after { display: none; }
.nav-menu a:hover { background: var(--cream); color: var(--oxblood); }
@media (max-width: 900px) {
  .nav-menu { position: static; transform: none; opacity: 1; visibility: visible; pointer-events: auto; box-shadow: none; border: 0; min-width: 0; padding: 0 0 0 14px; }
  .nav-dropdown { display: block; }
}

/* Toggle del desplegable (es un span, no enlace) */
.nav-dropdown-toggle {
  font-size: .96rem; color: var(--ink-soft); cursor: pointer; padding: 4px 0;
  display: inline-flex; align-items: center; gap: 5px; transition: color .2s;
}
.nav-dropdown:hover .nav-dropdown-toggle, .nav-dropdown:focus-within .nav-dropdown-toggle { color: var(--oxblood); }

/* ===================== ¿QUIÉNES SOMOS? — pilares ===================== */
.qs-pilares { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin: 2.6rem 0 .5rem; }
.qs-pilares--3 { grid-template-columns: repeat(3, 1fr); }
.qs-pilar { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--oxblood); border-radius: 6px; padding: 30px 26px; text-align: center; }
.qs-pilar h3 { font-family: var(--serif-display); font-weight: 600; font-size: 1.5rem; color: var(--oxblood-deep); margin-bottom: .6rem; }
.qs-pilar h3::after { content: ""; display: block; width: 40px; height: 2px; background: var(--gold); margin: .7rem auto 0; }
.qs-pilar p { font-family: var(--serif-body); font-size: 1.04rem; line-height: 1.6; color: var(--ink-soft); }
.qs-areas { text-align: center; font-family: var(--serif-display); font-size: 1.35rem; color: var(--ink); margin: 2.2rem auto 0; max-width: 640px; }
.qs-areas strong { color: var(--oxblood-deep); }
.qs-relato { max-width: 720px; margin: 2.8rem auto 0; }
.qs-relato p { font-family: var(--serif-body); font-size: 1.12rem; line-height: 1.7; color: var(--ink); margin-bottom: 1.2rem; text-align: justify; }
.qs-relato p strong { color: var(--oxblood-deep); }
@media (max-width: 700px) { .qs-pilares, .qs-pilares--3 { grid-template-columns: 1fr; } }

/* ===================== EQUIPO ===================== */
.equipo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 30px 26px; margin-top: 3rem; max-width: 980px; margin-left: auto; margin-right: auto; }
.equipo-card { text-align: center; margin: 0; display: flex; flex-direction: column; align-items: center; }
.equipo-foto { display: block; width: 128px; height: 128px; margin: 0 auto 16px; border-radius: 50%; overflow: hidden; background: var(--cream-deep); border: 1px solid var(--line); box-shadow: 0 0 0 5px rgba(192,163,105,.10), 0 16px 30px -22px rgba(67,20,26,.5); }
.equipo-foto img { width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 50% 24%); }
.equipo-foto--empty { display: grid; place-items: center; font-family: var(--serif-display); font-size: 2.6rem; color: var(--gold); }
.equipo-nombre { display: block; font-family: var(--serif-display); font-size: 1.4rem; font-weight: 600; color: var(--oxblood-deep); line-height: 1.15; }
.equipo-cargo { display: block; font-family: var(--display-caps); text-transform: uppercase; letter-spacing: .14em; font-size: .66rem; color: var(--gold); margin-top: 6px; }
.equipo-bio { display: block; font-family: var(--serif-body); font-size: .98rem; color: var(--ink-soft); line-height: 1.55; margin-top: 12px; max-width: 280px; }
.equipo-mail { display: inline-block; margin-top: 10px; font-size: .85rem; color: var(--oxblood); word-break: break-all; }

/* Video ¿Quiénes somos? */
.qs-video { margin: 2.6rem auto 0; max-width: 760px; }
.qs-video-frame { position: relative; padding-top: 56.25%; border-radius: var(--radius); overflow: hidden; box-shadow: 0 24px 50px -26px rgba(43,20,12,.55); background: #000; }
.qs-video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ===================== COLECCIONES EN CÍRCULOS (portada) ===================== */
.col-circles { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(24px, 3.5vw, 46px); margin-top: 3rem; }
.col-circ { width: clamp(150px, 15vw, 188px); text-decoration: none; text-align: center; display: flex; flex-direction: column; align-items: center; }
.col-circ-disc {
  width: 100%; aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  background: #fff; border: 1px solid var(--line);
  box-shadow: 0 14px 32px -20px rgba(43,20,12,.5);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.col-circ-disc img { width: 100%; height: 100%; object-fit: cover; }
.col-circ-disc--empty { display: grid; place-items: center; background: var(--oxblood); }
.col-circ-ini { font-family: var(--serif-display); font-size: 3rem; color: var(--cream); }
.col-circ:hover .col-circ-disc { transform: translateY(-6px); box-shadow: 0 26px 46px -22px rgba(228,0,43,.45); border-color: var(--gold); }
.col-circ-name { margin-top: 1.1rem; font-family: var(--serif-display); font-size: 1.15rem; font-weight: 600; color: var(--oxblood-deep); line-height: 1.2; }
.col-circ:hover .col-circ-name { color: var(--oxblood); }

/* Contacto: dirección */
.contacto-dir { margin-top: 1rem; font-family: var(--display-caps); text-transform: uppercase; letter-spacing: .12em; font-size: .74rem; color: var(--ink-soft); }

/* Franja "proyecto de la Fundación" (cierre) */
.fundacion-line { background: var(--ink); color: var(--cream); padding: 40px 0; }
.fundacion-line-logo { height: 54px; width: auto; margin: 0 auto 14px; display: block; filter: brightness(0) invert(1); opacity: .9; }
.fundacion-line p { font-family: var(--serif-display); font-size: 1.15rem; color: rgba(247,242,233,.9); margin: 0; }
.fundacion-line a { color: var(--gold-soft); text-decoration: underline; text-underline-offset: 3px; }

/* ===================== FRANJA GALERÍA (portada) ===================== */
.tm-galeria { display: flex; gap: 3px; width: 100%; height: clamp(200px, 22vw, 300px); overflow: hidden; background: var(--ink); }
.tm-galeria figure { position: relative; flex: 1 1 0; min-width: 0; margin: 0; overflow: hidden; }
.tm-galeria img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.tm-galeria figure:hover img { transform: scale(1.06); }
@media (max-width: 720px) {
  .tm-galeria { height: 200px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .tm-galeria figure { flex: 0 0 48%; }
}




/* ===================== CARRUSEL DE FOTOS (cuadrado, 3, con espacio) ===================== */
.section-galeria { padding: clamp(28px, 4vw, 56px) 0; }
.tm-carousel { position: relative; padding: 0 6px; }
.tm-carousel-viewport { overflow: hidden; }
.tm-carousel-track { display: flex; gap: 20px; transition: transform .55s cubic-bezier(.22,.61,.36,1); }
.tm-slide { flex: 0 0 calc((100% - 2 * 20px) / 3); margin: 0; aspect-ratio: 1 / 1; border-radius: 6px; overflow: hidden; background: var(--cream-deep); }
.tm-slide img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.tm-slide:hover img { transform: scale(1.05); }
.tm-carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.92); color: var(--oxblood-deep); font-size: 1.6rem; line-height: 1;
  display: grid; place-items: center; box-shadow: 0 8px 22px -6px rgba(0,0,0,.45); transition: background .2s;
}
.tm-carousel-arrow:hover { background: #fff; }
.tm-carousel-prev { left: -6px; } .tm-carousel-next { right: -6px; }
.tm-carousel-dots { display: flex; justify-content: center; gap: 9px; margin-top: 20px; }
.tm-dot { width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; background: var(--line); transition: background .2s, transform .2s; }
.tm-dot.is-active { background: var(--oxblood); transform: scale(1.25); }
@media (max-width: 760px) { .tm-slide { flex-basis: calc((100% - 20px) / 2); } }
@media (max-width: 500px) { .tm-slide { flex-basis: 100%; } }

/* ===================== CONTACTO (página) ===================== */
.contacto-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 2.6rem; text-align: center; }
.contacto-h { font-family: var(--display-caps); text-transform: uppercase; letter-spacing: .16em; font-size: .72rem; color: var(--gold); margin-bottom: .8rem; }
.contacto-dato p { font-family: var(--serif-body); font-size: 1.08rem; line-height: 1.6; color: var(--ink); }
.contacto-dato a { color: var(--oxblood); }
.contacto-redes { display: flex; justify-content: center; gap: 14px; }
.contacto-redes a {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--ink); transition: all .2s ease;
}
.contacto-redes a:hover { background: var(--oxblood); border-color: var(--oxblood); color: #fff; }
@media (max-width: 700px) { .contacto-cols { grid-template-columns: 1fr; gap: 26px; } }

/* Formulario (Contact Form 7) */
.contacto-form { margin-top: 2.6rem; }
.contacto-form .cf7-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.contacto-form .cf7-field { margin: 0 0 20px; }
.contacto-form label { display: block; font-family: var(--display-caps); text-transform: uppercase; letter-spacing: .1em; font-size: .66rem; color: var(--ink-soft); font-weight: 600; }
.contacto-form input[type="text"], .contacto-form input[type="email"], .contacto-form input[type="tel"], .contacto-form textarea {
  width: 100%; margin-top: 7px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 3px;
  font-family: var(--serif-body); font-size: 1.02rem; color: var(--ink); background: #fff; transition: border-color .2s;
}
.contacto-form input:focus, .contacto-form textarea:focus { outline: none; border-color: var(--oxblood); }
.contacto-form .cf7-submit { text-align: center; margin-top: .5rem; }
.contacto-form .wpcf7-submit {
  background: var(--oxblood); color: var(--cream); border: 1px solid var(--oxblood);
  font-family: var(--display-caps); text-transform: uppercase; letter-spacing: .16em; font-size: .74rem; font-weight: 600;
  padding: 15px 40px; border-radius: 2px; cursor: pointer; transition: background .2s;
}
.contacto-form .wpcf7-submit:hover { background: var(--oxblood-deep); border-color: var(--oxblood-deep); }
.contacto-form .wpcf7-not-valid-tip { color: var(--oxblood-deep); font-size: .85rem; font-family: var(--serif-body); }
.contacto-form .wpcf7-response-output { border-radius: 3px; font-family: var(--serif-body); margin: 1.4rem 0 0; }
@media (max-width: 700px) { .contacto-form .cf7-grid { grid-template-columns: 1fr; } }

/* ===================== HEADER CENTRADO (logo arriba, menú debajo) ===================== */
.site-header--center { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 2px 16px -12px rgba(43,20,12,.5); }
.site-header--center .header-center {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 22px 28px 16px; height: auto;
}
.brand-full { display: block; line-height: 0; }
.brand-full img { height: clamp(64px, 8vw, 96px); width: auto; display: block; }
.site-header--center .main-nav { justify-content: center; flex-wrap: wrap; gap: 26px; }
.header-actions { position: absolute; top: 20px; right: 28px; display: flex; align-items: center; gap: 10px; }
@media (max-width: 900px) {
  .site-header--center .header-center { padding: 18px 20px 14px; }
  .brand-full img { height: 60px; }
  .header-actions { top: 16px; right: 16px; }
}

/* ===================== 404 ===================== */
.error-404 { text-align: center; }
.error-404-search { display: flex; gap: 10px; justify-content: center; max-width: 480px; margin: 2rem auto 1.5rem; flex-wrap: wrap; }
.error-404-search input { flex: 1; min-width: 220px; padding: 13px 16px; border: 1px solid var(--line); border-radius: 3px; font-family: var(--serif-body); font-size: 1rem; }
.error-404-search input:focus { outline: none; border-color: var(--oxblood); }
.error-404-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-top: 1rem; }
.error-404-links a { font-family: var(--display-caps); text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; color: var(--oxblood); }

/* ===================== MAPA CONTACTO ===================== */
.contacto-mapa { margin-top: 2.6rem; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 18px 40px -28px rgba(43,20,12,.5); }
.contacto-mapa iframe { width: 100%; height: 340px; border: 0; display: block; }
.contacto-mapa-link { text-align: center; margin-top: 1rem; }
/* ============================================================
   FICHA DE PRODUCTO — diseño editorial (según maqueta del cliente)
   ============================================================ */
.single-product.woocommerce .wc-wrap { background: #FBF7E9; }
.single-product.woocommerce .wc-wrap .container { max-width: 1160px; }

.single-product.woocommerce div.product {
  display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: clamp(32px, 4vw, 72px); align-items: start;
  background: none; border: 0; padding: 0; box-shadow: none;
}

/* Portada en caja sobria (sin marco 3D) */
.single-product.woocommerce div.product .woocommerce-product-gallery {
  grid-column: 1; grid-row: 1 / span 2; margin: 0 !important; width: 100% !important; float: none !important;
}
.single-product.woocommerce div.product .woocommerce-product-gallery__wrapper { margin: 0; }
.single-product.woocommerce div.product .woocommerce-product-gallery__image {
  background: #FDFAF0; border: 1px solid #E2DAC4; padding: 20px; overflow: visible;
}
.single-product.woocommerce div.product .woocommerce-product-gallery__image a::before,
.single-product.woocommerce div.product .woocommerce-product-gallery__image a::after { display: none; }
.single-product.woocommerce div.product .woocommerce-product-gallery__image img {
  border: 0 !important; border-radius: 0;
  box-shadow: 0 16px 28px -18px rgba(20,20,20,.4) !important;
  width: 100%; height: auto; display: block;
}

/* Columna de contenido, reordenada como la maqueta */
.single-product.woocommerce div.product .summary {
  grid-column: 2; grid-row: 1; margin: 0 !important; width: 100% !important; max-width: 780px;
  display: flex; flex-direction: column;
}
.single-product.woocommerce div.product .summary::before {
  content: "Memorabilia Ediciones"; order: 0; margin: 0 0 8px;
  font-family: 'Archivo', Helvetica, sans-serif; font-size: 11px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--oxblood); font-size: 10px;
}
.single-product.woocommerce div.product .product_title {
  order: 1; margin: 0; font-family: 'EB Garamond', Georgia, serif; font-weight: 500;
  font-size: clamp(21px, 2.2vw, 30px); line-height: 1.03; letter-spacing: -.02em; color: #141414;
}
.single-product.woocommerce div.product .product_title::after { display: none !important; }
.single-product.woocommerce div.product .woocommerce-product-details__short-description {
  order: 2; margin: 5px 0 0; padding: 0; border: 0;
  font-family: 'EB Garamond', Georgia, serif; font-style: normal;
  font-size: clamp(14px, 1.1vw, 16px); line-height: 1.35; color: #45423A;
}
.single-product.woocommerce div.product p.price {
  order: 3; margin: 14px 0 0; padding: 10px 0;
  border-top: 1px solid var(--oxblood); border-bottom: 1px solid #E2DAC4;
  color: #141414; font-family: 'Archivo', Helvetica, sans-serif; font-weight: 600;
  font-size: clamp(18px, 1.5vw, 22px); letter-spacing: -.02em;
  display: flex; align-items: baseline; gap: 14px;
}
.single-product.woocommerce div.product p.price::after {
  content: "IVA incluido"; font-family: 'Archivo', Helvetica, sans-serif; font-weight: 400;
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #6E6A5E;
}
.single-product.woocommerce div.product form.cart {
  order: 4; margin: 14px 0 0; display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap;
}
.single-product.woocommerce div.product form.cart .quantity { display: flex; margin: 0; }
.single-product.woocommerce .quantity .qty {
  height: 40px; width: 64px; border: 1px solid #D9D2BC; background: #FDFAF0; border-radius: 0;
  font-family: 'Archivo', Helvetica, sans-serif; font-size: 17px; color: #141414; text-align: center;
}
.single-product.woocommerce div.product form.cart .button {
  flex: 1 1 200px; min-height: 40px; padding: 0 22px; border: 0 !important; border-radius: 0;
  background: var(--oxblood) !important; color: #FFFDF6 !important;
  font-family: 'Archivo', Helvetica, sans-serif; font-weight: 500; font-size: 14px;
  letter-spacing: .13em; text-transform: uppercase; cursor: pointer; transition: opacity .2s; font-size: 12px;
}
.single-product.woocommerce div.product form.cart .button:hover { opacity: .86; }
.single-product.woocommerce div.product form.cart::after {
  content: "Despacho a todo Chile en 3 a 5 días hábiles."; order: 5; flex: 1 0 100%;
  margin: 6px 0 0; font-family: 'Archivo', Helvetica, sans-serif; font-size: 12px; color: #6E6A5E;
}
.single-product.woocommerce div.product .product_meta {
  order: 6; margin: 12px 0 0; padding: 9px 0 0; border-top: 1px solid #E2DAC4;
  font-family: 'Archivo', Helvetica, sans-serif; font-size: 12px; letter-spacing: .08em;
  text-transform: uppercase; color: #6E6A5E;
}
.single-product.woocommerce div.product .product_meta a { color: var(--oxblood); }

/* Descripción + ficha técnica (sin pestañas), en la columna derecha */
.single-product.woocommerce div.product .woocommerce-tabs { grid-column: 2; grid-row: 2; margin: 18px 0 0; }
.single-product.woocommerce div.product .woocommerce-tabs ul.tabs { display: none; }
.single-product.woocommerce div.product .woocommerce-tabs .panel { display: block !important; margin: 0; padding: 0; }
.single-product.woocommerce div.product .woocommerce-Tabs-panel--reviews,
.single-product.woocommerce div.product #tab-reviews { display: none !important; }
.single-product.woocommerce div.product .woocommerce-Tabs-panel h2 { display: none; }
.single-product.woocommerce div.product .woocommerce-Tabs-panel--description {
  font-family: 'EB Garamond', Georgia, serif; font-size: 17px; line-height: 1.55; color: #141414;
}
.single-product.woocommerce div.product .woocommerce-Tabs-panel--description p { text-align: justify; margin: 0 0 18px; }

/* Ficha técnica = atributos del producto (Autor, Colección, Formato, Páginas, ISBN) */
.single-product.woocommerce table.shop_attributes {
  width: 100%; margin: 30px 0 0; border: 0; border-top: 1px solid #E2DAC4; border-collapse: collapse;
  font-family: 'Archivo', Helvetica, sans-serif; font-size: 13px;
}
.single-product.woocommerce table.shop_attributes th,
.single-product.woocommerce table.shop_attributes td {
  padding: 13px 0; border: 0; border-bottom: 1px solid #E2DAC4; background: none !important; text-align: left;
}
.single-product.woocommerce table.shop_attributes th {
  width: 150px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: #6E6A5E; font-style: normal;
}
.single-product.woocommerce table.shop_attributes td, .single-product.woocommerce table.shop_attributes td p { color: #141414; margin: 0; }

@media (max-width: 900px) {
  .single-product.woocommerce div.product { grid-template-columns: 1fr; }
  .single-product.woocommerce div.product .woocommerce-product-gallery,
  .single-product.woocommerce div.product .summary,
  .single-product.woocommerce div.product .woocommerce-tabs { grid-column: 1; grid-row: auto; }
  .single-product.woocommerce div.product .woocommerce-product-gallery { max-width: 320px; }
}

/* Stock: ocultar el conteo "N disponibles" (como la maqueta); mostrar solo "Agotado" */
.single-product.woocommerce div.product .summary .stock.in-stock { display: none; }
.single-product.woocommerce div.product .summary .stock.out-of-stock {
  order: 3; margin: 8px 0 0; font-family: 'Archivo', Helvetica, sans-serif;
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--oxblood); font-weight: 600;
}

/* Meta (SKU/categoría) compacto */
.single-product.woocommerce div.product .product_meta > span { display: block; margin: 0 0 5px; line-height: 1.4; }
.single-product.woocommerce div.product form.cart::after { margin: 4px 0 0; }

/* Quitar eyebrow "Memorabilia Ediciones" y nota de despacho */
.single-product.woocommerce div.product .summary::before { display: none !important; content: none !important; }
.single-product.woocommerce div.product form.cart::after { display: none !important; content: none !important; }

/* ===== Botón a media caña + ficha (ISBN/Categoría) compartiendo el mismo plano ===== */
.single-product.woocommerce div.product .summary {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 240px);
  column-gap: 36px; align-content: start;
}
.single-product.woocommerce div.product .summary > * { grid-column: 1 / -1; }
.single-product.woocommerce div.product form.cart { grid-column: 1; align-self: center; margin-top: 18px; }
.single-product.woocommerce div.product .product_meta {
  grid-column: 2; align-self: center; margin: 18px 0 0; padding: 0; border: 0;
}
/* Relabel SKU -> ISBN */
.single-product.woocommerce div.product .product_meta .sku_wrapper { font-size: 0; }
.single-product.woocommerce div.product .product_meta .sku_wrapper::before { content: "ISBN: "; font-size: 12px; }
.single-product.woocommerce div.product .product_meta .sku { font-size: 12px; }
/* En móvil vuelve a una columna */
@media (max-width: 640px) {
  .single-product.woocommerce div.product .summary { grid-template-columns: 1fr; }
  .single-product.woocommerce div.product .product_meta { grid-column: 1; margin-top: 14px; }
}

/* Opción B: ocultar la línea de ISBN/SKU de arriba (queda solo Categoría) */
.single-product.woocommerce div.product .product_meta .sku_wrapper { display: none !important; }

/* ===== Newsletter band (MC4WP) ===== */
.nl-band { background: var(--cream); border-top: 1px solid var(--cream-deep); padding: clamp(48px,7vw,88px) 0; }
.nl-inner { max-width: 720px; margin: 0 auto; text-align: center; }
.nl-title { font-family: var(--serif-display); font-weight: 600; font-size: clamp(1.9rem,4vw,2.8rem); line-height: 1.1; color: var(--oxblood-deep); margin: 0 0 .6rem; }
.nl-sub { font-family: var(--serif-body); font-size: 1.05rem; color: var(--ink-soft); margin: 0 auto 1.8rem; max-width: 46ch; }
.nl-form .mc4wp-form { margin: 0; }
.nl-fields { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.nl-fields input[type=email] { flex: 1 1 320px; max-width: 420px; padding: 14px 16px; font-family: var(--serif-body); font-size: 1rem; border: 1px solid #cfc7b4; border-radius: 4px; background: #fff; color: var(--ink); }
.nl-fields input[type=email]:focus { outline: none; border-color: var(--oxblood); }
.nl-fields input[type=submit] { padding: 14px 28px; background: var(--ink); color: #fff; border: 0; border-radius: 4px; font-family: var(--display-caps); text-transform: uppercase; letter-spacing: .12em; font-size: .82rem; cursor: pointer; transition: background .2s; }
.nl-fields input[type=submit]:hover { background: var(--oxblood); }
.nl-form .mc4wp-response { margin-top: 12px; font-family: var(--serif-body); color: var(--ink-soft); }
@media (max-width:520px){ .nl-fields input[type=submit]{ flex:1 1 100%; } }

/* Consentimiento (datos) */
.nl-consent { display: flex; align-items: flex-start; gap: 8px; justify-content: center; max-width: 48ch; margin: 14px auto 0; font-family: var(--serif-body); font-size: .85rem; line-height: 1.4; color: var(--ink-soft); text-align: left; }
.nl-consent input[type=checkbox] { margin-top: 3px; flex: 0 0 auto; }
.nl-consent a { color: var(--oxblood); text-decoration: underline; }

/* Nota de datos bajo el formulario */
.nl-note { margin: 14px auto 0; max-width: 46ch; font-family: var(--serif-body); font-size: .82rem; line-height: 1.4; color: var(--ink-soft); text-align: center; }
