/* ============================================================
   Uriel Zalcman — Marca personal (estilo editorial claro)
   ============================================================ */

:root {
  --cream: #faf7f2;
  --cream-2: #f2ece1;
  --ink: #1c1712;
  --ink-soft: #4a4238;
  --muted: #7a7064;
  --line: #e4dccf;
  --accent: #b06a35;      /* terracota / dorado tostado */
  --accent-dark: #8a5228;
  --accent-soft: #f0e0d0;
  --dark: #241d16;
  --white: #ffffff;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --maxw: 1140px;
  --radius: 18px;
  --shadow: 0 18px 50px -24px rgba(40, 30, 20, 0.35);
  --shadow-sm: 0 6px 20px -12px rgba(40, 30, 20, 0.3);
}

/* ---------- Reset ligero ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: min(100% - 40px, var(--maxw)); margin-inline: auto; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--cream); padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Tipografía ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; letter-spacing: -0.01em; color: var(--ink); }
h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); font-weight: 600; }
h1 em, h2 em { font-style: italic; color: var(--accent); font-weight: 500; }
h2 { font-size: clamp(1.8rem, 3.8vw, 2.9rem); }
h3 { font-size: 1.35rem; }

.eyebrow {
  font-family: var(--sans); text-transform: uppercase; letter-spacing: 0.18em;
  font-size: 0.74rem; font-weight: 600; color: var(--accent); margin-bottom: 14px;
}
.eyebrow.light { color: var(--accent-soft); }

.prose p + p { margin-top: 1.1em; }
.section-sub { color: var(--muted); font-size: 1.12rem; margin-top: 12px; max-width: 46ch; }
.section-sub.light { color: rgba(255,255,255,0.7); }
.center { text-align: center; margin-inline: auto; }
.center .section-sub { margin-inline: auto; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-weight: 600; font-size: 0.98rem;
  padding: 14px 26px; border-radius: 100px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-light { background: var(--cream); color: var(--ink); }
.btn-light:hover { background: var(--white); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 247, 242, 0.82);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 11px; background: var(--accent); color: var(--cream);
  display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: 1.05rem;
}
.brand-name { font-family: var(--serif); font-weight: 600; font-size: 1.18rem; }
.nav-menu { list-style: none; display: flex; align-items: center; gap: 30px; }
.nav-menu a { font-size: 0.97rem; font-weight: 500; color: var(--ink-soft); transition: color .15s; }
.nav-menu a:hover { color: var(--accent); }
.nav-cta {
  background: var(--ink); color: var(--cream) !important; padding: 10px 20px; border-radius: 100px;
}
.nav-cta:hover { background: var(--accent) !important; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; }

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center;
  padding: clamp(50px, 8vw, 96px) 0 clamp(40px, 6vw, 70px);
}
.hero-text h1 { margin-bottom: 22px; }
.hero-lead { font-size: 1.18rem; color: var(--ink-soft); max-width: 48ch; }
.hero-lead a { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 40px; }
.hero-stats { list-style: none; display: flex; flex-wrap: wrap; gap: 32px; border-top: 1px solid var(--line); padding-top: 26px; }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-family: var(--serif); font-size: 1.25rem; color: var(--ink); }
.hero-stats span { font-size: 0.85rem; color: var(--muted); }

.hero-portrait { display: flex; justify-content: center; }
.portrait-frame {
  width: 100%; max-width: 360px; aspect-ratio: 4/5; border-radius: 24px; overflow: hidden;
  background: linear-gradient(160deg, var(--accent-soft), var(--cream-2));
  border: 1px solid var(--line); box-shadow: var(--shadow); position: relative;
}
.portrait-frame::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 70% 0%, rgba(176,106,53,0.12), transparent 60%);
}
.portrait-placeholder {
  position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 6px;
  color: var(--accent-dark);
}
.portrait-placeholder span { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; }
.portrait-placeholder small { color: var(--muted); font-size: 0.8rem; }

/* ---------- Franja de confianza ---------- */
.trust { background: var(--dark); color: var(--cream); }
.trust-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 26px; padding: 20px 0; text-align: center; }
.trust-label { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.5); }
.trust-logos { display: flex; align-items: center; gap: 14px; }
.trust-logo { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; }
.trust-sep { color: var(--accent); }

/* ---------- Secciones ---------- */
.section { padding: clamp(56px, 9vw, 110px) 0; }
.section-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 50px; align-items: start; }
.section-head { max-width: 620px; }
.section-head h2 { margin-top: 4px; }

.check-list { list-style: none; margin-top: 24px; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 34px; font-weight: 500; color: var(--ink-soft); }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: -1px;
  width: 22px; height: 22px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-dark);
  display: grid; place-items: center; font-size: 0.75rem; font-weight: 700;
}

/* ---------- Libros ---------- */
.section-books { background: var(--cream-2); }
.section-books .section-head { margin-bottom: 52px; }
.books-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.book-card {
  position: relative; background: var(--white); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease; display: flex; flex-direction: column;
}
.book-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.book-card.featured { border-color: var(--accent); }
.book-badge {
  position: absolute; top: 14px; right: 14px; z-index: 2; background: var(--accent); color: var(--white);
  font-size: 0.72rem; font-weight: 600; padding: 6px 12px; border-radius: 100px; letter-spacing: 0.03em;
}
.book-cover {
  aspect-ratio: 3/4; display: grid; place-items: center; padding: 24px; text-align: center;
  background-size: cover; background-position: center; position: relative;
}
.book-cover::after { content: ""; position: absolute; inset: 0; box-shadow: inset -8px 0 18px -12px rgba(0,0,0,0.35); }
.book-cover-title { font-family: var(--serif); font-weight: 700; font-size: 1.5rem; color: var(--white); line-height: 1.15; z-index: 1; text-shadow: 0 2px 12px rgba(0,0,0,0.3); }
.cover-1 { background: linear-gradient(150deg, #2f4858, #1d2f3a); }
.cover-2 { background: linear-gradient(150deg, var(--accent), var(--accent-dark)); }
.cover-3 { background: linear-gradient(150deg, #5a4a6a, #372c45); }
.book-info { padding: 22px 22px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.book-info h3 { font-size: 1.25rem; }
.book-info p { color: var(--muted); font-size: 0.97rem; flex: 1; }
.book-link { color: var(--accent); font-weight: 600; font-size: 0.96rem; margin-top: 4px; transition: gap .15s; }
.book-link:hover { color: var(--accent-dark); }

/* ---------- Libro destacado ---------- */
.book-feature {
  display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px; align-items: center;
  background: var(--white); border: 1px solid var(--line); border-radius: 24px;
  padding: clamp(28px, 4vw, 52px); box-shadow: var(--shadow);
}
.book-feature-cover {
  aspect-ratio: 3/4; border-radius: 14px; display: flex; flex-direction: column; justify-content: center;
  align-items: center; gap: 16px; text-align: center; padding: 30px; max-width: 320px; margin-inline: auto;
  width: 100%; box-shadow: 0 24px 60px -24px rgba(138,82,40,0.6); position: relative; overflow: hidden;
}
.book-feature-cover::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 10px;
  background: rgba(0,0,0,0.18); box-shadow: inset -3px 0 8px rgba(0,0,0,0.2);
}
.book-feature-cover .book-cover-title { font-size: 2.4rem; }
.book-cover-author { font-family: var(--sans); font-size: 0.9rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.85); z-index: 1; }
.book-feature-info h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: 6px 0 16px; }
.book-feature-info p { color: var(--ink-soft); }
.book-feature-info .check-list { margin: 22px 0 28px; }
.book-feature-info .check-list li { font-size: 0.98rem; }

/* ---------- Artículos (grilla) ---------- */
.articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.article-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease;
  display: flex; flex-direction: column; gap: 12px; height: 100%;
}
.article-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.article-tag { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); }
.article-card h3 { font-size: 1.22rem; }
.article-card p { color: var(--muted); font-size: 0.95rem; flex: 1; }
.article-card .read { color: var(--accent); font-weight: 600; font-size: 0.92rem; }
.articles-more { text-align: center; margin-top: 40px; }

/* ---------- Proyectos ---------- */
.ventures-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 48px; }
.venture-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease;
  display: flex; flex-direction: column; gap: 12px;
}
.venture-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.venture-top { display: flex; justify-content: space-between; align-items: center; }
.venture-logo { font-family: var(--serif); font-size: 1.4rem; font-weight: 700; color: var(--accent); }
.venture-arrow { font-size: 1.3rem; color: var(--muted); transition: transform .2s; }
.venture-card:hover .venture-arrow { transform: translate(3px, -3px); color: var(--accent); }
.venture-card h3 { font-size: 1.3rem; }
.venture-card p { color: var(--ink-soft); font-size: 0.98rem; }
.venture-tag {
  align-self: flex-start; margin-top: 6px; font-size: 0.78rem; font-weight: 600; color: var(--accent-dark);
  background: var(--accent-soft); padding: 5px 13px; border-radius: 100px;
}

/* ---------- Mentoría ---------- */
.section-mentoria { background: var(--dark); color: var(--cream); }
.mentoria-inner { display: flex; justify-content: center; text-align: center; }
.mentoria-inner .section-head { max-width: 640px; }
.mentoria-inner h2 { color: var(--cream); }
.mentoria-inner .btn { margin-top: 30px; }

/* ---------- Contacto ---------- */
.contacto-inner { text-align: center; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-top: 34px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--cream-2); border-top: 1px solid var(--line); padding-top: 48px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 30px; padding-bottom: 34px; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand strong { display: block; font-family: var(--serif); font-size: 1.1rem; }
.footer-brand span { font-size: 0.85rem; color: var(--muted); }
.footer-links, .footer-social { list-style: none; display: flex; flex-wrap: wrap; gap: 22px; align-items: center; }
.footer-links a, .footer-social a { font-size: 0.94rem; color: var(--ink-soft); transition: color .15s; }
.footer-links a:hover, .footer-social a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--line); padding: 22px 0; font-size: 0.86rem; color: var(--muted); text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 40px; }
  .hero-portrait { order: -1; }
  .portrait-frame { max-width: 300px; }
  .section-grid { grid-template-columns: 1fr; gap: 28px; }
  .books-grid { grid-template-columns: repeat(2, 1fr); }
  .ventures-grid { grid-template-columns: 1fr; }
  .book-feature { grid-template-columns: 1fr; gap: 32px; }
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .3s ease; align-items: stretch;
  }
  .nav-menu.open { max-height: 380px; }
  .nav-menu li { border-top: 1px solid var(--line); }
  .nav-menu a { display: block; padding: 16px 20px; }
  .nav-cta { border-radius: 0; text-align: center; }
  .books-grid { grid-template-columns: 1fr; max-width: 360px; margin-inline: auto; }
  .articles-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 22px; }
  .footer-inner { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* ============================================================
   PÁGINA DE ARTÍCULO (lectura)
   ============================================================ */
.article-hero { padding: clamp(40px, 6vw, 72px) 0 10px; }
.article-hero .breadcrumb { font-size: 0.88rem; color: var(--muted); margin-bottom: 20px; }
.article-hero .breadcrumb a { color: var(--accent); }
.article-hero .breadcrumb a:hover { text-decoration: underline; }
.article-part { color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.74rem; }
.article-hero h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); margin: 14px 0 18px; max-width: 20ch; }
.article-hero .article-lead { font-size: 1.22rem; color: var(--ink-soft); max-width: 60ch; }
.article-meta { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 0.9rem; color: var(--muted); }
.article-meta .author { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); }
.article-meta .brand-mark { width: 34px; height: 34px; font-size: 0.95rem; }

.article-body { width: min(100% - 40px, 720px); margin: 40px auto 0; font-size: 1.12rem; }
.article-body h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 46px 0 16px; }
.article-body h3 { font-size: 1.3rem; margin: 32px 0 12px; }
.article-body p { margin-bottom: 1.25em; color: var(--ink-soft); }
.article-body strong { color: var(--ink); }
.article-body ul, .article-body ol { margin: 0 0 1.4em 1.2em; display: grid; gap: 10px; }
.article-body li { color: var(--ink-soft); padding-left: 6px; }
.article-body blockquote {
  margin: 34px 0; padding: 22px 28px; border-left: 4px solid var(--accent);
  background: var(--cream-2); border-radius: 0 12px 12px 0; font-family: var(--serif);
  font-size: 1.3rem; font-style: italic; color: var(--ink);
}
.article-body blockquote cite { display: block; margin-top: 10px; font-size: 0.9rem; font-style: normal; color: var(--muted); }
.article-body .verse {
  font-family: var(--serif); font-size: 1.25rem; text-align: center; color: var(--accent-dark);
  margin: 30px auto; max-width: 46ch; line-height: 1.5;
}
.article-body .takeaway {
  margin: 40px 0; padding: 28px 30px; background: var(--dark); color: var(--cream);
  border-radius: var(--radius); font-family: var(--serif); font-size: 1.3rem; line-height: 1.4;
}
.article-body .takeaway span { display: block; font-family: var(--sans); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--accent-soft); margin-bottom: 12px; }

.article-cta {
  width: min(100% - 40px, 720px); margin: 56px auto 0; padding: 34px; text-align: center;
  background: var(--cream-2); border: 1px solid var(--line); border-radius: var(--radius);
}
.article-cta h3 { font-size: 1.5rem; margin-bottom: 10px; }
.article-cta p { color: var(--muted); margin-bottom: 22px; }
.article-cta .hero-actions { justify-content: center; }

.article-nav { width: min(100% - 40px, 720px); margin: 48px auto 0; display: flex; justify-content: space-between; gap: 16px; }
.article-nav a { flex: 1; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); transition: border-color .18s, transform .18s; }
.article-nav a:hover { border-color: var(--accent); transform: translateY(-3px); }
.article-nav small { color: var(--muted); font-size: 0.78rem; }
.article-nav strong { display: block; font-family: var(--serif); font-size: 1.05rem; margin-top: 4px; }
.article-nav .next { text-align: right; }
.article-nav .disabled { opacity: 0.35; pointer-events: none; }

/* Índice de artículos */
.articles-index-hero { padding: clamp(48px, 7vw, 84px) 0 20px; text-align: center; }
.articles-index-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.articles-index-hero p { color: var(--muted); font-size: 1.15rem; max-width: 56ch; margin: 16px auto 0; }
.part-block { margin-top: 56px; }
.part-block > h2 { font-size: 1.4rem; padding-bottom: 12px; border-bottom: 2px solid var(--accent-soft); margin-bottom: 28px; }
.part-block > h2 span { color: var(--accent); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; display: block; }

@media (max-width: 600px) {
  .article-nav { flex-direction: column; }
  .article-body blockquote { font-size: 1.12rem; padding: 18px 20px; }
}

/* ---------- Animación de entrada ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.16,.8,.3,1), transform .7s cubic-bezier(.16,.8,.3,1); }
.reveal.visible { opacity: 1; transform: none; }
/* stagger para grillas */
.stagger > * { opacity: 0; transform: translateY(26px); transition: opacity .6s cubic-bezier(.16,.8,.3,1), transform .6s cubic-bezier(.16,.8,.3,1); }
.stagger.visible > * { opacity: 1; transform: none; }
.stagger.visible > *:nth-child(2) { transition-delay: .07s; }
.stagger.visible > *:nth-child(3) { transition-delay: .14s; }
.stagger.visible > *:nth-child(4) { transition-delay: .21s; }
.stagger.visible > *:nth-child(5) { transition-delay: .28s; }
.stagger.visible > *:nth-child(6) { transition-delay: .35s; }

/* ============================================================
   MEJORAS UX/UI — animaciones y elementos virales
   ============================================================ */

/* ---------- Barra de progreso de scroll ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--accent), #e0a35a);
  z-index: 200; transition: width .1s linear; box-shadow: 0 0 10px rgba(176,106,53,.5);
}

/* ---------- Hero: fondo animado ---------- */
.hero { position: relative; }
.hero-bg { position: absolute; inset: -10% -5% 0; z-index: 0; overflow: hidden; pointer-events: none; }
.hero > .hero-text, .hero > .hero-portrait { position: relative; z-index: 1; }
.blob {
  position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5;
  animation: float-blob 16s ease-in-out infinite;
}
.blob-1 { width: 380px; height: 380px; top: -60px; left: -40px; background: radial-gradient(circle, #e9c9a6, transparent 70%); }
.blob-2 { width: 320px; height: 320px; top: 120px; right: 4%; background: radial-gradient(circle, #d9b7d6, transparent 70%); animation-delay: -5s; }
.blob-3 { width: 300px; height: 300px; bottom: -80px; left: 30%; background: radial-gradient(circle, #a9c9d1, transparent 70%); animation-delay: -9s; }
@keyframes float-blob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -24px) scale(1.08); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

.eyebrow-badge {
  display: inline-block; background: var(--accent-soft); color: var(--accent-dark);
  padding: 7px 16px; border-radius: 100px; letter-spacing: 0.12em; margin-bottom: 20px;
}

/* ---------- Botón YouTube ---------- */
.btn-yt { background: #ff0033; color: #fff; gap: 9px; box-shadow: 0 8px 24px -10px rgba(255,0,51,.6); }
.btn-yt:hover { background: #e60030; }
.btn-yt svg { flex: none; }
.btn-yt-lg { padding: 16px 30px; font-size: 1.05rem; }

/* ---------- Hero portrait con foto real ---------- */
.hero-portrait { position: relative; }
.portrait-frame {
  width: 100%; max-width: 380px; aspect-ratio: 4/5; border-radius: 26px; overflow: visible;
  background: none; border: none; position: relative;
  animation: portrait-in 1s cubic-bezier(.16,.8,.3,1) both;
}
.portrait-frame img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 26px;
  box-shadow: var(--shadow); border: 5px solid var(--white);
}
.portrait-frame::before {
  content: ""; position: absolute; inset: -14px; border-radius: 34px; z-index: -1;
  background: conic-gradient(from 0deg, var(--accent), #e0a35a, #d9b7d6, var(--accent));
  filter: blur(14px); opacity: .55; animation: spin-ring 12s linear infinite;
}
.portrait-frame::after { content: none; }
@keyframes spin-ring { to { transform: rotate(360deg); } }
@keyframes portrait-in { from { opacity: 0; transform: translateY(30px) scale(.96); } to { opacity: 1; transform: none; } }

.portrait-badge {
  position: absolute; bottom: 18px; left: -18px; display: flex; align-items: center; gap: 8px;
  background: #fff; color: #ff0033; padding: 10px 16px 10px 12px; border-radius: 100px;
  box-shadow: var(--shadow); font-weight: 600; font-size: 0.9rem;
  animation: bob 3.5s ease-in-out infinite;
}
.portrait-badge span { color: var(--ink); }
.portrait-badge:hover { transform: translateY(-3px); }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

/* ---------- Marquee de confianza ---------- */
.trust { overflow: hidden; padding: 18px 0; }
.marquee { display: flex; width: 100%; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; align-items: center; gap: 22px; white-space: nowrap; animation: marquee 26s linear infinite; }
.trust:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Segundo libro (invertido) ---------- */
.book-feature-alt { margin-top: 34px; }
.book-feature-alt .cover-3 { background: linear-gradient(150deg, #5a4a6a, #2c2338); }
.badge-soon { background: var(--accent); color: #fff; padding: 3px 10px; border-radius: 100px; font-size: 0.66rem; letter-spacing: 0.08em; }

/* ---------- Sección YouTube ---------- */
.section-youtube { background: linear-gradient(160deg, #1a1410, #2a1a12); color: var(--cream); position: relative; overflow: hidden; }
.section-youtube::before { content: ""; position: absolute; width: 500px; height: 500px; border-radius: 50%; background: radial-gradient(circle, rgba(255,0,51,.22), transparent 70%); top: -160px; right: -120px; filter: blur(30px); }
.youtube-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; position: relative; }
.youtube-copy h2 { color: var(--cream); }
.youtube-copy .btn { margin-top: 26px; }
.youtube-visual {
  aspect-ratio: 16/10; border-radius: 20px; position: relative; display: grid; place-items: center;
  background: linear-gradient(135deg, #ff0033, #b00020); box-shadow: 0 30px 60px -25px rgba(255,0,51,.6);
  overflow: hidden;
}
.youtube-visual::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, rgba(255,255,255,.05) 0 2px, transparent 2px 22px); }
.yt-play {
  width: 84px; height: 84px; border-radius: 50%; background: #fff; color: #ff0033;
  display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.3); z-index: 1;
  animation: pulse-play 2.4s ease-in-out infinite;
}
.yt-play svg { margin-left: 4px; }
@keyframes pulse-play { 0%,100% { box-shadow: 0 0 0 0 rgba(255,255,255,.5); } 70% { box-shadow: 0 0 0 22px rgba(255,255,255,0); } }
.yt-visual-label { position: absolute; bottom: 16px; left: 20px; color: #fff; font-weight: 600; letter-spacing: 0.05em; z-index: 1; }

/* ---------- Botones flotantes (FAB) ---------- */
.fab-stack { position: fixed; right: 20px; bottom: 20px; z-index: 120; display: flex; flex-direction: column; gap: 14px; }
.fab {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  box-shadow: 0 10px 26px -8px rgba(0,0,0,.45); transition: transform .2s ease, box-shadow .2s ease;
  animation: fab-in .5s ease both;
}
.fab:hover { transform: scale(1.1) translateY(-2px); }
.fab-wa { background: #25d366; }
.fab-yt { background: #ff0033; }
@keyframes fab-in { from { opacity: 0; transform: scale(.3); } to { opacity: 1; transform: scale(1); } }

/* ---------- Micro-interacción en botones primarios (brillo) ---------- */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-20deg); transition: left .6s ease;
}
.btn-primary:hover::after { left: 140%; }

/* ---------- Responsive extra ---------- */
@media (max-width: 900px) {
  .youtube-inner { grid-template-columns: 1fr; gap: 30px; }
  .book-feature-alt { grid-template-columns: 1fr; }
  .book-feature-alt .book-feature-cover { order: -1; }
  .portrait-badge { left: 0; }
}
@media (max-width: 720px) {
  .fab { width: 50px; height: 50px; }
  .fab-stack { right: 14px; bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .blob, .portrait-frame::before, .marquee-track, .yt-play, .fab, .portrait-badge, .portrait-frame { animation: none !important; }
}
