/* ═══════════════════════════════════════════════════
   danibernal.com — CSS compartido de las páginas
   (Home, Asesorías, Recursos)
   La landing /curso-metodo-veda/ mantiene su CSS propio.
   Mismo sistema de diseño: variables idénticas a la landing.
═══════════════════════════════════════════════════ */

/* ─────────────────────────────────────
   VARIABLES
───────────────────────────────────── */
:root {
  --black:    #0d0d0d;
  --navy:     #1a1f2e;
  --white:    #ffffff;
  --bg:       #f5f2ee;
  --gray-1:   #f5f2ee;
  --gray-2:   #e4e0da;
  --gray-3:   #a8a096;
  --gray-4:   #6b6560;
  --gray-5:   #2a2520;
  --text:     #1a1f2e;
  --accent:   #b84e2a;
  --accent-2: #059669;
  --warm:     #92400e;
  --footer-bg: #0b1120;
  --serif:    'Playfair Display', Georgia, serif;
  --serif-alt: 'Cormorant Garamond', Georgia, serif;
  --sans:     'DM Sans', system-ui, sans-serif;
  --r:        3px;
  --ease:     .3s ease;
}

/* ─────────────────────────────────────
   RESET
───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img  { display: block; max-width: 100%; }
a    { color: inherit; text-decoration: none; }
ul   { list-style: none; }

h1, h2, h3 {
  font-family: var(--serif);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* ─────────────────────────────────────
   UTILIDADES
───────────────────────────────────── */
.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
}

.label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gray-4);
}

.label--light { color: rgba(255,255,255,.45); }

.divider {
  width: 40px;
  height: 1px;
  background: var(--gray-2);
  margin: 20px 0;
}

.divider--white { background: rgba(255,255,255,.20); }

/* ─────────────────────────────────────
   BOTONES
───────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .3px;
  padding: 15px 32px;
  border-radius: var(--r);
  border: none;
  cursor: pointer;
  transition: background var(--ease), color var(--ease), transform var(--ease), border-color var(--ease);
}

.btn--dark { background: var(--navy); color: var(--white); }
.btn--dark:hover { background: #253a6e; transform: translateY(-1px); }

.btn--white { background: var(--white); color: var(--navy); }
.btn--white:hover { background: var(--gray-1); transform: translateY(-1px); }

.btn--outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,.35);
}
.btn--outline:hover { background: rgba(255,255,255,.08); }

.btn--outline-dark {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--gray-3);
}
.btn--outline-dark:hover { border-color: var(--navy); background: rgba(26,31,46,.04); }

.btn--cta {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(184,78,42,.45);
}
.btn--cta:hover { background: #a0401f; transform: translateY(-2px); box-shadow: 0 6px 24px rgba(184,78,42,.55); }

/* ─────────────────────────────────────
   ANIMACIONES REVEAL
───────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .1s; }
.reveal.d2 { transition-delay: .2s; }
.reveal.d3 { transition-delay: .3s; }
.reveal.d4 { transition-delay: .4s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ═══════════════════════════════════
   NAVBAR
═══════════════════════════════════ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 16px 0;
  transition: background var(--ease), box-shadow var(--ease);
}
.nav.solid {
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--gray-2);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nav-logo {
  font-family: var(--serif-alt);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 4px;
  color: var(--white);
  text-transform: uppercase;
  white-space: nowrap;
  transition: color var(--ease);
}
.nav.solid .nav-logo { color: var(--navy); }

/* En páginas de fondo claro la nav nace sólida */
.nav--light .nav-logo { color: var(--navy); }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-menu a {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,.70);
  transition: color var(--ease);
}
.nav-menu a:hover,
.nav-menu a[aria-current="page"] { color: var(--white); }

.nav.solid .nav-menu a,
.nav--light .nav-menu a { color: var(--gray-4); }
.nav.solid .nav-menu a:hover,
.nav.solid .nav-menu a[aria-current="page"],
.nav--light .nav-menu a:hover,
.nav--light .nav-menu a[aria-current="page"] { color: var(--navy); }

.nav-cta {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  background: var(--accent);
  color: var(--white);
  padding: 9px 22px;
  border-radius: var(--r);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--ease);
}
.nav-cta:hover { background: #a0401f; }

/* Social en la barra (mismo bloque que la landing del curso) */
.nav-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-social {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-social-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,.55);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: var(--r);
  transition: color var(--ease), background var(--ease);
}
.nav-social-link:hover {
  color: var(--white);
  background: rgba(255,255,255,.08);
}
.nav-social-link svg {
  width: 15px; height: 15px;
  fill: currentColor;
  flex-shrink: 0;
}

.nav.solid .nav-social-link,
.nav--light .nav-social-link { color: var(--gray-4); }
.nav.solid .nav-social-link:hover,
.nav--light .nav-social-link:hover { color: var(--navy); background: var(--gray-1); }

.nav-social-sep {
  width: 1px;
  height: 16px;
  background: rgba(255,255,255,.15);
  flex-shrink: 0;
}
.nav.solid .nav-social-sep,
.nav--light .nav-social-sep { background: var(--gray-2); }

@media (max-width: 768px) {
  .nav-social-text { display: none; }
  .nav-social-link { padding: 6px 8px; }
}
@media (max-width: 400px) {
  .nav-social { display: none; }
}

/* Menú móvil: fila scrollable bajo el logo */
@media (max-width: 860px) {
  .nav { padding: 12px 0; }
  .nav-inner { flex-wrap: wrap; row-gap: 8px; }
  .nav-menu {
    order: 3;
    width: 100%;
    overflow-x: auto;
    gap: 20px;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .nav-menu::-webkit-scrollbar { display: none; }
  .nav-menu a { white-space: nowrap; font-size: 12px; }
  .nav-cta { padding: 8px 16px; font-size: 12px; }
}

/* ═══════════════════════════════════
   HERO OSCURO (home)
═══════════════════════════════════ */
.hero {
  background: var(--navy);
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-photo-panel {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 42%;
  background-image:
    linear-gradient(to right,  var(--navy) 0%, rgba(26,39,68,.92) 15%, rgba(26,39,68,.4) 40%, rgba(26,39,68,0) 60%),
    linear-gradient(to bottom, var(--navy) 0%, transparent 18%, transparent 62%, var(--navy) 88%),
    url('/img/dani-bernal.webp');
  background-size: 100%, 100%, cover;
  background-position: 0 0, 0 0, center top;
  background-repeat: no-repeat;
}

.hero-inner { max-width: 620px; position: relative; z-index: 2; }

.hero-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,.50);
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(38px, 5.4vw, 62px);
  color: var(--white);
  font-weight: 600;
  margin-bottom: 22px;
}

.hero h1 em {
  font-style: italic;
  font-weight: 300;
  color: rgba(255,255,255,.55);
}

.hero-lead {
  font-size: 17px;
  color: rgba(255,255,255,.60);
  margin-bottom: 40px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

@media (max-width: 860px) {
  .hero { min-height: auto; padding: 150px 0 60px; }
  .hero-photo-panel { display: none; }
}

/* ═══════════════════════════════════
   HERO CLARO (páginas interiores)
═══════════════════════════════════ */
.page-hero {
  padding: 160px 0 70px;
  background: var(--white);
  border-bottom: 1px solid var(--gray-2);
}

.page-hero .label { display: block; margin-bottom: 18px; }

.page-hero h1 {
  font-size: clamp(34px, 4.6vw, 54px);
  font-weight: 600;
  max-width: 720px;
  margin-bottom: 18px;
}

.page-hero h1 em {
  font-style: italic;
  font-weight: 300;
  color: var(--gray-4);
}

.page-hero p {
  font-size: 17px;
  color: var(--gray-4);
  max-width: 600px;
}

/* ═══════════════════════════════════
   SECCIONES GENÉRICAS
═══════════════════════════════════ */
.section { padding: 100px 0; }
.section--white { background: var(--white); }
.section--navy  { background: var(--navy); }

.section-top { max-width: 640px; margin-bottom: 56px; }
.section-top .label { display: block; margin-bottom: 16px; }
.section-top h2 {
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 600;
}
.section-top h2 em {
  font-style: italic;
  font-weight: 300;
  color: var(--gray-4);
}
.section-top p { margin-top: 16px; color: var(--gray-4); }

/* ═══════════════════════════════════
   CARDS (servicios / recursos)
═══════════════════════════════════ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--white);
  border: 1px solid var(--gray-2);
  border-radius: 4px;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: transform var(--ease), box-shadow var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 20px 48px rgba(0,0,0,.08); }

.card--featured { border-top: 3px solid var(--accent); }

.card .label { letter-spacing: 2px; }

.card h3 { font-size: 24px; font-weight: 600; }

.card p { font-size: 14.5px; color: var(--gray-4); flex-grow: 1; }

.card-price {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--navy);
}
.card-price small { font-family: var(--sans); font-size: 12px; color: var(--gray-3); }

.card-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: .3px;
}
.card-link:hover { text-decoration: underline; }

@media (max-width: 860px) {
  .cards-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════
   PERFIL / BIO
═══════════════════════════════════ */
.profile-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 72px;
  align-items: start;
}

.profile-photo {
  position: sticky;
  top: 100px;
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,.10);
}

.profile-photo-crop {
  width: 100%;
  aspect-ratio: 3 / 4;
  background-image: url('/img/dani-perfil.webp');
  background-size: cover;
  background-position: center 12%;
  background-repeat: no-repeat;
  filter: contrast(1.03) brightness(1.02) saturate(0.95);
}

.profile-text .label { display: block; margin-bottom: 20px; }
.profile-text h2 {
  font-size: clamp(30px, 3.8vw, 44px);
  font-weight: 600;
  margin-bottom: 8px;
}
.profile-text h2 em {
  font-style: italic;
  font-weight: 300;
  color: var(--gray-4);
}
.profile-text p { margin-bottom: 18px; color: var(--gray-5); }

.profile-quote {
  border-left: 2px solid var(--accent);
  padding: 6px 0 6px 22px;
  margin-top: 28px;
}
.profile-quote p {
  font-family: var(--serif-alt);
  font-style: italic;
  font-size: 19px;
  color: var(--navy);
  margin: 0;
}

@media (max-width: 860px) {
  .profile-grid { grid-template-columns: 1fr; gap: 40px; }
  .profile-photo { position: static; max-width: 380px; }
}

/* ═══════════════════════════════════
   PASOS (cómo funciona)
═══════════════════════════════════ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step { padding: 8px 0; }

.step-n {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--accent);
  margin-bottom: 10px;
}

.step-line { width: 32px; height: 1px; background: var(--gray-2); margin-bottom: 16px; }

.step strong {
  display: block;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  margin-bottom: 10px;
}

.step p { font-size: 14.5px; color: var(--gray-4); }

@media (max-width: 860px) {
  .steps-grid { grid-template-columns: 1fr; gap: 36px; }
}

/* ═══════════════════════════════════
   DEL BLOG (tarjetas de últimos artículos, Home)
═══════════════════════════════════ */
[hidden] { display: none !important; }

.blog-card { text-decoration: none; }

.blog-card-img {
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
  background-color: var(--gray-2);
  border-radius: 4px 4px 0 0;
  margin: -40px -32px 6px;
}

.blog-card h3 { font-size: 20px; line-height: 1.3; }

@media (max-width: 600px) {
  .blog-card-img { margin: -30px -24px 6px; }
}

/* ═══════════════════════════════════
   TESTIMONIO DESTACADO
═══════════════════════════════════ */
.quote-block { text-align: center; max-width: 760px; margin: 0 auto; }

.quote-block blockquote {
  font-family: var(--serif-alt);
  font-style: italic;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.4;
  color: var(--navy);
  margin-bottom: 20px;
}

.quote-block cite {
  font-family: var(--sans);
  font-style: normal;
  font-size: 13px;
  color: var(--gray-4);
}

/* ═══════════════════════════════════
   FORMULARIOS (captura email)
═══════════════════════════════════ */
.form-card {
  background: var(--white);
  border: 1px solid var(--gray-2);
  border-radius: 4px;
  padding: 44px 40px;
  max-width: 520px;
}

.form-field { margin-bottom: 18px; }

.form-field label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gray-4);
  margin-bottom: 8px;
}

.form-field input {
  width: 100%;
  font-family: var(--sans);
  font-size: 15px;
  padding: 13px 16px;
  border: 1px solid var(--gray-2);
  border-radius: var(--r);
  background: var(--bg);
  color: var(--text);
  transition: border-color var(--ease);
}
.form-field input:focus { outline: none; border-color: var(--navy); }

.form-submit {
  width: 100%;
  justify-content: center;
}

.form-note {
  font-size: 12px;
  color: var(--gray-3);
  margin-top: 14px;
  line-height: 1.6;
}

/* ═══════════════════════════════════
   CTA FINAL
═══════════════════════════════════ */
.cta-final {
  padding: 120px 0;
  background: var(--navy);
  text-align: center;
}

.cta-final .label--light { margin-bottom: 24px; display: block; }

.cta-final h2 {
  font-size: clamp(36px, 5vw, 64px);
  color: var(--white);
  font-weight: 600;
  margin-bottom: 16px;
}

.cta-final h2 em {
  font-weight: 300;
  font-style: italic;
  color: rgba(255,255,255,.50);
}

.cta-final p {
  font-size: 16px;
  color: rgba(255,255,255,.45);
  margin-bottom: 48px;
  line-height: 1.65;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.cta-email {
  display: block;
  margin-top: 32px;
  font-size: 13px;
  color: rgba(255,255,255,.35);
}
.cta-email a { border-bottom: 1px solid rgba(255,255,255,.25); padding-bottom: 1px; }

/* ═══════════════════════════════════
   FOOTER
═══════════════════════════════════ */
footer {
  background: var(--footer-bg);
  padding: 36px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.footer-logo {
  font-family: var(--serif-alt);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 4px;
  color: rgba(255,255,255,.40);
  text-transform: uppercase;
}

.footer-copy {
  font-size: 11px;
  color: rgba(255,255,255,.20);
  text-align: center;
  line-height: 1.7;
}

.footer-contact {
  font-size: 11px;
  color: rgba(255,255,255,.25);
  text-align: right;
  line-height: 1.7;
}
.footer-contact a { border-bottom: 1px solid rgba(255,255,255,.15); padding-bottom: 1px; }

.social-links {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
  margin-top: 10px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: rgba(255,255,255,.35);
  transition: color var(--ease);
}
.social-link:hover { color: rgba(255,255,255,.7); }
.social-link svg { width: 14px; height: 14px; fill: currentColor; }

@media (max-width: 860px) {
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-contact { text-align: center; }
  .social-links { justify-content: center; }
}

/* ═══════════════════════════════════
   TIPOGRAFÍA MÓVIL — pase de aligerado
   (títulos más contenidos y secciones que respiran)
═══════════════════════════════════ */
@media (max-width: 600px) {
  .hero { padding: 132px 0 56px; }
  .hero-eyebrow { font-size: 11px; letter-spacing: 2.5px; margin-bottom: 16px; }
  .hero h1 { font-size: 30px; line-height: 1.15; margin-bottom: 16px; }
  .hero-lead { font-size: 15px; margin-bottom: 30px; }
  .hero-actions .btn { padding: 13px 24px; font-size: 13px; }

  .page-hero { padding: 128px 0 48px; }
  .page-hero h1 { font-size: 28px; line-height: 1.15; }
  .page-hero p { font-size: 15px; }

  .section { padding: 60px 0; }
  .section-top { margin-bottom: 36px; }
  .section-top h2 { font-size: 24px; line-height: 1.2; }
  .section-top p { font-size: 14.5px; }

  .card { padding: 30px 24px; }
  .card h3 { font-size: 21px; }

  .profile-text h2 { font-size: 26px; }
  .profile-text p { font-size: 14.5px; }
  .profile-quote p { font-size: 17px; }

  .quote-block blockquote { font-size: 20px; }

  .step strong { font-size: 19px; }

  .cta-final { padding: 72px 0; }
  .cta-final h2 { font-size: 30px; line-height: 1.15; }
  .cta-final p { font-size: 14.5px; margin-bottom: 32px; }
  .cta-actions .btn { width: 100%; justify-content: center; }

  .form-card { padding: 32px 24px; }
}

/* ═══════════════════════════════════
   BOTÓN WHATSAPP FLOTANTE
═══════════════════════════════════ */
.wa {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37,211,102,.40);
  transition: transform var(--ease);
}
.wa:hover { transform: scale(1.08); }
.wa svg { width: 26px; height: 26px; fill: var(--white); }
