/* ============================================================
   CAPO EDICIONES — styles.css  v20260526h
   Archetype: Editorial Light (blue brand adaptation)
   ============================================================ */

/* ── 0. Reset & tokens ──────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:       #2347A5;
  --blue-dark:  #16327A;
  --blue-mid:   #2E5BBF;
  --blue-light: #4B7BDB;
  --blue-pale:  #E8EEF9;
  --blue-ultra: #F2F5FD;
  --cream:      #FAFAF7;
  --ink:        #1A1C22;
  --ink-soft:   #3A3D4A;
  --ink-mute:   #6B6F80;
  --white:      #FFFFFF;
  --line:       rgba(35,71,165,.13);
  --radius-sm:  10px;
  --radius-md:  18px;
  --radius-lg:  28px;
  --shadow-sm:  0 2px 12px rgba(35,71,165,.10);
  --shadow-md:  0 8px 36px rgba(35,71,165,.14);
  --shadow-lg:  0 20px 64px rgba(35,71,165,.18);
  --nav-h:      72px;
  --topbar-h:   38px;
  --ease-out:   cubic-bezier(.22,.61,.36,1);
  --ease-bounce:cubic-bezier(.34,1.56,.64,1);
  --font-body:  'Inter', system-ui, sans-serif;
  --font-serif: 'Fraunces', Georgia, serif;
}

html {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  scroll-behavior: smooth;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
body { overflow-x: clip; }

img { display: block; max-width: 100%; height: auto; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }
button { cursor: pointer; font: inherit; border: none; background: none; }

/* ── 1. Splash ──────────────────────────────────────────── */
.splash {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--blue);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 1rem;
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
  animation: splashSafety .01s 4.5s forwards;
}
.splash.is-out { opacity: 0; pointer-events: none; transform: scale(1.04); }
@keyframes splashSafety { to { opacity: 0; visibility: hidden; } }
.splash-logo { width: 160px; animation: splashPulse 1.8s ease-in-out infinite alternate; }
@keyframes splashPulse { from { opacity: .7; transform: scale(.97); } to { opacity: 1; transform: scale(1.03); } }
.splash-bar {
  width: 120px; height: 3px; background: rgba(255,255,255,.25); border-radius: 99px; overflow: hidden;
}
.splash-fill {
  height: 100%; width: 0; background: var(--white); border-radius: 99px;
  animation: splashLoad 2.2s var(--ease-out) forwards;
}
@keyframes splashLoad { to { width: 100%; } }

/* ── 1b. Topbar de contacto ─────────────────────────────── */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 600;
  height: var(--topbar-h);
  background: #1c2333;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(1rem, 4vw, 3rem);
  gap: 1.5rem;
  font-size: .72rem; color: rgba(255,255,255,.65);
}
.topbar-contact {
  display: flex; align-items: center; gap: 1.5rem; flex: 1; min-width: 0;
}
.topbar-item {
  display: inline-flex; align-items: center; gap: .4rem;
  color: rgba(255,255,255,.65); text-decoration: none; white-space: nowrap;
  transition: color .2s;
}
a.topbar-item:hover { color: #fff; }
.topbar-item .icon-svg   { width: .85rem; height: .85rem; flex-shrink: 0; color: rgba(255,255,255,.4); }
.topbar-social {
  display: flex; align-items: center; gap: .65rem; flex-shrink: 0;
}
.topbar-social a {
  display: flex; align-items: center; color: rgba(255,255,255,.5);
  text-decoration: none; transition: color .2s;
}
.topbar-social a:hover   { color: #fff; }
.topbar-social .icon-svg { width: 1rem; height: 1rem; color: inherit; }

/* ── 2. Nav ─────────────────────────────────────────────── */
.nav {
  position: fixed; top: var(--topbar-h); left: 0; right: 0; z-index: 500;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line), 0 4px 24px rgba(35,71,165,.08);
  transition: background .35s, box-shadow .35s;
}
.nav.scrolled {
  background: rgba(255,255,255,.97);
  box-shadow: 0 1px 0 var(--line), 0 4px 24px rgba(35,71,165,.08);
}
.nav-logo { height: 42px; width: auto; }
.nav-logo-white { display: none; }
.nav-logo-blue  { display: block; }
.nav-links {
  display: flex; align-items: center; gap: 2rem;
}
.nav-links a {
  font-size: .9rem; font-weight: 500; letter-spacing: .02em;
  color: var(--ink-soft); opacity: 1;
  transition: opacity .2s, color .2s;
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -3px; left: 0; right: 0;
  height: 2px; background: currentColor; border-radius: 99px;
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s var(--ease-out);
}
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a:hover { opacity: 1; color: var(--blue); }
.nav-links .btn-nav {
  padding: .5rem 1.25rem; border-radius: 99px;
  background: var(--blue); color: var(--white) !important;
  font-size: .85rem; font-weight: 600;
  transition: background .2s, transform .2s;
}
.nav-links .btn-nav:hover { background: var(--blue-dark); transform: translateY(-1px); color: var(--white) !important; }
.nav-links .btn-nav::after { display: none; }
.nav-mobile-toggle {
  display: none; flex-direction: column; gap: 5px;
  width: 28px; cursor: pointer; padding: 4px;
}
.nav-mobile-toggle span {
  display: block; height: 2px; background: var(--blue); border-radius: 2px;
  transition: transform .3s, opacity .3s, background .3s;
}
.nav-mobile-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-mobile-toggle.open span:nth-child(2) { opacity: 0; }
.nav-mobile-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-drawer {
  position: fixed; top: calc(var(--nav-h) + var(--topbar-h)); left: 0; right: 0;
  background: var(--white); box-shadow: var(--shadow-md);
  padding: 1.5rem 2rem 2rem; z-index: 499;
  display: flex; flex-direction: column; gap: .5rem;
  transform: translateY(-110%); transition: transform .35s var(--ease-out);
}
.nav-drawer.open { transform: translateY(0); }
.nav-drawer a {
  padding: .75rem 0; border-bottom: 1px solid var(--line);
  color: var(--ink-soft); font-weight: 500;
}

/* Submenu mobile del drawer (Recursos: El Escritorio) */
.drawer-has-sub { display: flex; flex-direction: column; }
.drawer-sub-toggle {
  display: flex; align-items: center; justify-content: space-between;
  padding: .75rem 0; border-bottom: 1px solid var(--line);
  color: var(--ink-soft); font-weight: 500; font-size: .95rem;
  background: none; border-top: none; border-left: none; border-right: none;
  cursor: pointer; text-align: left; width: 100%;
  transition: color .2s;
}
.drawer-sub-toggle:hover { color: var(--blue); }
.drawer-sub-chevron {
  flex-shrink: 0; transition: transform .25s var(--ease-out);
}
.drawer-has-sub.open .drawer-sub-chevron { transform: rotate(180deg); }
.drawer-sub-panel {
  display: none; flex-direction: column; gap: .1rem;
  padding-left: 1rem;
}
.drawer-has-sub.open .drawer-sub-panel { display: flex; }
.drawer-sub-link {
  display: block; padding: .6rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--blue); font-weight: 600; font-size: .9rem;
}
.drawer-sub-disabled {
  display: flex; align-items: center; gap: .5rem;
  padding: .6rem 0; border-bottom: 1px solid var(--line);
  color: var(--ink-mute); font-size: .9rem; font-weight: 500;
}
.drawer-sub-badge {
  font-size: .6rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .07em; background: var(--blue-pale); color: var(--blue);
  padding: .1rem .4rem; border-radius: 4px; white-space: nowrap;
}

/* ── Nav Dropdown (El Escritorio) ────────────────────────── */
.nav-has-dropdown { position: relative; }
.nav-dropdown-toggle {
  display: inline-flex; align-items: center; gap: .3rem;
  background: none; border: none; padding: 0; cursor: pointer;
  font-size: .9rem; font-weight: 500; letter-spacing: .02em;
  color: var(--ink-soft); transition: color .2s; line-height: 1;
}
.nav-dropdown-toggle:hover { color: var(--blue); }
.nav-dropdown-toggle svg { transition: transform .2s; flex-shrink: 0; }
.nav-has-dropdown.open .nav-dropdown-toggle svg { transform: rotate(180deg); }
.nav-dropdown-panel {
  position: absolute; top: calc(100% + .9rem); left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 32px rgba(35,71,165,.12), 0 2px 8px rgba(0,0,0,.06);
  min-width: 252px; padding: .4rem;
  opacity: 0; pointer-events: none;
  transition: opacity .18s, transform .18s;
  z-index: 600;
}
@media (hover: hover) and (pointer: fine) {
  /* Puente invisible que cubre el gap entre el toggle y el panel
     para que el :hover no se interrumpa al mover el cursor */
  .nav-has-dropdown::after {
    content: '';
    position: absolute;
    bottom: -.95rem;        /* cubre el gap de calc(100% + .9rem) */
    left: -1rem; right: -1rem;
    height: 1rem;
  }
  .nav-has-dropdown:hover .nav-dropdown-panel {
    opacity: 1; pointer-events: all;
    transform: translateX(-50%) translateY(0);
  }
  /* Chevron rota en hover igual que en click */
  .nav-has-dropdown:hover .nav-dropdown-toggle svg { transform: rotate(180deg); }
}
.nav-has-dropdown.open .nav-dropdown-panel {
  opacity: 1; pointer-events: all;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-link {
  display: flex; align-items: center; gap: .75rem;
  padding: .7rem .85rem; border-radius: var(--radius-sm);
  text-decoration: none; cursor: pointer; width: 100%;
  transition: background .15s;
}
.nav-dropdown-link:hover { background: var(--blue-ultra); }
.nav-dropdown-link-icon {
  width: 36px; height: 36px; border-radius: 8px; flex-shrink: 0;
  background: var(--blue-ultra); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.05rem;
}
.nav-dropdown-link-text strong {
  display: block; font-size: .85rem; font-weight: 600; color: var(--ink); margin-bottom: .1rem;
}
.nav-dropdown-link-text span { font-size: .73rem; color: var(--ink-mute); }
.nav-dropdown-soon { opacity: .45; pointer-events: none; cursor: default; }
.nav-dropdown-badge {
  display: inline-block; vertical-align: middle; margin-left: .35rem;
  font-size: .58rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em;
  background: var(--blue-ultra); color: var(--blue);
  padding: .1rem .38rem; border-radius: 4px;
}

/* ── 3. Hero ─────────────────────────────────────────────── */
.hero {
  min-height: 100svh;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  background: var(--blue-dark);
}
.hero-bg {
  position: absolute; inset: 0;
}
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: center top;
  opacity: .55;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(22,50,122,.82) 0%, rgba(35,71,165,.65) 60%, rgba(75,123,219,.3) 100%);
}
.hero-grain {
  position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  mix-blend-mode: overlay; opacity: .5;
}
.hero-content {
  position: relative; z-index: 2;
  text-align: center;
  max-width: 820px;
  padding: 0 2rem;
  padding-top: calc(var(--nav-h) + var(--topbar-h));
  padding-bottom: 5.5rem;
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,.12); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 99px; padding: .35rem 1rem;
  color: rgba(255,255,255,.85); font-size: .8rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1.5rem;
}
.hero-kicker .dot { width: 6px; height: 6px; border-radius: 50%; background: #7BDFB0; }
.hero-logo { width: 120px; display: block; margin: 1.75rem auto 1.25rem; }
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 600; line-height: 1.1;
  color: var(--white); margin-bottom: 1.25rem;
  text-wrap: balance;
}
.hero-title em { font-style: italic; color: #A8C4F4; }
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,.78); max-width: 56ch; margin: 0 auto 2.5rem;
  line-height: 1.65;
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--white); color: var(--blue-dark);
  font-weight: 700; font-size: .95rem;
  padding: .85rem 2rem; border-radius: 99px;
  transition: transform .2s var(--ease-bounce), box-shadow .2s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,.12); color: var(--white);
  border: 1.5px solid rgba(255,255,255,.35);
  font-weight: 600; font-size: .95rem;
  padding: .85rem 2rem; border-radius: 99px;
  backdrop-filter: blur(8px);
  transition: background .2s, transform .2s;
}
.btn-ghost:hover { background: rgba(255,255,255,.22); transform: translateY(-2px); }
.hero-scroll {
  position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  color: rgba(255,255,255,.5); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase;
  animation: bounce 2.4s ease-in-out infinite;
}
.hero-scroll svg { opacity: .5; }
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ── 4. Stats bar ────────────────────────────────────────── */
.stats-bar {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  padding: 2.5rem clamp(1.5rem, 6vw, 5rem);
}
.stats-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem; align-items: center;
}
.stat-item { text-align: center; }
.stat-num {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 700;
  color: var(--blue); line-height: 1; margin-bottom: .3rem;
}
.stat-label { font-size: .8rem; color: var(--ink-mute); font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }
.stat-divider {
  width: 1px; height: 56px; background: var(--line);
  justify-self: center; display: none;
}

/* ── 5. Section commons ──────────────────────────────────── */
.section { padding: clamp(4rem, 8vw, 7rem) clamp(1.5rem, 6vw, 5rem); }
.section-inner { max-width: 1140px; margin: 0 auto; }
.section-eyebrow {
  display: inline-block; font-size: .75rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue); margin-bottom: .9rem;
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 600;
  line-height: 1.18; color: var(--ink);
  text-wrap: balance; margin-bottom: 1rem;
}
.section-title em { font-style: italic; color: var(--blue-mid); }
.about-title .title-blue { color: var(--blue); }
.about-title em { color: var(--ink); }
.section-sub {
  font-size: 1.05rem; color: var(--ink-mute); line-height: 1.7;
  max-width: 62ch; margin-bottom: 2.5rem; text-wrap: pretty;
}
.tag-grid { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2rem; }
.tag {
  padding: .35rem .9rem; border-radius: 99px;
  background: var(--blue-pale); color: var(--blue-dark);
  font-size: .78rem; font-weight: 600; letter-spacing: .04em;
  display: inline-flex; align-items: center; gap: .35rem;
  cursor: pointer; text-decoration: none; transition: background .2s, box-shadow .2s, transform .15s;
}
.tag:hover { background: #d0d9ec; box-shadow: 0 2px 8px rgba(35,71,165,.18); transform: translateY(-1px); }
.tag .icon-svg { width: 13px; height: 13px; flex-shrink: 0; }

/* ── 6. About / La Editorial ─────────────────────────────── */
.about-section { background: var(--cream); }
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem); align-items: center;
}
.about-image-wrap {
  position: relative; border-radius: var(--radius-lg); overflow: visible;
  aspect-ratio: 4/5; box-shadow: var(--shadow-lg);
}
.about-image-wrap img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-lg); }
.about-slider { position: relative; width: 100%; height: 100%; border-radius: var(--radius-lg); overflow: hidden; }
.about-slide {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.2s ease;
}
.about-slide.active { opacity: 1; }
.about-slider-dots {
  position: absolute; bottom: 1.1rem; left: 50%; transform: translateX(-50%);
  display: flex; gap: .4rem; z-index: 2;
}
.about-slider-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,.5); border: none; padding: 0; cursor: pointer;
  transition: background .2s, transform .2s;
}
.about-slider-dot.active { background: #fff; transform: scale(1.35); }
.about-badge {
  position: absolute; bottom: -1.5rem; right: -1.5rem;
  width: 130px; height: 130px;
  background: var(--blue); border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--white); text-align: center;
  box-shadow: var(--shadow-md);
}
.about-badge .num { font-family: var(--font-serif); font-size: 2.2rem; font-weight: 700; line-height: 1; }
.about-badge .lbl { font-size: .65rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; opacity: .85; max-width: 8ch; text-align: center; }
.about-cta { margin-top: 2rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-blue {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--blue); color: var(--white);
  font-weight: 600; font-size: .9rem;
  padding: .8rem 1.75rem; border-radius: 99px;
  transition: background .2s, transform .2s var(--ease-bounce);
}
.btn-blue:hover { background: var(--blue-dark); transform: translateY(-2px); }
.btn-outline {
  display: inline-flex; align-items: center; gap: .5rem;
  border: 1.5px solid var(--blue); color: var(--blue);
  font-weight: 600; font-size: .9rem;
  padding: .8rem 1.75rem; border-radius: 99px;
  transition: background .2s, transform .2s;
}
.btn-outline:hover { background: var(--blue-pale); transform: translateY(-2px); }

/* ── 7. Services (Letrame-style icon cards) ──────────────── */
.services-section { background: var(--white); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.service-card {
  background: var(--cream);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  display: flex; flex-direction: column; gap: 1rem;
  transition: transform .25s var(--ease-bounce), box-shadow .25s, border-color .25s;
  position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute;
  inset: 0; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--blue-pale) 0%, transparent 60%);
  opacity: 0; transition: opacity .3s;
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--blue-light); }
.service-card:hover::before { opacity: 1; }
.service-icon {
  width: 64px; height: 64px; border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; position: relative; z-index: 1;
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
  flex-shrink: 0;
}
.service-icon.icon-print    { background: linear-gradient(135deg, #E8F4FF, #BDD9FF); }
.service-icon.icon-editorial{ background: linear-gradient(135deg, #FFF3E8, #FFD4A8); }
.service-icon.icon-portada  { background: linear-gradient(135deg, #F0E8FF, #D4AAFF); }
.service-icon.icon-digital  { background: linear-gradient(135deg, #E8FFF3, #A8FFD4); }
.service-icon.icon-store    { background: linear-gradient(135deg, #FFF8E8, #FFE4A8); }
.service-icon.icon-asesor      { background: linear-gradient(135deg, #FFE8F0, #FFAAC8); }
.service-icon.icon-marketing   { background: linear-gradient(135deg, #E8F8FF, #A8DFFF); }
.service-icon.icon-lanzamiento { background: linear-gradient(135deg, #FFF0E8, #FFB4A0); }
.service-title {
  font-family: var(--font-serif); font-size: 1.25rem; font-weight: 600;
  color: var(--ink); position: relative; z-index: 1;
}
.service-desc {
  font-size: .9rem; color: var(--ink-mute); line-height: 1.65;
  position: relative; z-index: 1;
}
.service-link {
  display: inline-flex; align-items: center; gap: .35rem;
  color: var(--blue); font-size: .85rem; font-weight: 600;
  margin-top: auto; position: relative; z-index: 1;
  transition: gap .2s;
}
.service-link:hover { gap: .6rem; }

/* ── 8. Process steps (Cómo publico) ─────────────────────── */
.process-section { background: var(--blue-ultra); }
.process-steps {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 2rem; counter-reset: steps;
}
.process-step {
  position: relative;
  background: var(--white); border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-sm);
  counter-increment: steps;
}
.process-step::before {
  content: counter(steps, decimal-leading-zero);
  position: absolute; top: 1.5rem; right: 1.75rem;
  font-family: var(--font-serif); font-size: 3rem; font-weight: 700;
  color: var(--blue-pale); line-height: 1;
}
.process-icon {
  font-size: 2.4rem; margin-bottom: 1rem; display: block;
}
.process-step h3 {
  font-family: var(--font-serif); font-size: 1.15rem; font-weight: 600;
  color: var(--ink); margin-bottom: .5rem;
}
.process-step p { font-size: .88rem; color: var(--ink-mute); line-height: 1.6; }
.conf-badge {
  position: absolute; bottom: 1.1rem; right: 1.1rem;
  display: inline-flex; align-items: center; gap: .3rem;
  background: var(--blue-pale); color: var(--blue);
  border-radius: 99px; padding: .28rem .65rem;
  font-size: .68rem; font-weight: 700; letter-spacing: .03em;
  text-transform: uppercase; white-space: nowrap;
  box-shadow: 0 0 0 1.5px rgba(35,71,165,.15);
  user-select: none;
}
.conf-badge svg { width: .85rem; height: .85rem; flex-shrink: 0; }

/* ── 9. Bookstore preview ────────────────────────────────── */
.store-section { background: var(--cream); }
.store-cats {
  display: flex; flex-wrap: wrap; gap: .75rem;
  margin-bottom: 2.5rem;
}
.cat-pill {
  padding: .45rem 1.25rem; border-radius: 99px;
  font-size: .82rem; font-weight: 600; letter-spacing: .02em;
  border: 1.5px solid var(--line);
  background: var(--white); color: var(--ink-soft);
  cursor: pointer; transition: all .2s;
}
.cat-pill:hover, .cat-pill.active {
  background: var(--blue); color: var(--white); border-color: var(--blue);
}
.cat-pill:hover .icon-svg,
.cat-pill.active .icon-svg {
  color: var(--white);
}
.books-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 640px) {
  .books-grid { grid-template-columns: repeat(2, 1fr); }
}
.book-card {
  background: var(--white); border-radius: var(--radius-md);
  overflow: hidden; box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  transition: transform .25s var(--ease-bounce), box-shadow .25s;
  display: flex; flex-direction: column;
}
.book-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.book-cover {
  aspect-ratio: 5/7; background: var(--blue-pale);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative; cursor: pointer;
}
.book-cover:focus-visible { outline: 2.5px solid var(--blue); outline-offset: 2px; }
.book-cover img { width: 100%; height: 100%; object-fit: cover; }
.book-cover-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 1.5rem; text-align: center; height: 100%; width: 100%;
}
.book-cover-placeholder .icon { font-size: 2.5rem; margin-bottom: .75rem; opacity: .5; }
.book-cover-placeholder .title {
  font-family: var(--font-serif); font-size: .9rem; font-weight: 600;
  color: var(--blue-dark); line-height: 1.3;
}
.book-cover-placeholder .author { font-size: .75rem; color: var(--ink-mute); margin-top: .4rem; }
.book-info { padding: 1rem; flex: 1; display: flex; flex-direction: column; gap: .3rem; }
.book-cat {
  font-size: .68rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--blue);
}
.book-title {
  font-family: var(--font-serif); font-size: .95rem; font-weight: 600;
  color: var(--ink); line-height: 1.3;
}
.book-author { font-size: .78rem; color: var(--ink-mute); }
.book-price {
  font-size: 1rem; font-weight: 800; color: var(--blue);
  margin-top: .5rem; letter-spacing: -.01em;
}
.book-actions {
  display: flex; gap: .5rem; margin-top: .75rem; flex-wrap: nowrap;
}
.btn-cart {
  flex: 1; display: inline-flex; align-items: center; justify-content: center;
  gap: .35rem; padding: .55rem .75rem;
  background: var(--blue); color: var(--white);
  border-radius: var(--radius-sm); font-size: .78rem; font-weight: 600;
  transition: background .2s, transform .15s;
  border: none; cursor: pointer; text-align: center;
  white-space: nowrap; overflow: hidden; min-width: 0;
}
.btn-cart:hover { background: var(--blue-dark); transform: translateY(-1px); }
.btn-more {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .55rem .75rem;
  background: transparent; color: var(--blue);
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-size: .78rem; font-weight: 600;
  transition: border-color .2s, background .2s;
  white-space: nowrap; flex-shrink: 0;
}
.btn-more:hover { border-color: var(--blue); background: var(--blue-pale); }
.store-cta { text-align: center; margin-top: 3rem; }

/* ── Instagram pre-footer ─────────────────────────────────── */
.insta-section {
  background: var(--white);
  border-top: 1.5px solid var(--line);
  padding: 3.5rem clamp(1rem,4vw,3rem);
  text-align: center;
}
.insta-section .section-eyebrow { margin-bottom: .75rem; }
.insta-section h2 {
  font-family: var(--font-serif); font-size: clamp(1.4rem,3vw,2rem);
  font-weight: 600; color: var(--ink); margin-bottom: .5rem;
}
.insta-section p {
  color: var(--ink-mute); font-size: .95rem; max-width: 52ch; margin: 0 auto 2rem;
}
.insta-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  max-width: 1100px;
  margin: 0 auto 2rem;
}
.insta-post {
  /* 4:5 portrait ratio — optimal for Instagram feed posts */
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-sm); overflow: hidden;
  position: relative;
  transition: transform .25s var(--ease-bounce), box-shadow .25s;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.insta-post:hover { transform: translateY(-4px) scale(1.02); box-shadow: var(--shadow-md); }
.insta-post > a {
  display: block; width: 100%; height: 100%; position: relative;
}
/* Real image when available */
.insta-post img.insta-img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
}
/* Overlay for play icon on video posts */
.insta-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 40px; height: 40px;
  background: rgba(255,255,255,.85); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; pointer-events: none;
}
/* Styled placeholder cards — mimics actual post design */
.insta-card {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: .75rem; position: relative;
  overflow: hidden;
}
.insta-card .ic-title {
  font-family: var(--font-serif); font-weight: 700; line-height: 1.2;
  font-size: clamp(.6rem, 1.1vw, .95rem); text-align: center;
}
.insta-card .ic-sub {
  font-size: clamp(.5rem, .9vw, .75rem); margin-top: .4rem;
  text-align: center; opacity: .8; line-height: 1.3;
}
.insta-card .ic-badge {
  position: absolute; bottom: .6rem; right: .6rem;
  font-size: clamp(.45rem,.75vw,.65rem); font-weight: 800;
  background: var(--blue); color: #fff;
  border-radius: 4px; padding: .15rem .4rem; letter-spacing: .04em;
  text-transform: uppercase;
}
/* Card themes */
.ic-dark  { background: #1a1c22; color: #fff; }
.ic-blue  { background: var(--blue); color: #fff; }
.ic-white { background: #ffffff; color: var(--ink); border: 1px solid var(--line); }
.ic-photo { background: linear-gradient(160deg,#2a3a5c 0%,#1a1c22 100%); color: #fff; }
.ic-warm  { background: linear-gradient(160deg,#c8a96e 0%,#8c6a3f 100%); color: #fff; }
.ic-book  { background: #12294a; color: #fff; }

.insta-handle {
  display: inline-flex; align-items: center; gap: .5rem;
  margin-top: 2rem;
  font-size: .9rem; font-weight: 600; color: var(--blue);
  border: 2px solid var(--blue); border-radius: 99px;
  padding: .55rem 1.4rem; transition: background .2s, color .2s;
}
.insta-handle:hover { background: var(--blue); color: var(--white); }

/* ── Blog preview (index.html) ───────────────────────────────── */
.blog-preview-section { background: var(--blue-ultra); border-top: 1.5px solid var(--line); text-align: center; }
.blog-preview-section .section-sub { margin-left: auto; margin-right: auto; }
.blog-preview-section .blog-featured {
  text-align: left; max-width: 900px; margin: 2.5rem auto 0;
}
.blog-preview-section .blog-grid {
  max-width: 900px; margin: 2rem auto 0;
  grid-template-columns: repeat(2, 1fr); text-align: left;
}
@media (max-width: 700px) {
  .blog-preview-section .blog-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .insta-grid { grid-template-columns: repeat(3, 1fr); }
  .topbar-hours { display: none; }  /* libera espacio en tablets */
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .process-step { padding-bottom: 3rem; } /* espacio para badge absoluto */
}
@media (max-width: 500px) {
  .insta-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
}

/* ── 10. Testimonials ────────────────────────────────────── */
.testimonials-section { background: var(--blue); overflow: hidden; }
.testimonials-section .section-eyebrow { color: rgba(255,255,255,.85); }
.testimonials-section .section-title { color: var(--white); }
.testimonials-section .section-sub { color: rgba(255,255,255,.7); }
.google-badge {
  display: inline-flex; align-items: center; gap: .6rem;
  background: rgba(255,255,255,.12); border-radius: 99px;
  padding: .4rem 1rem; margin-bottom: 1.5rem;
  color: rgba(255,255,255,.8); font-size: .8rem; font-weight: 500;
  text-decoration: none; transition: background .2s, transform .2s;
}
.google-badge:hover { background: rgba(255,255,255,.22); transform: translateY(-1px); }
.stars-avg { font-size: 1.4rem; color: #FFD700; letter-spacing: -.05em; }
.testi-slider { position: relative; overflow: hidden; }
.testi-track {
  display: flex; gap: 1.5rem;
  transition: transform .45s var(--ease-out);
}
.testi-card {
  min-width: 360px; max-width: 360px;
  background: rgba(255,255,255,.10); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-lg); padding: 2rem;
  flex-shrink: 0;
}
.testi-stars { color: #FFD700; font-size: 1rem; margin-bottom: 1rem; letter-spacing: .05em; }
.testi-quote {
  font-size: .95rem; line-height: 1.7;
  color: rgba(255,255,255,.88); margin-bottom: 1.5rem;
  font-style: italic;
}
.testi-author { display: flex; align-items: center; gap: .75rem; }
.testi-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 700; color: var(--white);
  flex-shrink: 0; overflow: hidden;
}
.testi-avatar img { width: 100%; height: 100%; object-fit: cover; }
.testi-name { font-weight: 600; color: var(--white); font-size: .9rem; }
.testi-via  { font-size: .75rem; color: rgba(255,255,255,.8); }
.testi-controls {
  display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 2rem;
}
.testi-btn {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.2);
  color: var(--white); font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .2s;
}
.testi-btn:hover { background: rgba(255,255,255,.28); }
.testi-dots { display: flex; gap: .5rem; }
.testi-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,.3); cursor: pointer; transition: background .2s, transform .2s;
  position: relative;
}
.testi-dot::before {
  content: ''; position: absolute;
  top: -10px; right: -10px; bottom: -10px; left: -10px;
}
.testi-dot.active { background: var(--white); transform: scale(1.3); }

/* ── 11. Team ────────────────────────────────────────────── */
.team-section { background: var(--white); }
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1.75rem;
}
/* Desktop only: 3 por fila, últimos 2 centrados automáticamente */
@media (min-width: 769px) {
  .team-grid {
    display: flex; flex-wrap: wrap; justify-content: center;
  }
  .team-grid .team-card {
    flex: 0 0 calc((100% - 3.5rem) / 3);
    max-width: calc((100% - 3.5rem) / 3);
  }
}
.team-card {
  text-align: center;
  transition: transform .25s var(--ease-bounce);
}
.team-card:hover { transform: translateY(-4px); }
.team-photo-wrap {
  width: 100%; aspect-ratio: 3/4;
  border-radius: var(--radius-lg); overflow: hidden;
  margin-bottom: 1rem; position: relative;
  box-shadow: var(--shadow-sm);
  background: #d4dce8;
}
.team-photo-wrap img {
  width: 100%; height: 100%; object-fit: cover; object-position: top center;
  transition: transform .4s var(--ease-out), opacity .5s ease;
  opacity: 0;
}
.team-photo-wrap img.loaded {
  opacity: 1;
}
.team-card:hover .team-photo-wrap img { transform: scale(1.04); }
.team-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(35,71,165,.5) 0%, transparent 50%);
  opacity: 0; transition: opacity .3s;
}
.team-card:hover .team-overlay { opacity: 1; }
.team-name { font-family: var(--font-serif); font-size: 1.05rem; font-weight: 600; color: var(--ink); }
.team-role { font-size: .78rem; color: var(--blue); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; margin-top: .2rem; }

/* ── 12. CTA Banner ──────────────────────────────────────── */
.cta-section {
  background: var(--blue-dark);
  padding: clamp(4rem, 7vw, 6rem) clamp(1.5rem, 6vw, 5rem);
  text-align: center;
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute; top: -40%; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 700px; border-radius: 50%;
  background: radial-gradient(circle, rgba(75,123,219,.3) 0%, transparent 70%);
  pointer-events: none;
}
.cta-muesca {
  position: absolute; bottom: 0; left: 0; right: 0;
  display: flex; gap: 0;
}
.cta-muesca img { flex: 1; height: 60px; object-fit: cover; opacity: .15; }
.cta-inner { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }
.cta-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.4rem); font-weight: 600;
  color: var(--white); margin-bottom: 1rem; text-wrap: balance;
}
.cta-sub { color: rgba(255,255,255,.7); font-size: 1.05rem; margin-bottom: 2.5rem; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Pre-footer Newsletter ───────────────────────────────── */
.prefooter-nl {
  background: #2347A5;
  padding: clamp(1.5rem,3vw,2.5rem) clamp(1.5rem,6vw,5rem);
}
.prefooter-inner {
  max-width: 1160px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1px 1fr; gap: 0 clamp(2rem,5vw,5rem);
  align-items: center;
}
.prefooter-sep { background: rgba(255,255,255,.2); align-self: stretch; }
.prefooter-eyebrow {
  font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.65); margin-bottom: .75rem;
}
.prefooter-title {
  font-family: var(--font-serif); font-size: clamp(1.4rem,2.5vw,2rem);
  font-weight: 700; color: var(--white); line-height: 1.22; margin-bottom: .9rem;
}
.prefooter-title em { font-style: italic; opacity: .88; }
.prefooter-sub { color: rgba(255,255,255,.8); font-size: .82rem; line-height: 1.7; margin-bottom: .7rem; }
.prefooter-note {
  color: rgba(255,255,255,.6); font-size: .82rem; line-height: 1.6;
  border-left: 2.5px solid rgba(255,255,255,.25); padding-left: .85rem;
  margin-bottom: 1.6rem;
}
/* form */
.nl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; margin-bottom: .65rem; }
.nl-field { display: flex; flex-direction: column; gap: .3rem; }
.nl-field label { font-size: .8rem; font-weight: 600; color: rgba(255,255,255,.85); }
.nl-field .req { color: #ffd; }
.nl-field input {
  padding: .6rem .9rem; border-radius: 8px;
  border: 1.5px solid rgba(255,255,255,.3); background: rgba(255,255,255,.1);
  color: #fff; font-size: .9rem; font-family: var(--font-body);
  outline: none; transition: border .2s, background .2s;
}
.nl-field input::placeholder { color: rgba(255,255,255,.4); }
.nl-field input:focus { border-color: rgba(255,255,255,.65); background: rgba(255,255,255,.18); }
.nl-field input.nl-err { border-color: #fca5a5; }
.nl-check { margin-bottom: 1rem; }
.nl-check-label {
  display: flex; align-items: flex-start; gap: .5rem; cursor: pointer;
  color: rgba(255,255,255,.75); font-size: .82rem; line-height: 1.5;
}
.nl-check-label input[type="checkbox"] { width: 15px; height: 15px; margin-top: .15rem; flex-shrink: 0; accent-color: #fff; }
.btn-nl {
  width: 100%; padding: .75rem 1.5rem; border-radius: 99px;
  background: #fff; color: #2347A5; font-weight: 700;
  font-family: var(--font-body); font-size: .92rem; cursor: pointer;
  border: none; transition: background .2s, transform .15s;
}
.btn-nl:hover { background: #e8f0ff; transform: translateY(-1px); }
.nl-legal { font-size: .58rem; color: rgba(255,255,255,.75); margin-top: .65rem; line-height: 1.5; white-space: nowrap; }
.nl-msg { margin-top: .5rem; font-size: .85rem; font-weight: 600; min-height: 1.1em; }
.nl-msg.ok { color: #86efac; }
.nl-msg.err { color: #fca5a5; }
/* cta column */
.prefooter-cta-col {
  padding-left: clamp(1rem,2vw,1.75rem);
  display: flex; align-items: stretch; gap: clamp(1.1rem,2.2vw,1.5rem);
}
.prefooter-cta-img {
  flex: 0 0 auto; width: clamp(140px,15vw,180px);
  border-radius: 14px; overflow: hidden;
}
.prefooter-cta-img img { width: 100%; height: 100%; object-fit: cover; object-position: 25% 40%; display: block; }
.prefooter-cta-text { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 0; text-align: center; }
.prefooter-cta-title {
  font-family: var(--font-serif); font-size: clamp(1.4rem,2.5vw,2rem);
  font-weight: 700; color: var(--white); line-height: 1.22; margin-bottom: .7rem;
}
.prefooter-cta-title em { font-style: italic; }
.prefooter-cta-sub { color: rgba(255,255,255,.72); font-size: .92rem; line-height: 1.65; margin-bottom: 1rem; }
.btn-gcal-pf {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .75rem 1.8rem; border-radius: 99px;
  border: 2px solid rgba(255,255,255,.55); color: #fff; font-weight: 600;
  font-family: var(--font-body); font-size: .92rem; text-decoration: none; width: fit-content;
  margin: 0 auto;
  transition: background .2s, border-color .2s, transform .15s;
}
.btn-gcal-pf:hover { background: rgba(255,255,255,.15); border-color: #fff; transform: translateY(-1px); }
@media (max-width: 860px) {
  .prefooter-inner { grid-template-columns: 1fr; }
  .prefooter-sep { height: 1px; width: 100%; margin: 2.5rem 0; }
  .nl-grid { grid-template-columns: 1fr; }
  .nl-legal { white-space: normal; }
  .prefooter-cta-col { padding-left: 0; flex-direction: column; align-items: center; gap: 1.25rem; }
  .prefooter-cta-img { width: 100%; max-width: 280px; height: 200px; }
}

/* ── 13. Footer ──────────────────────────────────────────── */
.footer {
  background: var(--ink);
  padding: clamp(3rem, 6vw, 4rem) clamp(1.5rem, 6vw, 5rem) 2rem;
  color: rgba(255,255,255,.55);
}
.footer-inner {
  max-width: 1140px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem; margin-bottom: 3rem;
}
.footer-brand img { height: 50px; margin-bottom: 1rem; }
.footer-brand p { font-size: .88rem; line-height: 1.7; max-width: 32ch; text-align: justify; }
.footer-col h3 {
  color: var(--white); font-size: .8rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: .6rem; }
.footer-col li a {
  font-size: .87rem; transition: color .2s;
  display: inline-flex; align-items: center; gap: .4rem;
}
.footer-col li a:hover { color: rgba(255,255,255,.9); }
.footer-col li a .icon-svg {
  width: .82rem; height: .82rem; flex-shrink: 0;
  color: rgba(255,255,255,.4);
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
  font-size: .78rem;
}
.footer-bottom a { transition: color .2s; }
.footer-bottom a:hover { color: rgba(255,255,255,.9); }
.footer-dev-credit { color: rgba(255,255,255,.7); text-decoration: none; transition: color .2s; }
.footer-dev-credit:hover { color: rgba(255,255,255,.85); }

/* Íconos de redes sociales en el footer */
.footer-social {
  display: flex; gap: .65rem; margin-top: 1.25rem;
}
.footer-social-link {
  display: flex; align-items: center; justify-content: center;
  width: 2.1rem; height: 2.1rem;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.55);
  text-decoration: none;
  transition: border-color .2s, color .2s, background .2s;
}
.footer-social-link:hover {
  border-color: rgba(255,255,255,.6); color: #fff;
  background: rgba(255,255,255,.08);
}
.footer-social-link .icon-svg { width: .95rem; height: .95rem; color: inherit; }

/* ── 14. Bookstore page ──────────────────────────────────── */
.bookstore-hero {
  background: var(--blue);
  padding: calc(var(--nav-h) + var(--topbar-h) + 4rem) clamp(1.5rem, 6vw, 5rem) 4rem;
  text-align: center;
}
.bookstore-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 600;
  color: var(--white); margin-bottom: 1rem;
}
.bookstore-hero p { color: rgba(255,255,255,.75); font-size: 1.1rem; max-width: 50ch; margin: 0 auto 2rem; }
.bookstore-search {
  display: flex; max-width: 520px; margin: 0 auto;
  background: var(--white); border-radius: 99px;
  padding: .35rem .35rem .35rem 1.25rem;
  box-shadow: var(--shadow-md);
}
.bookstore-search input {
  flex: 1; border: none; outline: none; font: inherit;
  font-size: .95rem; color: var(--ink); background: transparent;
}
.bookstore-search button {
  background: var(--blue); color: var(--white);
  padding: .6rem 1.4rem; border-radius: 99px;
  font-size: .88rem; font-weight: 600;
  transition: background .2s;
}
.bookstore-search button:hover { background: var(--blue-dark); }
.bookstore-body { padding: 3rem clamp(1.5rem, 6vw, 5rem); }
.bookstore-inner { max-width: 1140px; margin: 0 auto; }
.cat-section { margin-bottom: 4rem; }
.cat-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.5rem; gap: 1rem;
  border-bottom: 2px solid var(--blue-pale); padding-bottom: 1rem;
}
.cat-header-left { display: flex; align-items: center; gap: .75rem; }
.cat-icon-wrap {
  width: 48px; height: 48px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
}
.cat-name {
  font-family: var(--font-serif); font-size: 1.4rem; font-weight: 600; color: var(--ink);
}
.cat-count { font-size: .8rem; color: var(--ink-mute); }
.cat-see-all {
  font-size: .82rem; font-weight: 600; color: var(--blue);
  display: flex; align-items: center; gap: .3rem;
  white-space: nowrap; transition: gap .2s;
}
.cat-see-all:hover { gap: .5rem; }

/* ── 15. Servicios page ──────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-mid) 100%);
  padding: calc(var(--nav-h) + var(--topbar-h) + 4rem) clamp(1.5rem, 6vw, 5rem) 5rem;
  text-align: center;
}
.page-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 600;
  color: var(--white); margin-bottom: 1rem;
}
.page-hero p { color: rgba(255,255,255,.75); max-width: 54ch; margin: 0 auto; font-size: 1.05rem; }
.services-full {
  padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 6vw, 5rem);
  max-width: 1140px; margin: 0 auto;
}
.service-full-card {
  background: var(--white); border-radius: var(--radius-lg);
  border: 1.5px solid var(--line); margin-bottom: 1.5rem;
  overflow: hidden;
}
.sfull-header {
  display: flex; align-items: center; gap: 1.25rem;
  padding: 1.75rem 2rem; cursor: pointer;
  background: transparent; transition: background .2s;
}
.sfull-header:hover { background: var(--blue-ultra); }
.sfull-icon {
  width: 56px; height: 56px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; flex-shrink: 0;
}
.sfull-text { flex: 1; }
.sfull-title {
  font-family: var(--font-serif); font-size: 1.2rem; font-weight: 600; color: var(--ink);
}
.sfull-sub { font-size: .85rem; color: var(--ink-mute); margin-top: .2rem; }
.sfull-arrow {
  color: var(--blue); font-size: 1.2rem;
  transition: transform .3s var(--ease-out);
  flex-shrink: 0;
}
.sfull-header.open .sfull-arrow { transform: rotate(180deg); }
.sfull-body {
  max-height: 0; overflow: hidden;
  transition: max-height .4s var(--ease-out);
  padding: 0 2rem;
}
.sfull-body.open {
  max-height: 1600px;
  padding-bottom: 2rem;
}
.sfull-body p { font-size: .95rem; color: var(--ink-soft); line-height: 1.75; margin-bottom: 1rem; }
.sfull-body ul { display: flex; flex-direction: column; gap: .5rem; }
.sfull-body li {
  display: flex; align-items: flex-start; gap: .6rem;
  font-size: .92rem; color: var(--ink-soft); line-height: 1.55;
}
.sfull-body li::before { content: '✓'; color: var(--blue); font-weight: 700; flex-shrink: 0; }
.pricing-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem; padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 6vw, 5rem);
  background: var(--blue-ultra);
}
.pricing-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 2rem; box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--line); text-align: center;
  transition: transform .25s var(--ease-bounce), box-shadow .25s;
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.pricing-card.featured {
  border-color: var(--blue); background: var(--blue);
  color: var(--white);
}
.pricing-card.featured .pricing-price,
.pricing-card.featured .pricing-name { color: var(--white); }
.pricing-name { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: .75rem; }
.pricing-price {
  font-family: var(--font-serif); font-size: 2.4rem; font-weight: 700;
  color: var(--ink); line-height: 1; margin-bottom: .25rem;
}
.pricing-period { font-size: .8rem; color: var(--ink-mute); margin-bottom: 1.5rem; }
.pricing-card.featured .pricing-period { color: rgba(255,255,255,.65); }
.pricing-features { text-align: left; display: flex; flex-direction: column; gap: .55rem; margin-bottom: 1.75rem; }
.pricing-features li { display: flex; align-items: flex-start; gap: .5rem; font-size: .85rem; }
.pricing-features li::before { content: '✓'; font-weight: 700; color: var(--blue); flex-shrink: 0; }
.pricing-card.featured .pricing-features li::before { color: rgba(255,255,255,.8); }
.pricing-card.featured .pricing-features li { color: rgba(255,255,255,.85); }
.pricing-cta {
  display: block; padding: .75rem; border-radius: 99px;
  font-weight: 600; font-size: .88rem;
  background: var(--blue-pale); color: var(--blue);
  transition: background .2s;
}
.pricing-cta:hover { background: var(--blue); color: var(--white); }
.pricing-card.featured .pricing-cta { background: rgba(255,255,255,.2); color: var(--white); }
.pricing-card.featured .pricing-cta:hover { background: rgba(255,255,255,.35); }

/* ── 16. La Editorial page ───────────────────────────────── */
.editorial-story {
  padding: clamp(4rem, 8vw, 6rem) clamp(1.5rem, 6vw, 5rem);
  max-width: 1140px; margin: 0 auto;
}
.story-grid {
  display: grid; grid-template-columns: 1.1fr 1fr;
  grid-template-areas: "text image" "capo image";
  gap: 2rem 4rem; align-items: start; margin-bottom: 5rem;
}
.story-text { grid-area: text; }
.story-image { grid-area: image; }
.story-text .lead {
  font-family: var(--font-serif); font-size: 1.3rem; font-weight: 400;
  color: var(--ink-soft); line-height: 1.65; margin-bottom: 1.5rem;
  border-left: 3px solid var(--blue); padding-left: 1.25rem;
}
.story-text p { font-size: .97rem; color: var(--ink-soft); line-height: 1.8; margin-bottom: 1rem; }
.story-image { display: flex; flex-direction: column; gap: 2.5rem; }
.story-image > img { width: 100%; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.story-capo-img { grid-area: capo; width: 100%; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); display: block; align-self: start; }
.values-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem; margin-bottom: 5rem;
}
.value-card {
  background: var(--blue-ultra); border-radius: var(--radius-lg);
  padding: 2rem; border: 1.5px solid var(--line);
}
.value-icon { font-size: 2rem; margin-bottom: 1rem; }
.value-card h3 { font-family: var(--font-serif); font-size: 1.15rem; font-weight: 600; color: var(--ink); margin-bottom: .5rem; }
.value-card p { font-size: .88rem; color: var(--ink-mute); line-height: 1.65; }
.team-full-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.75rem;
}
/* Desktop only: 3 por fila, últimos 2 centrados automáticamente */
@media (min-width: 769px) {
  .team-full-grid {
    display: flex; flex-wrap: wrap; justify-content: center;
  }
  .team-full-grid .team-card,
  .team-full-grid .team-bio-card {
    flex: 0 0 calc((100% - 3.5rem) / 3);
    max-width: calc((100% - 3.5rem) / 3);
  }
}

/* team-bio-card: cards del equipo en La Editorial */
.team-bio-card {
  text-align: center;
  transition: transform .25s var(--ease-bounce);
}
.team-bio-card:hover { transform: translateY(-4px); }
.team-bio-photo {
  width: 100%; aspect-ratio: 3/4; position: relative;
  border-radius: var(--radius-lg); overflow: hidden;
  background: var(--blue-ultra);
  box-shadow: var(--shadow-sm);
}
.team-bio-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: top center;
  transition: transform .4s var(--ease-out);
}
.team-bio-card:hover .team-bio-photo img { transform: scale(1.04); }
.team-bio-info { padding-top: .75rem; }
.team-bio-name {
  font-family: var(--font-serif); font-size: 1.05rem; font-weight: 600; color: var(--ink);
}
.team-bio-role {
  font-size: .78rem; color: var(--blue); font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase; margin-top: .2rem;
}
.team-bio-desc {
  font-size: .82rem; color: var(--ink-mute); line-height: 1.6; margin-top: .55rem;
}

/* ── 17. Reveal animations ───────────────────────────────── */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal[data-split] { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* ── 18. Responsive ──────────────────────────────────────── */
@media (max-width: 1023px) {
  .about-grid   { grid-template-columns: 1fr; }
  .about-image-wrap { width: 100%; max-width: 440px; margin: 0 auto; }
  .about-badge  { right: 0; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .stats-inner  { grid-template-columns: repeat(2, 1fr); }
  .story-grid   { grid-template-columns: 1fr; grid-template-areas: "text" "image" "capo"; }
  .values-grid  { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  :root { --topbar-h: 0px; }
  .topbar { display: none; }
  .nav-links    { display: none; }
  .nav-mobile-toggle { display: flex; }
  .hero-title   { font-size: clamp(2rem, 8vw, 3rem); }
  .testi-card   { min-width: calc(100vw - 3rem); max-width: calc(100vw - 3rem); }
  .footer-inner { grid-template-columns: 1fr; }
  .values-grid  { grid-template-columns: 1fr; }
  .stats-inner  { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .stats-inner { grid-template-columns: 1fr 1fr; }
  .hero-actions { flex-direction: column; align-items: center; }
  .about-badge  { bottom: -2rem; right: -1rem; width: 96px; height: 96px; }
  .about-badge .num { font-size: 1.5rem; }
  .about-badge .lbl { font-size: .42rem; letter-spacing: .03em; max-width: 68px; }
  .book-actions { flex-direction: column; gap: .4rem; }
  .btn-cart, .btn-more { width: 100%; text-align: center; overflow: visible; }
  .process-steps { grid-template-columns: 1fr; }
  .process-step  { padding-bottom: 2rem; } /* reset — badge ya no es absoluto */
  .conf-badge    { position: static; display: inline-flex; margin-top: .9rem; }
}

/* ── 19. SVG Sketch Icons (icon-svg) ───────────────────── */
.icon-svg {
  display: inline-block; vertical-align: middle; flex-shrink: 0;
  color: var(--blue);
  width: 1.1em; height: 1.1em;
  /* stroke attributes live inside the SVG symbols */
}

/* Context-specific sizes */
.process-icon          { font-size: 0; display: block; margin-bottom: 1.25rem; }
.process-icon .icon-svg { width: 2.75rem; height: 2.75rem; color: var(--blue); }

.value-icon            { font-size: 0; margin-bottom: 1rem; }
.value-icon .icon-svg  { width: 2.25rem; height: 2.25rem; color: var(--blue); }

.sfull-icon            { font-size: 0; }
.sfull-icon .icon-svg  { width: 1.75rem; height: 1.75rem; color: var(--blue); }

.cat-emoji             { font-size: 0; line-height: 1; }
.cat-emoji .icon-svg   { width: 1rem; height: 1rem; }

.book-cat .icon-svg    { width: .8rem; height: .8rem; margin-right: .15rem; }

.book-cover-placeholder .icon       { font-size: 0; margin-bottom: .75rem; opacity: .55; }
.book-cover-placeholder .icon .icon-svg { width: 2.5rem; height: 2.5rem; color: var(--blue); }

.cat-section-icon      { font-size: 0; }
.cat-section-icon .icon-svg { width: 1.5rem; height: 1.5rem; }

.bm-cat-badge .icon-svg { width: .85rem; height: .85rem; }

.bm-cover-placeholder  { font-size: 0; }
.bm-cover-placeholder .icon-svg { width: 4rem; height: 4rem; color: var(--ink-mute); opacity: .35; }

.cover-type .icon      { font-size: 0; margin-bottom: .75rem; }
.cover-type .icon .icon-svg { width: 2.2rem; height: 2.2rem; }

/* ── 20. Mini-carrito (drawer) + FAB ────────────────────── */
.mc-overlay {
  position: fixed; inset: 0; z-index: 900;
  background: rgba(0,0,0,.45);
  opacity: 0; pointer-events: none;
  transition: opacity .3s;
}
.mc-overlay.mc-open { opacity: 1; pointer-events: all; }

.mc-panel {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 901;
  width: 440px; max-width: 100vw;
  background: var(--white);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .35s var(--ease-out);
  box-shadow: -4px 0 40px rgba(0,0,0,.14);
}
.mc-panel.mc-open { transform: translateX(0); }

.mc-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.mc-title {
  font-size: .75rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink);
}
.mc-close {
  font-size: 1.5rem; line-height: 1; color: var(--ink-mute);
  background: none; border: none; cursor: pointer; padding: .2rem .45rem;
  transition: color .15s;
}
.mc-close:hover { color: var(--ink); }

.mc-items {
  flex: 1; overflow-y: auto;
  padding: 1.25rem 1.5rem;
  display: flex; flex-direction: column; gap: 1.25rem;
}

.mc-item {
  display: flex; align-items: flex-start; gap: .9rem;
}
.mc-item-img {
  width: 68px; height: 90px; object-fit: cover;
  border-radius: 6px; flex-shrink: 0;
  background: var(--blue-ultra);
}
.mc-item-img-ph { background: var(--blue-ultra); border-radius: 6px; }
.mc-item-info { flex: 1; min-width: 0; }
.mc-item-title {
  font-size: .88rem; font-weight: 600; color: var(--ink);
  margin-bottom: .2rem; line-height: 1.35;
}
.mc-item-price {
  font-size: .85rem; color: var(--blue); font-weight: 500;
  margin-bottom: .5rem;
}
.mc-item-qty-row { display: flex; align-items: center; gap: .5rem; }
.mc-qty-btn {
  width: 26px; height: 26px;
  border: 1.5px solid var(--line); background: var(--white);
  border-radius: 5px; font-size: 1rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--ink); transition: background .15s, border-color .15s;
}
.mc-qty-btn:hover { background: var(--blue-ultra); border-color: var(--blue); }
.mc-qty-val {
  font-size: .88rem; font-weight: 700; min-width: 1.5rem; text-align: center;
  color: var(--ink);
}
.mc-remove {
  background: none; border: none; color: var(--ink-mute);
  font-size: 1.25rem; cursor: pointer; padding: .2rem .35rem;
  line-height: 1; flex-shrink: 0; transition: color .15s;
}
.mc-remove:hover { color: var(--ink); }

.mc-empty {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: .75rem; padding: 3rem 1rem;
  color: var(--ink-mute); text-align: center; font-size: .9rem;
}
.mc-empty .icon-svg { width: 2.5rem; height: 2.5rem; opacity: .35; }

.mc-shipping-wrap {
  display: flex; flex-direction: column; gap: .3rem;
}
.mc-shipping-label {
  font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-mute);
}
.mc-shipping-select {
  width: 100%; padding: .5rem .75rem;
  border: 1.5px solid var(--line); border-radius: 7px;
  background: var(--white); color: var(--ink);
  font-size: .82rem; font-family: var(--font-body);
  cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B6F80' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .75rem center;
  padding-right: 2rem;
  transition: border-color .2s;
}
.mc-shipping-select:focus {
  outline: none; border-color: var(--blue);
}
.mc-foot {
  border-top: 1px solid var(--line);
  padding: 1.25rem 1.5rem;
  display: flex; flex-direction: column; gap: .85rem;
  flex-shrink: 0;
}
.mc-totals { display: flex; flex-direction: column; gap: .3rem; }
.mc-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: .9rem; color: var(--ink-soft);
}
.mc-row strong { font-weight: 600; color: var(--ink); }
.mc-total-row { font-weight: 700; color: var(--ink); font-size: 1rem; }
.mc-actions { display: flex; gap: .75rem; }
.mc-btn {
  flex: 1; padding: .75rem .5rem;
  font-size: .75rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  border-radius: 7px; text-align: center; text-decoration: none;
  transition: background .2s, color .2s, border-color .2s;
  display: block;
}
.mc-btn-outline {
  border: 2px solid var(--ink); color: var(--ink); background: transparent;
}
.mc-btn-outline:hover { background: var(--ink); color: var(--white); }
.mc-btn-solid {
  background: var(--blue); color: var(--white); border: 2px solid var(--blue);
}
.mc-btn-solid:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.mc-continue {
  background: none; border: none; cursor: pointer;
  font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  text-align: center; color: var(--ink-mute);
  text-decoration: underline; text-underline-offset: 3px;
  transition: color .15s;
}
.mc-continue:hover { color: var(--ink); }

/* FAB carrito flotante */
.cart-fab {
  position: fixed; bottom: 2rem; left: 2rem; z-index: 800;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--ink); color: var(--white);
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,.28);
  transition: transform .2s var(--ease-bounce), background .2s;
}
.cart-fab:hover { transform: scale(1.1); background: var(--blue); }
.cart-fab .icon-svg { width: 1.35rem; height: 1.35rem; color: var(--white); }
.cart-fab-badge {
  position: absolute; top: -3px; right: -3px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--blue); color: var(--white);
  font-size: .62rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--white);
  z-index: 1;
}

.no-results .emoji     { font-size: 0; margin-bottom: 1rem; }
.no-results .emoji .icon-svg { width: 2.75rem; height: 2.75rem; opacity: .45; }

.btn-cart .icon-svg    { width: 1rem; height: 1rem; vertical-align: middle; color: #fff; }
.cat-pill .icon-svg    { width: .85rem; height: .85rem; }
.bm-btn-cart .icon-svg { width: 1rem; height: 1rem; color: #fff; }
.service-icon .icon-svg { width: 1.75rem; height: 1.75rem; }
.store-main-title .icon-svg { width: 1.2rem; height: 1.2rem; vertical-align: middle; }

/* ── 20. Book Modal (bm-*) ──────────────────────────────── */
.bm-overlay {
  position: fixed; inset: 0; z-index: 9000;
  display: flex; align-items: center; justify-content: center; padding: 1rem;
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
}
.bm-overlay.bm-open { opacity: 1; pointer-events: all; }

.bm-backdrop {
  position: absolute; inset: 0;
  background: rgba(16, 24, 48, .6);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.bm-card {
  position: relative; z-index: 1;
  background: #fff;
  border-radius: 1.375rem;
  box-shadow: 0 32px 100px rgba(16, 24, 48, .28);
  max-width: 900px; width: 100%;
  max-height: 90vh; overflow-y: auto;
  transform: translateY(28px) scale(.96);
  transition: transform .38s cubic-bezier(.34, 1.56, .64, 1);
}
.bm-overlay.bm-open .bm-card { transform: translateY(0) scale(1); }

/* Scrollbar styling for the card */
.bm-card::-webkit-scrollbar { width: 6px; }
.bm-card::-webkit-scrollbar-track { background: transparent; }
.bm-card::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }

.bm-close {
  position: absolute; top: 1rem; right: 1rem; z-index: 2;
  width: 2.25rem; height: 2.25rem;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, .07); border: none; border-radius: 50%;
  font-size: 1.3rem; line-height: 1; color: var(--ink);
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.bm-close:hover { background: rgba(0, 0, 0, .15); transform: rotate(90deg); }
.bm-share {
  position: absolute; top: 1rem; right: 3.75rem; z-index: 2;
  width: 2.25rem; height: 2.25rem;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, .07); border: none; border-radius: 50%;
  color: var(--ink); cursor: pointer;
  transition: background .2s, transform .2s;
}
.bm-share:hover { background: rgba(0, 0, 0, .15); transform: scale(1.08); }
.bm-share svg { width: 17px; height: 17px; }
.bm-share-tip {
  position: absolute; top: calc(100% + .5rem); right: 0;
  background: var(--ink); color: #fff; font-size: .72rem; font-weight: 600;
  padding: .35rem .65rem; border-radius: 6px; white-space: nowrap;
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .2s, transform .2s, visibility .2s;
  pointer-events: none;
}
.bm-share-copied .bm-share-tip { opacity: 1; visibility: visible; transform: translateY(0); }

/* ── Two-column inner layout ── */
.bm-inner {
  display: flex; min-height: 460px;
}

.bm-cover-col {
  flex: 0 0 270px;
  border-radius: 1.375rem 0 0 1.375rem;
  overflow: hidden;
}

.bm-cover-wrap {
  width: 100%; height: 100%; min-height: 460px;
  display: flex; align-items: center; justify-content: center;
  background: #f0f3f9;
}

.bm-cover-img {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
}

.bm-cover-placeholder {
  width: 100%; height: 100%; min-height: 460px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: .75rem; padding: 2rem;
  font-size: 3.5rem; text-align: center;
  color: var(--ink-mute); white-space: pre-wrap; line-height: 1.4;
}

/* ── Info column ── */
.bm-info-col {
  flex: 1; padding: 2.75rem 2.75rem 2.25rem;
  display: flex; flex-direction: column; gap: .6rem;
}

.bm-cat-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .72rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  padding: .3rem .9rem; border-radius: 2rem;
  color: var(--blue-dark); align-self: flex-start;
  margin-bottom: .25rem;
}

.bm-title {
  font-family: var(--font-serif);
  font-size: clamp(1.45rem, 2.8vw, 2.1rem);
  font-weight: 600; color: var(--ink);
  line-height: 1.15; margin: 0;
}

.bm-author {
  font-size: .95rem; color: var(--ink-mute);
  font-style: italic; margin-bottom: .35rem;
}

.bm-price {
  font-family: var(--font-serif);
  font-size: 1.9rem; font-weight: 800;
  color: var(--blue); letter-spacing: -.02em;
  margin: .75rem 0 .5rem;
  margin-bottom: .25rem;
}

/* Descripción corta del libro (debajo del precio) */
.bm-desc-wrap {
  margin: .75rem 0 1rem;
}
.bm-desc-text {
  font-size: .91rem; line-height: 1.8;
  color: var(--ink-mute); margin: 0;
}
.bm-read-more {
  display: inline-block;
  margin-top: .35rem;
  background: none; border: none; padding: 0;
  font-size: .82rem; font-weight: 600;
  color: var(--blue); cursor: pointer;
  text-decoration: underline; text-underline-offset: 2px;
  transition: color .2s;
}
.bm-read-more:hover { color: var(--blue-dark); }

/* ── Action buttons ── */
.bm-actions {
  display: flex; align-items: center; gap: 1rem;
  flex-wrap: wrap; padding-top: 1.25rem; margin-top: auto;
}

.bm-btn-cart {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--blue); color: #fff;
  font-weight: 700; font-size: .9rem;
  padding: .8rem 2rem; border-radius: 2rem;
  text-decoration: none;
  transition: background .2s, transform .2s, box-shadow .2s;
  box-shadow: 0 4px 16px rgba(35, 71, 165, .3);
}
.bm-btn-cart:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(35, 71, 165, .35);
}

/* .bm-btn-site removed */

/* ── Tabs ── */
.bm-tabs {
  display: flex;
  border-bottom: 1.5px solid var(--line);
  gap: 0;
  flex-shrink: 0;
}
.bm-tab-btn {
  background: none;
  border: none;
  border-bottom: 2.5px solid transparent;
  padding: .55rem 1rem;
  font: inherit;
  font-size: .82rem;
  font-weight: 600;
  color: var(--ink-mute);
  cursor: pointer;
  transition: color .2s, border-color .2s;
  margin-bottom: -1.5px;
  white-space: nowrap;
}
.bm-tab-btn:hover { color: var(--blue); }
.bm-tab-btn.active {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

/* ── Tab panels ── */
.bm-tab-panel {
  flex: 1;
  padding-top: .85rem;
}

/* ── Información adicional table ── */
.bm-info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .875rem;
}
.bm-info-table th,
.bm-info-table td {
  padding: .65rem .5rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.bm-info-table th {
  color: var(--ink-mute);
  font-weight: 600;
  width: 44%;
}
.bm-info-table td { color: var(--ink); }

/* ── Sobre el autor (tab content) ── */
.bm-bio-block { /* kept for safety, no longer injected */ }
.bm-bio-title {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 .45rem;
}
.bm-bio-text {
  font-size: .875rem;
  line-height: 1.75;
  color: var(--ink-mute);
  margin: 0;
}

/* Foto circular del autor + texto en fila */
.bm-bio-wrap {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.bm-bio-img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--line);
}
.bm-bio-content {
  flex: 1;
  min-width: 0;
}

/* ── Formulario de reseña ── */
.bm-no-reviews {
  font-size: .875rem;
  color: var(--ink-mute);
  font-style: italic;
  margin: 0 0 1rem;
}
.bm-review-form {
  display: flex;
  flex-direction: column;
  gap: .7rem;
}
.bm-review-label {
  font-size: .82rem;
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: .02em;
}
.bm-stars {
  display: flex;
  gap: .2rem;
  cursor: pointer;
}
.bm-star {
  font-size: 1.75rem;
  color: var(--line);
  line-height: 1;
  transition: color .12s;
  user-select: none;
}
.bm-star.bm-star-active { color: #F5A623; }
.bm-review-text {
  padding: .65rem .9rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  font: inherit;
  font-size: .875rem;
  color: var(--ink);
  background: var(--cream);
  resize: vertical;
  min-height: 90px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.bm-review-text:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(35, 71, 165, .1);
}
.bm-review-submit {
  align-self: flex-start;
  padding: .6rem 1.6rem;
  border-radius: 99px;
  background: var(--blue);
  color: #fff;
  border: none;
  font: inherit;
  font-size: .875rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.bm-review-submit:hover { background: var(--blue-dark); transform: translateY(-1px); }
.bm-review-submit:disabled { background: #9ab3e8; cursor: default; transform: none; }

/* ── Selector de cantidad + botón carrito ── */
.bm-qty-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  margin-top: auto;
  flex-shrink: 0;
}
.bm-qty {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--line);
  border-radius: 2rem;
  overflow: hidden;
}
.bm-qty-btn {
  background: none;
  border: none;
  width: 36px; height: 36px;
  font-size: 1.15rem; font-weight: 700;
  color: var(--blue);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.bm-qty-btn:hover { background: var(--blue-ultra); }
.bm-qty-input {
  width: 40px;
  text-align: center;
  border: none;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  font: inherit;
  font-size: .9rem; font-weight: 600;
  color: var(--ink);
  padding: 0 .2rem;
  height: 36px;
  outline: none;
  -moz-appearance: textfield;
  appearance: textfield;
}
.bm-qty-input::-webkit-outer-spin-button,
.bm-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* ── Modal desktop: portada con altura fija (no se estira al cambiar pestaña) ── */
@media (min-width: 701px) {
  .bm-cover-col { align-self: flex-start; }
  .bm-cover-wrap { height: 460px; }
}

/* ── Modal responsive ── */
@media (max-width: 700px) {
  .bm-card   { border-radius: 1rem; max-height: 95vh; }
  .bm-inner  { flex-direction: column; min-height: 0; }
  .bm-cover-col {
    flex: none; border-radius: 1rem 1rem 0 0;
    height: 240px; overflow: hidden;
  }
  .bm-cover-wrap    { min-height: 240px; }
  .bm-cover-img     { object-position: center 20%; }
  .bm-cover-placeholder { min-height: 240px; font-size: 2.5rem; }
  .bm-info-col  { padding: 1.5rem 1.5rem 1.25rem; }
  .bm-title     { font-size: 1.3rem; }
  .bm-price     { font-size: 1.5rem; }
  .bm-btn-cart  { padding: .7rem 1.5rem; font-size: .85rem; }
  .bm-tab-btn   { padding: .42rem .65rem; font-size: .75rem; }
  .bm-qty-row   { gap: .75rem; }
}

/* ──────────────────────────────────────────────────────────────
   21. Cotizar Form (shared — index.html & servicios.html)
   ────────────────────────────────────────────────────────────── */
.cotizar-section {
  background: var(--blue-dark);
  padding: clamp(4rem, 7vw, 6rem) clamp(1.5rem, 6vw, 5rem);
  position: relative;
  overflow: hidden;
}

.cotizar-section::before {
  content: '';
  position: absolute; top: -40%; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(255,255,255,.07) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.cotizar-inner {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

/* Header text in cotizar section — white on dark blue */
.cotizar-section .section-title       { color: var(--white); }
.cotizar-section .section-title em    { color: #A8C4F4; }
.cotizar-section .section-sub         { color: rgba(255,255,255,.72); }
.cotizar-section .hero-kicker         { color: rgba(255,255,255,.8); }

.cotizar-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--line);
  padding: 2.5rem;
  max-width: 680px;
  margin: 2rem auto 0;
  box-shadow: var(--shadow-sm);
  text-align: left;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  margin-bottom: 1rem;
}

.form-group label {
  font-size: .82rem;
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: .02em;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: .7rem 1rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  font: inherit;
  font-size: .9rem;
  color: var(--ink);
  background: var(--cream);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(35, 71, 165, .1);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-submit {
  width: 100%;
  padding: .9rem;
  border-radius: 99px;
  background: var(--blue);
  color: var(--white);
  border: none;
  font: inherit;
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, transform .2s var(--ease-bounce);
  margin-top: .5rem;
}

.form-submit:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
}

@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
  .cotizar-form { padding: 1.75rem 1.25rem; }
}


/* ══════════════════════════════════════════════════════════
   BLOG — La Bitácora
   ══════════════════════════════════════════════════════════ */

/* ── Blog listing (blog.html) ─────────────────────────── */
.blog-section { padding: 5rem 0; background: var(--bg); }
.blog-section-inner { max-width: 1100px; margin: 0 auto; padding: 0 clamp(1rem,4vw,3rem); }
.blog-section-header { margin-bottom: 3rem; }
.blog-section-header .section-eyebrow { display: block; margin-bottom: .5rem; }
.blog-section-header .section-sub { max-width: 74ch; }
.blog-cats { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 2.5rem; }

.blog-featured {
  display: grid; grid-template-columns: 1.1fr 1fr;
  background: var(--white); border-radius: var(--radius-lg);
  border: 1.5px solid var(--line); overflow: hidden;
  text-decoration: none; color: inherit;
  margin-bottom: 3rem;
  transition: box-shadow .2s, transform .2s;
}
.blog-featured:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.blog-featured-cover { position: relative; min-height: 320px; overflow: hidden; }
.blog-featured-cover img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.blog-featured-body {
  padding: clamp(1.75rem, 3vw, 2.75rem);
  display: flex; flex-direction: column; gap: 1rem; justify-content: center;
}
.blog-featured-badge {
  display: inline-flex; align-items: center; gap: .35rem; align-self: flex-start;
  font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  background: var(--blue); color: var(--white);
  padding: .3rem .75rem; border-radius: 99px;
}
.blog-featured-title {
  font-family: var(--font-serif); font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 600;
  line-height: 1.25; color: var(--ink); margin: 0;
}
.blog-featured-excerpt { font-size: .95rem; color: var(--ink-soft); line-height: 1.7; }
.blog-featured .blog-card-link { margin-top: .25rem; padding-top: 0; border-top: none; }
@media (max-width: 780px) {
  .blog-featured { grid-template-columns: 1fr; }
  .blog-featured-cover { min-height: 220px; }
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px,1fr));
  gap: 2rem;
}
.blog-empty {
  grid-column: 1 / -1; text-align: center;
  color: var(--ink-mute); font-size: .95rem; padding: 3rem 0;
}
.blog-card {
  background: var(--white); border-radius: var(--radius-lg);
  border: 1.5px solid var(--line); overflow: hidden;
  display: flex; flex-direction: column;
  transition: box-shadow .2s, transform .2s;
  text-decoration: none; color: inherit;
}
.blog-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.blog-card-cover {
  aspect-ratio: 16/9; overflow: hidden;
  background: linear-gradient(135deg, var(--blue-ultra) 0%, #c8d9f7 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem;
}
.blog-card-cover.cover-green {
  background: linear-gradient(135deg, #e8f8f2 0%, #b8e8d0 100%);
}
.blog-card-cover img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; gap: .75rem; }
.blog-card-meta { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.blog-card-cat {
  font-size: .63rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  background: var(--blue-ultra); color: var(--blue);
  padding: .18rem .5rem; border-radius: 99px; border: 1px solid rgba(35,71,165,.12);
}
.blog-card-date { font-size: .75rem; color: var(--ink-mute); }
.blog-card-date::before { content: '·'; margin: 0 .35rem; }
.blog-card-read { font-size: .75rem; color: var(--ink-mute); }
.blog-card-read::before { content: '·'; margin: 0 .35rem; }
.blog-card-title {
  font-family: var(--font-serif); font-size: 1.18rem; font-weight: 600;
  color: var(--ink); line-height: 1.35; margin: 0;
}
.blog-card-excerpt { font-size: .875rem; color: var(--ink-soft); line-height: 1.65; flex: 1; }
.blog-card-link {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .82rem; font-weight: 600; color: var(--blue);
  margin-top: .5rem; padding-top: 1rem;
  border-top: 1px solid var(--line);
  text-decoration: none; transition: gap .2s;
}
.blog-card:hover .blog-card-link { gap: .6rem; }

/* YouTube section */
.yt-section {
  padding: 4rem 0;
  background: var(--blue-ultra);
  border-top: 1.5px solid var(--line);
  border-bottom: 1.5px solid var(--line);
}
.yt-section-inner {
  max-width: 860px; margin: 0 auto;
  padding: 0 clamp(1rem,4vw,3rem);
  text-align: center;
}
.yt-section .section-eyebrow { display: block; margin-bottom: .5rem; }
.yt-embed-wrap {
  position: relative; width: 100%; aspect-ratio: 16/9;
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); margin-top: 2rem;
}
.yt-embed-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }

/* ── Article page (blog-*.html) ───────────────────────── */
.article-page { background: var(--white); }
.article-hero {
  padding: calc(var(--nav-h) + var(--topbar-h) + 3rem) clamp(1rem,4vw,3rem) 3.5rem;
  background: linear-gradient(160deg, var(--blue-ultra) 0%, var(--white) 65%);
  border-bottom: 1.5px solid var(--line);
}
/* ── Botones de compartir artículo ── */
.article-share { display: flex; align-items: center; gap: .85rem; margin-top: 1.75rem; flex-wrap: wrap; }
.article-share-label { font-size: .7rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: rgba(255,255,255,.6); white-space: nowrap; }
.article-share-btns { display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; }
.share-btn { width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,.15); color: #fff; border: none; cursor: pointer; transition: background .2s, transform .2s; text-decoration: none; flex-shrink: 0; }
.share-btn:hover { background: rgba(255,255,255,.3); transform: translateY(-2px); color: #fff; }
.share-btn svg, .share-btn .icon-svg { width: 15px; height: 15px; color: inherit !important; }
.share-btn--copy { border-radius: 99px; width: auto; padding: 0 .9rem; font-size: .72rem; font-weight: 700; letter-spacing: .02em; gap: .4rem; }
.share-btn--copy.copied { background: #7BDFB0 !important; color: #08301e !important; }
/* Variante clara — para usar dentro del cuerpo del artículo */
.article-share--light .article-share-label { color: var(--ink-mute); }
.article-share--light .share-btn { background: var(--blue-pale); color: var(--blue); }
.article-share--light .share-btn:hover { background: var(--blue); color: #fff; transform: translateY(-2px); }

/* Hero con foto de portada */
.article-hero--photo {
  background-size: cover; background-position: center;
  position: relative; border-bottom: none;
}
.article-hero--photo::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(10,20,50,.55) 0%, rgba(10,20,50,.75) 100%);
}
.article-hero--photo .article-hero-inner { position: relative; z-index: 1; }
.article-hero--photo .article-back   { color: rgba(255,255,255,.8); }
.article-hero--photo .article-back:hover { color: #fff; }
.article-hero--photo .article-cat   { background: rgba(255,255,255,.15); color: #fff; border-color: rgba(255,255,255,.3); }
.article-hero--photo .article-date,
.article-hero--photo .article-read  { color: rgba(255,255,255,.7); }
.article-hero--photo .article-title { color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.3); }
.article-hero--photo .article-intro { color: rgba(255,255,255,.88); border-left-color: rgba(255,255,255,.4); }
.article-hero-inner { max-width: 780px; margin: 0 auto; }
.article-meta {
  display: flex; align-items: center; gap: .5rem;
  flex-wrap: wrap; margin-bottom: 1.5rem;
}
.article-cat {
  font-size: .63rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  background: var(--blue-ultra); color: var(--blue);
  padding: .18rem .5rem; border-radius: 99px; border: 1px solid rgba(35,71,165,.12);
}
.article-date, .article-read { font-size: .8rem; color: var(--ink-mute); }
.article-date::before, .article-read::before { content: '·'; margin: 0 .4rem; }
.article-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700; line-height: 1.2;
  color: var(--ink); margin-bottom: 1.25rem;
}
.article-intro {
  font-size: 1.05rem; color: var(--ink-soft); line-height: 1.8;
  border-left: 3px solid var(--blue); padding-left: 1.25rem;
  font-family: var(--font-serif); font-style: italic;
}
.article-back {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .82rem; font-weight: 500; color: var(--blue);
  text-decoration: none; margin-bottom: 2rem;
  transition: gap .2s;
}
.article-back:hover { gap: .7rem; color: var(--blue-dark); }

.article-body-wrap {
  max-width: 780px; margin: 0 auto;
  padding: 3.5rem clamp(1rem,4vw,3rem) 5rem;
}
.article-body { font-size: 1rem; line-height: 1.85; color: var(--ink-soft); }
.article-body p { margin-bottom: 1.4rem; }
.article-body h2 {
  font-family: var(--font-serif); font-size: 1.45rem; font-weight: 700;
  color: var(--ink); margin: 3rem 0 1rem; line-height: 1.3;
  padding-bottom: .5rem; border-bottom: 1px solid var(--line);
}
.article-body h3 {
  font-family: var(--font-serif); font-size: 1.15rem; font-weight: 600;
  color: var(--ink); margin: 2rem 0 .75rem;
}
.article-body ul {
  display: flex; flex-direction: column; gap: .45rem;
  padding-left: 1.4rem; margin-bottom: 1.4rem; list-style: disc;
}
.article-body ul li { color: var(--ink-soft); line-height: 1.7; }
.article-body a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.article-body a:hover { color: var(--blue-dark); }
.article-body strong { color: var(--ink); font-weight: 600; }

.article-cta {
  background: var(--blue); color: var(--white);
  border-radius: var(--radius-lg); padding: 2.5rem 2rem;
  text-align: center; margin-top: 3.5rem;
}
.article-cta h3 {
  font-family: var(--font-serif); font-size: 1.4rem; font-weight: 600;
  color: var(--white); margin-bottom: .75rem;
}
.article-cta p { color: rgba(255,255,255,.82); margin-bottom: 1.5rem; font-size: .95rem; }
.article-cta .btn-cta-white {
  display: inline-block;
  background: var(--white); color: var(--blue);
  padding: .75rem 2rem; border-radius: 99px;
  font-weight: 700; font-size: .9rem; text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}
.article-cta .btn-cta-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,.15);
}

.article-nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.5rem 0; border-top: 1.5px solid var(--line);
  margin-top: 3rem; gap: 1rem; flex-wrap: wrap;
}
.article-nav a {
  font-size: .85rem; font-weight: 600; color: var(--blue);
  text-decoration: none; display: flex; align-items: center; gap: .35rem;
}
.article-nav a:hover { color: var(--blue-dark); }

@media (max-width: 640px) {
  .blog-grid { grid-template-columns: 1fr; }
  .article-body h2 { font-size: 1.25rem; }
  .article-title { font-size: 1.6rem; }
}

/* ── BOOKSTORE HERO MARQUEE ────────────────────────────────── */
@keyframes bmScroll    { from { transform: translateX(0);    } to { transform: translateX(-50%); } }
@keyframes bmScrollRev { from { transform: translateX(-50%); } to { transform: translateX(0);    } }

.bm-marquee {
  position: absolute;
  top: -80%;
  left: -20%;
  width: 140%;
  height: 260%;
  transform: rotate(-12deg);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 14px;
  z-index: 0;
  pointer-events: none;
  opacity: .45;
  user-select: none;
}

.bm-strip {
  display: flex;
  gap: 14px;
  width: max-content;
  will-change: transform;
}
.bm-strip-1 { animation: bmScroll    40s linear infinite; }
.bm-strip-2 { animation: bmScrollRev 34s linear infinite; }
.bm-strip-3 { animation: bmScroll    48s linear infinite; }
.bm-strip-4 { animation: bmScrollRev 38s linear infinite; }
.bm-strip-5 { animation: bmScroll    43s linear infinite; }

.bm-cover {
  height: 140px;
  width: auto;
  border-radius: 4px;
  flex-shrink: 0;
  display: block;
  object-fit: cover;
  background: rgba(255,255,255,.08);
}

@media (prefers-reduced-motion: reduce) {
  .bm-strip { animation: none !important; }
}

/* footer recursos sub-section */
.footer-sub-hd { font-size:.68rem; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color:rgba(255,255,255,.6); margin-top:.9rem; pointer-events:none; }
.footer-soon-item a,
.footer-soon-item { color:rgba(255,255,255,.5) !important; font-size:.85rem; cursor:default; }
.footer-badge-sm { font-size:.68rem; font-style:italic; }

/* gcal modal */
.modal-gcal-overlay {
  position: fixed; inset: 0; z-index: 9200;
  background: rgba(8,22,40,.78); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 1rem;
  opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
}
.modal-gcal-overlay.open { opacity: 1; visibility: visible; }
.modal-gcal-box {
  background: #fff; border-radius: 16px; width: 100%;
  max-width: 760px; position: relative; overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,.4);
}
.modal-gcal-close {
  position: absolute; top: .6rem; right: .6rem; z-index: 2;
  width: 2rem; height: 2rem; border-radius: 50%; border: none;
  background: rgba(255,255,255,.95); cursor: pointer; font-size: .95rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 1px 4px rgba(0,0,0,.18); line-height: 1;
}
.modal-gcal-close:hover { background: #f1f5f9; }

/* ── WhatsApp float ── */
.wa-float {
  position: fixed; bottom: 1.75rem; right: 1.75rem; z-index: 9998;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 18px rgba(37,211,102,.5);
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
  overflow: visible;
}
.wa-float::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: 50%;
  background: rgba(37,211,102,.4);
  animation: wa-pulse 3s ease-in-out infinite;
  pointer-events: none;
}
@keyframes wa-pulse {
  0%, 100% { transform: scale(1); opacity: 0; }
  50%       { transform: scale(1.5); opacity: 1; }
}
.wa-float:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,.7); }
.wa-float:hover::before { animation: none; opacity: 0; }
.wa-float svg { display: block; }

/* ── Exit-intent modal ── */
.exit-modal-overlay {
  position: fixed; inset: 0; z-index: 9800;
  background: rgba(16,24,48,.6); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; padding: 1rem;
  opacity: 0; visibility: hidden;
  transition: opacity .3s ease, visibility .3s;
}
.exit-modal-overlay.open { opacity: 1; visibility: visible; }
.exit-modal-box {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 2.5rem 2rem 2rem; max-width: 420px; width: 100%;
  text-align: center; position: relative;
  transform: translateY(28px);
  transition: transform .4s var(--ease-bounce);
  box-shadow: var(--shadow-lg);
}
.exit-modal-overlay.open .exit-modal-box { transform: translateY(0); }
.exit-modal-close {
  position: absolute; top: .75rem; right: .75rem;
  width: 2rem; height: 2rem; border-radius: 50%;
  border: none; background: #f1f5f9; cursor: pointer;
  font-size: 1.1rem; display: flex; align-items: center; justify-content: center;
  color: var(--ink-mute); transition: background .15s;
}
.exit-modal-close:hover { background: #e2e8f0; }
.exit-modal-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--blue-light, #e8f0fe); margin: 0 auto 1.25rem;
  display: flex; align-items: center; justify-content: center;
}
.exit-modal-icon .icon-svg { width: 1.5rem; height: 1.5rem; color: var(--blue); }
.exit-modal-title { font-family: var(--font-serif); font-size: 1.4rem; font-weight: 700; color: var(--ink); margin: 0 0 .75rem; }
.exit-modal-body { font-size: .95rem; color: var(--ink-mute); line-height: 1.6; margin: 0 0 1.5rem; }
.exit-modal-actions { display: flex; flex-direction: column; gap: .75rem; }
.exit-modal-btn-primary {
  display: inline-block; background: var(--blue); color: #fff;
  font-weight: 600; font-size: .95rem; padding: .75rem 1.5rem;
  border-radius: var(--radius); text-decoration: none;
  transition: background .2s;
}
.exit-modal-btn-primary:hover { background: var(--blue-dark, #1a3a8f); }
.exit-modal-btn-secondary {
  background: none; border: none; cursor: pointer;
  font-size: .85rem; color: var(--ink-mute);
  text-decoration: underline; padding: .25rem;
}
.exit-modal-btn-secondary:hover { color: var(--ink); }