/* ═══════════════════════════════════════════════════════════════
   FAMILIAS QUE INSPIRAN — Rediseño
   Paleta ORIGINAL exacta:
     #fec503  dorado (acento principal)
     #1a1a1a  negro
     #2c2c2c  grafito
     #555151  gris (del SVG frame original)
     #ffffff  blanco
   Tipografía: Open Sans (original)
   ═══════════════════════════════════════════════════════════════ */

:root {
  --dorado: #fec503;
  --dorado-soft: #fec5031f;
  --dorado-glow: rgba(254, 197, 3, 0.22);
  --negro: #1a1a1a;
  --grafito: #2c2c2c;
  --gris-frame: #555151;
  --gris-1: #f6f6f6;
  --gris-2: #e5e5e5;
  --gris-3: #888888;
  --blanco: #ffffff;
  --texto: #1a1a1a;
  --texto-sec: #555555;

  --wa: #25d366;
  --wa-dark: #1ebe5d;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;

  --shadow-sm: 0 2px 12px rgba(26,26,26,0.06);
  --shadow-md: 0 10px 30px rgba(26,26,26,0.10);
  --shadow-lg: 0 24px 60px rgba(26,26,26,0.16);
  --shadow-gold: 0 18px 40px rgba(254,197,3,0.35);

  --maxw: 1240px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Open Sans', system-ui, sans-serif;
  color: var(--texto);
  background: var(--blanco);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; }

h1, h2, h3, h4 {
  font-family: 'Open Sans', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
p { text-wrap: pretty; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--dorado);
  margin-bottom: 16px;
  position: relative;
  padding-left: 32px;
}
.eyebrow::before {
  content: "";
  position: absolute;
  left: 0; top: 80%;
  width: 22px; height: 2px;
  background: var(--dorado);
  transform: translateY(-50%);
}

/* ═══════════════ NAVBAR ═══════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(26, 26, 26, 0.92);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid rgba(254,197,3,0.08);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--blanco);
  font-weight: 700;
  font-size: 1rem;
}
.logo img {
  height: 44px;
  width: auto;
}
.logo-fallback {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--dorado);
  display: grid; place-items: center;
  color: var(--negro);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}
.logo-text {
  font-size: 0.95rem;
  line-height: 1.1;
}
.logo-text small {
  display: block;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dorado);
  margin-top: 3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  color: rgba(255,255,255,0.82);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 10px 14px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--dorado); background: rgba(254,197,3,0.08); }
.nav-cta {
  background: var(--dorado);
  color: var(--negro) !important;
  padding: 10px 22px !important;
  border-radius: 100px !important;
  transition: transform 0.2s, box-shadow 0.2s !important;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: var(--shadow-gold); background: var(--dorado) !important; }

/* Botón Donar — púrpura Zelle, presente en todas las páginas */
.nav-donate {
  background: linear-gradient(135deg, #6d1ed4, #5012a8) !important;
  color: #fff !important;
  padding: 9px 18px !important;
  border-radius: 100px !important;
  font-weight: 800 !important;
  font-size: 0.78rem !important;
  letter-spacing: 0.06em !important;
  display: inline-flex !important;
  align-items: center;
  gap: 7px;
  transition: transform 0.2s, box-shadow 0.2s !important;
}
.nav-donate::before {
  content: "♥";
  font-size: 0.95rem;
  line-height: 1;
}
.nav-donate:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -8px rgba(109,30,212,0.55);
  background: linear-gradient(135deg, #7d2ee4, #5d1fc0) !important;
  color: #fff !important;
}

.burger {
  display: none;
  width: 44px; height: 44px;
  background: transparent;
  border-radius: 10px;
  position: relative;
}
.burger span {
  position: absolute;
  left: 12px; right: 12px;
  height: 2px;
  background: var(--blanco);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
}
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 22px; }
.burger span:nth-child(3) { top: 28px; }
.burger.open span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

@media (max-width: 1024px) {
  .nav-links {
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: var(--negro);
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
    gap: 4px;
    border-bottom: 1px solid rgba(254,197,3,0.15);
    transform: translateY(-120%);
    transition: transform 0.3s var(--ease);
    max-height: calc(100vh - 72px);
    overflow-y: auto;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 14px 16px; font-size: 0.88rem; }
  .nav-cta { text-align: center; margin-top: 8px; }
  .burger { display: block; }
}

/* ═══════════════ HERO ═══════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  background: var(--negro);
  color: var(--blanco);
  padding: 130px 0 90px;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 25%, rgba(254,197,3,0.20) 0%, transparent 45%),
    radial-gradient(circle at 5% 90%, rgba(254,197,3,0.08) 0%, transparent 45%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero-text h1 {
  font-size: clamp(2.2rem, 5.5vw, 4.2rem);
  margin-bottom: 22px;
  color: var(--blanco);
  line-height: 1.08;
}
.hero-text h1 .accent {
  color: var(--dorado);
  position: relative;
  display: inline-block;
}
.hero-text h1 .accent::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 4%;
  height: 10px;
  background: rgba(254,197,3,0.22);
  z-index: -1;
  border-radius: 3px;
}
.hero-lead {
  font-size: 1.08rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.78);
  margin-bottom: 32px;
  max-width: 560px;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--dorado);
  color: var(--negro);
  box-shadow: var(--shadow-gold);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 26px 60px rgba(254,197,3,0.45); }
.btn-ghost {
  background: transparent;
  color: var(--blanco);
  border: 1.5px solid rgba(255,255,255,0.22);
}
.btn-ghost:hover { border-color: var(--dorado); color: var(--dorado); }
.btn svg { width: 16px; height: 16px; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.12);
  max-width: 560px;
}
.hero-stat .num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--dorado);
  line-height: 1;
  margin-bottom: 6px;
  letter-spacing: -0.03em;
}
.hero-stat .lbl {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-visual {
  position: relative;
  aspect-ratio: 4/5;
  max-width: 460px;
  margin-left: auto;
}
.hero-photo {
  position: absolute;
  inset: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: linear-gradient(160deg, rgba(254,197,3,0.12), rgba(254,197,3,0.02));
  border: 1px solid rgba(254,197,3,0.25);
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-badge {
  position: absolute;
  right: -28px; bottom: 30px;
  width: 150px;
  height: 150px;
  z-index: 3;
  pointer-events: none;
  filter: drop-shadow(0 18px 30px rgba(0,0,0,0.18));
}
.hero-badge .ring {
  position: absolute;
  inset: 0;
  animation: badge-spin 18s linear infinite;
}
.hero-badge .ring text {
  fill: var(--negro);
  font-family: 'Open Sans', sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 4px;
  text-transform: uppercase;
}
.hero-badge .core {
  position: absolute;
  inset: 22px;
  border-radius: 50%;
  background: var(--dorado);
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 4px var(--negro), 0 6px 20px rgba(0,0,0,0.15);
}
.hero-badge .heart {
  width: 44px;
  height: 44px;
  color: var(--negro);
  animation: badge-beat 1.6s ease-in-out infinite;
  transform-origin: center;
}
.hero-badge .heart svg { width: 100%; height: 100%; fill: currentColor; }
.hero-badge .pulse {
  position: absolute;
  inset: 22px;
  border-radius: 50%;
  border: 2px solid var(--dorado);
  animation: badge-pulse 2.4s ease-out infinite;
  pointer-events: none;
  opacity: 0;
}
.hero-badge .pulse.b { animation-delay: 1.2s; }
@keyframes badge-spin {
  to { transform: rotate(360deg); }
}
@keyframes badge-beat {
  0%, 100% { transform: scale(1); }
  20% { transform: scale(1.15); }
  40% { transform: scale(0.95); }
  60% { transform: scale(1.08); }
}
@keyframes badge-pulse {
  0%   { transform: scale(0.9); opacity: 0.6; }
  100% { transform: scale(1.45); opacity: 0; }
}

@media (max-width: 900px) {
  .hero { padding: 110px 0 70px; min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-visual { max-width: 340px; margin: 0 auto; }
  .hero-stats { gap: 14px; }
  .hero-stat .num { font-size: 1.6rem; }
  .hero-badge { right: -10px; bottom: 10px; width: 120px; height: 120px; }
  .hero-badge .heart { width: 34px; height: 34px; }
}

/* ═══════════════ CTA DIPLOMADO ═══════════════ */
.diplomado {
  position: relative;
  background: var(--dorado);
  color: var(--negro);
  padding: 72px 0;
  overflow: hidden;
}
.diplomado::before {
  content: "";
  position: absolute;
  top: -50%; right: -10%;
  width: 60%; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(26,26,26,0.06) 0%, transparent 60%);
  pointer-events: none;
}
.diplomado-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 36px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.diplomado-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--negro);
  color: var(--dorado);
  padding: 7px 16px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.diplomado h2 {
  font-size: clamp(1.7rem, 3.8vw, 2.6rem);
  margin-bottom: 12px;
  color: var(--negro);
  line-height: 1.15;
}
.diplomado p {
  font-size: 1.05rem;
  max-width: 640px;
  margin: 0;
  color: rgba(26,26,26,0.78);
}
.btn-black {
  background: var(--negro);
  color: var(--dorado);
  padding: 18px 32px;
  font-size: 0.95rem;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: all 0.25s var(--ease);
  white-space: nowrap;
  animation: pulse-gold 2.2s infinite;
}
.btn-black:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(26,26,26,0.3); }
.btn-black .arrow {
  width: 30px; height: 30px; border-radius: 50%; background: var(--dorado); color: var(--negro);
  display: grid; place-items: center;
  transition: transform 0.25s var(--ease);
  flex-shrink: 0;
}
.btn-black:hover .arrow { transform: translateX(4px) rotate(-45deg); }
@keyframes pulse-gold {
  0%, 100% { box-shadow: 0 0 0 0 rgba(26,26,26,0.0); }
  50% { box-shadow: 0 0 0 14px rgba(26,26,26,0.0), 0 10px 30px rgba(26,26,26,0.15); }
}

@media (max-width: 800px) {
  .diplomado-grid { grid-template-columns: 1fr; text-align: left; }
}

/* ═══════════════ SECCIÓN BASE ═══════════════ */
.section {
  padding: 110px 0;
}
.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}
.section-head .eyebrow {
  display: inline-block;
  padding: 6px 18px 6px 40px;
  background: rgba(254,197,3,0.10);
  color: var(--dorado);
  border-radius: 100px;
  border: 1px solid rgba(254,197,3,0.25);
  margin-bottom: 20px;
}
.section-head .eyebrow::before { left: 14px; background: var(--dorado); width: 18px; }
.section-head h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  margin-bottom: 16px;
}
.section-head p {
  color: var(--texto-sec);
  font-size: 1.02rem;
  max-width: 560px;
  margin: 0 auto;
}

.section-dark { background: var(--negro); color: var(--blanco); }
.section-dark .section-head h2 { color: var(--blanco); }
.section-dark .section-head p { color: rgba(255,255,255,0.7); }
.section-dark .section-head .eyebrow { background: rgba(254,197,3,0.08); border-color: rgba(254,197,3,0.2); color: var(--dorado); }

.section-soft {
  background: var(--gris-1);
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 40px; }
}

/* ═══════════════ SERVICIOS (WhatsApp) ═══════════════ */
.servicios {
  position: relative;
  overflow: hidden;
}
.servicios::before {
  content: "";
  position: absolute;
  top: 10%; right: -200px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(254,197,3,0.1), transparent 60%);
  pointer-events: none;
}
.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  position: relative;
}
.servicio {
  background: rgba(255,255,255,0.04);
  border: 1.5px solid rgba(255,255,255,0.08);
  border-radius: var(--r-md);
  padding: 28px 24px;
  cursor: pointer;
  transition: transform 0.3s var(--ease), border-color 0.3s, background 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
  outline: none;
}
.servicio::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 0; height: 3px;
  background: var(--dorado);
  transition: width 0.35s var(--ease);
}
.servicio:hover {
  transform: translateY(-4px);
  background: rgba(254,197,3,0.05);
  border-color: rgba(254,197,3,0.45);
}
.servicio:hover::after { width: 100%; }
.servicio:focus-visible { box-shadow: 0 0 0 3px rgba(254,197,3,0.45); }
.servicio.is-selected {
  background: rgba(254,197,3,0.10);
  border-color: var(--dorado);
  box-shadow: 0 18px 40px -18px rgba(254,197,3,0.55), inset 0 0 0 1px rgba(254,197,3,0.6);
}
.servicio.is-selected::after { width: 100%; }
.servicio-check {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--dorado);
  color: var(--negro);
  display: grid;
  place-items: center;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  z-index: 2;
}
.servicio-check svg { width: 14px; height: 14px; }
.servicio.is-selected .servicio-check {
  opacity: 1;
  transform: scale(1);
}
.servicio-icon {
  width: 52px; height: 52px;
  background: rgba(254,197,3,0.14);
  border-radius: var(--r-sm);
  display: grid;
  place-items: center;
  color: var(--dorado);
  transition: all 0.3s var(--ease);
}
.servicio.is-selected .servicio-icon {
  background: var(--dorado);
  color: var(--negro);
  transform: scale(1.05);
}
.servicio-icon svg { width: 26px; height: 26px; }
.servicio h4 {
  font-size: 1.05rem;
  color: var(--blanco);
  margin: 0;
  font-weight: 700;
}
.servicio p {
  color: rgba(255,255,255,0.62);
  font-size: 0.9rem;
  margin: 0;
  flex-grow: 1;
}

/* CTA único de WhatsApp */
.servicios-cta {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.servicios-cta-hint {
  color: rgba(255,255,255,0.55);
  font-size: 0.88rem;
  margin: 0;
  letter-spacing: 0.01em;
}
.servicios-cta-hint strong {
  color: var(--dorado);
  font-weight: 700;
}
.btn-wa-cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--wa);
  color: var(--blanco);
  padding: 18px 36px;
  border-radius: 100px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: all 0.3s var(--ease);
  box-shadow: 0 14px 36px -10px rgba(37,211,102,0.55);
  position: relative;
  overflow: hidden;
}
.btn-wa-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.25) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.7s var(--ease);
}
.btn-wa-cta:hover {
  background: var(--wa-dark);
  color: var(--blanco);
  transform: translateY(-3px);
  box-shadow: 0 22px 48px -10px rgba(37,211,102,0.7);
}
.btn-wa-cta:hover::before { transform: translateX(100%); }
.btn-wa-cta svg { width: 22px; height: 22px; fill: currentColor; position: relative; z-index: 1; }
.btn-wa-cta .arr { width: 18px; height: 18px; fill: none; stroke: currentColor; transition: transform 0.3s var(--ease); }
.btn-wa-cta:hover .arr { transform: translateX(5px); }
.btn-wa-cta span { position: relative; z-index: 1; }

/* ═══════════════ LIBROS (carrusel) ═══════════════ */
.libros-carousel {
  position: relative;
  padding: 4px 0;
}
.libros-viewport {
  overflow: hidden;
  margin: 0 -8px;
  padding: 20px 8px 28px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.libros-track {
  display: flex;
  gap: 24px;
  transition: transform 0.7s cubic-bezier(0.65, 0, 0.35, 1);
  will-change: transform;
}
.libro {
  flex: 0 0 calc((100% - 96px) / 5); /* 5 visibles con 24px gap */
  background: var(--blanco);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--gris-2);
}
.libro:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--dorado);
}
.libro-cover {
  aspect-ratio: 3/4;
  background: var(--gris-1);
  overflow: hidden;
  position: relative;
}
.libro-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.libro:hover .libro-cover img { transform: scale(1.04); }
.libro-body {
  padding: 22px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-grow: 1;
}
.libro-body h4 {
  font-size: 1rem;
  margin: 0;
  line-height: 1.25;
  min-height: 2.4em;
  color: var(--negro);
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.libro-body p {
  color: var(--texto-sec);
  font-size: 0.85rem;
  line-height: 1.55;
  margin: 0;
  flex-grow: 1;
}
.libro-body a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--negro);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-top: 12px;
  border-top: 1px solid var(--gris-2);
}
.libro-body a svg { width: 14px; height: 14px; transition: transform 0.25s var(--ease); }
.libro-body a:hover { color: var(--dorado); }
.libro-body a:hover svg { transform: translateX(4px); }

/* Flechas */
.libros-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--blanco);
  border: 1.5px solid var(--negro);
  color: var(--negro);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: all 0.28s var(--ease);
  box-shadow: 0 12px 28px rgba(26,26,26,0.18);
}
.libros-nav svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.libros-nav:hover {
  background: var(--negro);
  color: var(--dorado);
  transform: translateY(-50%) scale(1.08);
}
.libros-nav.prev { left: -10px; }
.libros-nav.next { right: -10px; }
.libros-nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: translateY(-50%);
}

/* Dots */
.libros-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}
.libros-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(26,26,26,0.2);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s var(--ease);
}
.libros-dots button.is-active {
  background: var(--dorado);
  width: 28px;
  border-radius: 4px;
}

@media (max-width: 1100px) {
  .libro { flex: 0 0 calc((100% - 72px) / 4); }
}
@media (max-width: 860px) {
  .libro { flex: 0 0 calc((100% - 48px) / 3); }
}
@media (max-width: 640px) {
  .libro { flex: 0 0 calc((100% - 24px) / 2); }
  .libros-nav { width: 44px; height: 44px; }
}
@media (max-width: 460px) {
  .libro { flex: 0 0 80%; }
}

/* ═══════════════ ACERCA (tabs) ═══════════════ */
.acerca-wrap {
  background: var(--blanco);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gris-2);
}
.tab-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--gris-1);
  border-bottom: 1px solid var(--gris-2);
}
.tab-btn {
  background: transparent;
  padding: 22px 20px;
  color: var(--texto-sec);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: all 0.25s var(--ease);
  border-right: 1px solid var(--gris-2);
  position: relative;
}
.tab-btn:last-child { border-right: 0; }
.tab-btn .num {
  font-size: 0.72rem;
  color: var(--gris-3);
  font-weight: 700;
}
.tab-btn:hover { color: var(--negro); background: rgba(254,197,3,0.06); }
.tab-btn.active {
  background: var(--negro);
  color: var(--dorado);
}
.tab-btn.active::after {
  content: "";
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 3px;
  background: var(--dorado);
}
.tab-btn.active .num { color: var(--dorado); }

.tab-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.tab-image {
  background: var(--gris-1);
  overflow: hidden;
  min-height: 340px;
  position: relative;
}
.tab-image img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.tab-content {
  padding: 48px 44px;
  display: none;
  flex-direction: column;
  justify-content: center;
}
.tab-panel {
  display: none;
}
.tab-panel.active {
  display: contents;
}
.tab-panel.active .tab-image,
.tab-panel.active .tab-text {
  display: block;
}
.tab-panel.active .tab-text {
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  animation: fadeIn 0.4s var(--ease);
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.tab-text h3 {
  font-size: 1.7rem;
  margin-bottom: 16px;
  color: var(--negro);
}
.tab-text p {
  color: var(--texto-sec);
  line-height: 1.75;
  font-size: 0.96rem;
  margin: 0 0 18px;
}
.tab-text .quote {
  margin-top: 8px;
  padding: 18px 22px;
  background: rgba(254,197,3,0.08);
  border-left: 3px solid var(--dorado);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--negro);
}

@media (max-width: 900px) {
  .tab-bar { grid-template-columns: repeat(3, 1fr); }
  .tab-btn { padding: 14px 10px; font-size: 0.76rem; letter-spacing: 0.05em; }
  .tab-btn .num { display: none; }
  .tab-body { grid-template-columns: 1fr; }
  .tab-image { min-height: 220px; order: -1; }
  .tab-panel.active .tab-text { padding: 32px 24px; }
  .tab-text h3 { font-size: 1.3rem; }
}

/* ═══════════════ FUNDADORES ═══════════════ */
.fundadores-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}
.fundador {
  background: var(--blanco);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 220px 1fr;
  border: 1px solid var(--gris-2);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.fundador:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.fundador-photo {
  background: var(--gris-1);
  position: relative;
  min-height: 320px;
  overflow: hidden;
}
.fundador-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.fundador-body {
  padding: 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.fundador-body .role {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dorado);
}
.fundador-body h3 {
  font-size: 1.3rem;
  margin: 0;
  color: var(--negro);
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.fundador-body p {
  color: var(--texto-sec);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}
.fundador-socials {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
}
.fundador-socials a {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--gris-1);
  color: var(--negro);
  display: grid;
  place-items: center;
  transition: all 0.2s;
}
.fundador-socials a:hover { background: var(--dorado); transform: translateY(-2px); }
.fundador-socials svg { width: 15px; height: 15px; fill: currentColor; }

@media (max-width: 960px) {
  .fundadores-grid { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .fundador { grid-template-columns: 1fr; }
  .fundador-photo { min-height: 260px; }
}

/* ═══════════════ ESCRITORES (split) ═══════════════ */
.escritores {
  background: var(--negro);
  color: var(--blanco);
  padding: 0;
  overflow: hidden;
}
.escritores-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
}
.escritores-text {
  padding: 90px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.escritores-text .eyebrow { background: transparent; padding-left: 32px; border: 0; }
.escritores-text h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  color: var(--blanco);
  margin-bottom: 18px;
}
.escritores-text p {
  color: rgba(255,255,255,0.72);
  margin-bottom: 28px;
  max-width: 480px;
}
.escritores-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
  padding: 0;
}
.escritores-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: rgba(255,255,255,0.86);
  font-size: 0.92rem;
  list-style: none;
}
.escritores-features li::before {
  content: "";
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--dorado);
  flex-shrink: 0;
  margin-top: 2px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a1a1a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M20 6L9 17l-5-5'/></svg>");
  background-size: 13px;
  background-repeat: no-repeat;
  background-position: center;
}
.escritores-visual {
  background: var(--gris-1);
  position: relative;
  overflow: hidden;
}
.escritores-visual img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.escritores-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(254,197,3,0.12), transparent 50%);
  pointer-events: none;
}

@media (max-width: 900px) {
  .escritores-grid { grid-template-columns: 1fr; min-height: auto; }
  .escritores-text { padding: 64px 24px 50px; }
  .escritores-visual { min-height: 280px; order: -1; }
}

/* ═══════════════ REDES ═══════════════ */
.redes {
  background: var(--gris-1);
  text-align: center;
}
.redes-icons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 10px;
}
.redes-icons a {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--blanco);
  color: var(--negro);
  display: grid;
  place-items: center;
  transition: all 0.3s var(--ease);
  box-shadow: var(--shadow-sm);
}
.redes-icons a:hover {
  background: var(--negro);
  color: var(--dorado);
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
.redes-icons svg { width: 24px; height: 24px; fill: currentColor; }

/* ═══════════════ FOOTER ═══════════════ */
.footer {
  background: var(--negro);
  color: rgba(255,255,255,0.7);
  padding: 72px 0 28px;
  position: relative;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.1fr;
  gap: 44px;
  margin-bottom: 50px;
}
.footer-col h5 {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dorado);
  margin-bottom: 18px;
}
.footer-col p, .footer-col li {
  font-size: 0.88rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.65);
  margin-bottom: 10px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col a { color: rgba(255,255,255,0.65); transition: color 0.2s; }
.footer-col a:hover { color: var(--dorado); }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand img { height: 44px; width: auto; }
.footer-brand h4 {
  font-size: 1.1rem; color: var(--blanco); margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.footer-contact li {
  display: flex; align-items: flex-start; gap: 10px;
}
.footer-contact svg { width: 15px; height: 15px; color: var(--dorado); margin-top: 3px; flex-shrink: 0; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer { padding: 56px 0 24px; }
}

/* ═══════════════ WHATSAPP FLOATING ═══════════════ */
.wa-float {
  position: fixed;
  right: 22px; bottom: 22px;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--wa);
  color: var(--blanco);
  display: grid;
  place-items: center;
  box-shadow: 0 14px 32px rgba(37,211,102,0.4);
  z-index: 80;
  transition: transform 0.2s;
}
.wa-float:hover { transform: scale(1.08); color: var(--blanco); }
.wa-float::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--wa);
  opacity: 0.5;
  animation: ping2 2s infinite;
}
@keyframes ping2 {
  0% { transform: scale(0.9); opacity: 0.6; }
  100% { transform: scale(1.3); opacity: 0; }
}
.wa-float svg { width: 26px; height: 26px; fill: currentColor; }

/* Brand logo (inline SVG) */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--blanco);
  text-decoration: none;
}
.brand-mark {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: var(--dorado);
  border-radius: 12px;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 14px rgba(254,197,3,0.3);
  transition: transform 0.25s var(--ease);
  position: relative;
}
.brand-logo:hover .brand-mark { transform: rotate(-6deg) scale(1.05); }
.brand-mark svg {
  width: 28px;
  height: 28px;
  color: var(--negro);
}
.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand-name .n1 {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--blanco);
  text-transform: uppercase;
}
.brand-name .n2 {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--dorado);
  margin-top: 5px;
}
.footer .brand-mark { width: 40px; height: 40px; }
.footer .brand-mark svg { width: 24px; height: 24px; }

/* Image fallback: if broken, show a placeholder-ish bg */
img {
  background: linear-gradient(135deg, #f4f4f4 0%, #eaeaea 100%);
}

/* ═══════════════ COMPOSICIONES GRÁFICAS (Objetivo/Misión/Visión/Escritores) ═══════════════ */
.graphic {
  width: 100%;
  height: 100%;
  min-height: 340px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.graphic svg { display: block; }

.graphic-objetivo {
  background:
    radial-gradient(circle at 30% 30%, #fff7d6 0%, transparent 55%),
    linear-gradient(135deg, #1a1a1a 0%, #2c2c2c 100%);
}
.graphic-objetivo .bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(254,197,3,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(254,197,3,0.06) 1px, transparent 1px);
  background-size: 32px 32px;
}
.graphic-objetivo .target {
  position: relative;
  width: 70%;
  max-width: 280px;
  aspect-ratio: 1;
  z-index: 2;
}

.graphic-mision {
  background: linear-gradient(160deg, #fffbe9 0%, #fff 100%);
}
.graphic-mision-v2 {
  background:
    radial-gradient(circle at 30% 20%, rgba(254,197,3,0.18), transparent 55%),
    radial-gradient(circle at 70% 85%, rgba(254,197,3,0.10), transparent 50%),
    #f8f5ec;
  position: relative;
  overflow: hidden;
}
.graphic-mision-v2::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(#1a1a1a 0.5px, transparent 0.5px),
    linear-gradient(90deg, #1a1a1a 0.5px, transparent 0.5px);
  background-size: 22px 22px;
  opacity: 0.06;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 40%, transparent 80%);
          mask-image: radial-gradient(ellipse at center, #000 40%, transparent 80%);
}
.graphic-mision-v2 svg {
  position: relative;
  z-index: 2;
  width: 80%;
  height: 80%;
}
.graphic-mision::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 2px 2px, rgba(254,197,3,0.22) 1.5px, transparent 2px);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse at center, #000 40%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 40%, transparent 75%);
}
.graphic-mision svg {
  position: relative;
  z-index: 2;
  width: 75%;
  max-width: 300px;
}

.graphic-vision {
  background:
    radial-gradient(ellipse at 50% 120%, #fec503 0%, transparent 45%),
    linear-gradient(180deg, #1a1a1a 0%, #2c2c2c 100%);
}
.graphic-vision .rays {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}
.graphic-vision .rays::before {
  content: "";
  width: 300%;
  aspect-ratio: 2;
  background: conic-gradient(from 180deg at 50% 100%,
    transparent 0deg, rgba(254,197,3,0.18) 10deg, transparent 20deg,
    transparent 30deg, rgba(254,197,3,0.15) 40deg, transparent 50deg,
    transparent 60deg, rgba(254,197,3,0.18) 70deg, transparent 80deg,
    transparent 90deg, rgba(254,197,3,0.15) 100deg, transparent 110deg,
    transparent 360deg);
}
.graphic-vision svg {
  position: relative;
  z-index: 2;
  width: 65%;
  max-width: 240px;
}

/* Escritores graphic */
.graphic-escritores {
  background:
    radial-gradient(circle at 20% 20%, rgba(254,197,3,0.18) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(254,197,3,0.10) 0%, transparent 50%),
    linear-gradient(135deg, #242424 0%, #1a1a1a 100%);
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.graphic-escritores::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(254,197,3,0.04) 1px, transparent 1px);
  background-size: 100% 34px;
  opacity: 0.6;
}
.graphic-escritores .composition {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 440px;
  aspect-ratio: 1;
}
.graphic-escritores .book-stack {
  position: absolute;
  inset: 0;
}
.graphic-escritores .paper {
  position: absolute;
  background: #f8f4e8;
  border-radius: 4px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.45), 0 0 0 1px rgba(0,0,0,0.05);
  padding: 26px 22px;
  font-family: 'Open Sans', serif;
}
.graphic-escritores .paper-lines {
  height: 3px;
  background: rgba(26,26,26,0.08);
  border-radius: 2px;
  margin-bottom: 9px;
}
.graphic-escritores .paper-lines.short { width: 60%; }
.graphic-escritores .paper-lines.mid { width: 85%; }
.graphic-escritores .paper-lines.full { width: 100%; }
.graphic-escritores .paper-lines.gold {
  background: var(--dorado);
  height: 5px;
  width: 40%;
  margin-bottom: 14px;
}
.graphic-escritores .paper-1 {
  left: 8%; top: 10%;
  width: 56%; height: 75%;
  transform: rotate(-6deg);
  z-index: 1;
}
.graphic-escritores .paper-2 {
  right: 6%; top: 8%;
  width: 52%; height: 70%;
  transform: rotate(5deg);
  background: #fff;
  z-index: 2;
}
.graphic-escritores .pen-mark {
  position: absolute;
  right: -12%;
  bottom: 8%;
  width: 180px;
  height: 180px;
  z-index: 3;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3));
}
.graphic-escritores .floating-quote {
  position: absolute;
  left: -5%;
  bottom: 10%;
  background: var(--dorado);
  color: var(--negro);
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  z-index: 4;
  box-shadow: 0 14px 30px rgba(0,0,0,0.35);
  transform: rotate(-4deg);
}
@media (max-width: 900px) {
  .graphic { min-height: 280px; }
  .graphic-escritores { padding: 24px; min-height: 320px; }
}

/* Reveal */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
