/* ==========================================================================
   RE-EVOLUCIÓN PERSONAL | ELEGANCIA EDITORIAL v2
   Paleta propia (tinta + latón), tipografía Playfair + Work Sans,
   firma visual: comillas latinas «» como elemento recurrente.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@0,500;0,600;0,700;0,800;1,500;1,600&family=Barlow:ital,wght@0,300;0,400;0,500;0,600;1,400&display=swap');

/* --- 1. VARIABLES GLOBALES --- */
:root {
  /* Tinta, no negro plano */
  --bg-dark: #0b0a08;
  --bg-raised: #131210;
  --ink: #f3efe8;              /* blanco cálido, no puro */
  --ink-muted: #a49c8d;        /* gris cálido, no zinc frío */

  /* Azul marino — color de acento para líneas, bordes y detalles */
  --accent: #2c4a6e;
  --accent-bright: #5b84b1;
  --accent-dim: #16283d;

  /* Barlow Condensed para títulos (alto contraste de proporción frente al cuerpo),
     Barlow regular para el cuerpo. Misma familia tipográfica, dos anchos distintos. */
  --font-headings: 'Barlow Condensed', sans-serif;
  --font-body: 'Barlow', sans-serif;

  --border-thin: 1px solid rgba(243, 239, 232, 0.14);
  --border-accent: 1px solid rgba(91, 132, 177, 0.55);
  --radius-sharp: 3px;

  /* Versión en tripleta rgb del fondo, para overlays con transparencia */
  --bg-dark-rgb: 11, 10, 8;

  --ease-editorial: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-editorial: all 0.5s var(--ease-editorial);

  /* Escala de espaciado, fluida */
  --space-section: clamp(70px, 12vw, 140px);
  --space-lg: clamp(32px, 5vw, 60px);
  --space-md: clamp(20px, 3vw, 32px);
}

/* --- 2. RESET Y BASE --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg-dark);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

:focus-visible {
  outline: 1px solid var(--accent-bright);
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* --- 3. TIPOGRAFÍA EDITORIAL --- */
h1, h2, h3, h4 {
  font-family: var(--font-headings);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.2px;
  color: var(--ink);
  text-transform: none;
}

h1 { font-size: clamp(3rem, 8.5vw, 7rem); }
h2 { font-size: clamp(2.4rem, 6vw, 5rem); margin-bottom: 20px; }
h3 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); margin-bottom: 10px; font-weight: 500; font-style: italic; }

p {
  color: var(--ink-muted);
  font-size: 1.08rem;
  margin-bottom: 25px;
  font-weight: 300;
  max-width: 700px;
}

/* El centrado es una decisión de la sección, no una regla global —
   así el hero y la bio del fundador (alineados a la izquierda) no
   heredan un centrado que no les corresponde. */
.text-section p,
.text-section .eyebrow,
.text-section .subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* Párrafo destacado — abre sección con capitular, como una página de libro */
p.lead::first-letter {
  font-family: var(--font-headings);
  font-style: italic;
  font-size: 3.2em;
  float: left;
  line-height: 0.8;
  padding-right: 10px;
  padding-top: 6px;
  color: var(--accent-bright);
}

/* Subtítulos marcados */
.eyebrow, .subtitle {
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  letter-spacing: 3px !important;
  text-transform: uppercase;
  margin-bottom: 25px;
  display: block;
  border-bottom: var(--border-accent);
  padding-bottom: 10px;
  width: fit-content;
}

/* --- FIRMA VISUAL: comillas latinas grandes --- */
/* Úsalo envolviendo una cita en <blockquote class="quote-editorial"> */
.quote-editorial {
  position: relative;
  max-width: 720px;
  margin: var(--space-md) auto;
  padding: 10px 50px;
  text-align: center;
}

.quote-editorial p {
  font-family: var(--font-headings);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  line-height: 1.25;
  color: var(--ink);
  max-width: 100%;
}

.quote-editorial::before,
.quote-editorial::after {
  font-family: var(--font-headings);
  font-size: 3.5rem;
  color: var(--accent);
  position: absolute;
  line-height: 1;
  opacity: 0.85;
}
.quote-editorial::before { content: "«"; top: 10px; left: 0; }
.quote-editorial::after  { content: "»"; bottom: -10px; right: 0; }

.quote-editorial cite {
  display: block;
  margin-top: 20px;
  font-style: normal;
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.quote-editorial cite::before { content: "— "; }

/* --- 4. LAYOUT --- */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.section-dark { padding: var(--space-section) 0; border-bottom: var(--border-thin); }
.text-section { text-align: center; padding: var(--space-lg) 0; }

/* --- 5. NAVEGACIÓN --- */
.navbar {
  position: fixed;
  top: 0; width: 100%;
  padding: 18px 5%;
  padding-top: max(18px, env(safe-area-inset-top));
  display: flex; justify-content: space-between; align-items: center;
  background: var(--bg-dark);
  border-bottom: var(--border-thin);
  z-index: 1000;
  transition: padding 0.4s ease, background 0.4s ease;
}

.navbar.scrolled { padding-top: 10px; padding-bottom: 10px; background: rgba(11,10,8,0.96); }

.logo-img { height: 30px; }

.nav-links { list-style: none; display: flex; gap: 40px; }

.nav-links a {
  text-decoration: none; color: var(--ink-muted);
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  transition: var(--transition-editorial);
  position: relative;
}

.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: ""; position: absolute;
  left: 0; bottom: -6px; width: 100%; height: 1px;
  background-color: var(--accent);
}

/* HAMBURGUESA -> X */
.burger {
  display: none; background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 7px; z-index: 2001;
  width: 44px; height: 44px; align-items: center; justify-content: center;
}
.burger span {
  display: block; width: 26px; height: 1px;
  background-color: var(--ink); transition: var(--transition-editorial);
}
.burger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* MENÚ MÓVIL */
#mobile-overlay {
  position: fixed; top: 0; right: -100%; width: 100%; height: 100dvh;
  background: var(--bg-dark);
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  transition: right 0.55s var(--ease-editorial);
  z-index: 2000;
  border-left: var(--border-thin);
}
#mobile-overlay.open { right: 0; }
#mobile-overlay ul { list-style: none; text-align: center; }
#mobile-overlay a {
  font-family: var(--font-headings); text-decoration: none; color: var(--ink);
  font-size: clamp(1.8rem, 8vw, 2.5rem); font-style: italic; display: block; padding: 18px;
}
#mobile-overlay a:active { color: var(--accent-bright); }
.close-btn { display: none; }

/* --- 6. BOTONES --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  padding: 16px 38px;
  border-radius: var(--radius-sharp);
  font-size: 0.78rem;
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-editorial);
  margin: 0 10px;
  min-height: 48px; /* área de toque cómoda */
}

.btn-primary {
  background-color: var(--ink);
  color: var(--bg-dark);
  border: 1px solid var(--ink);
}
.btn-primary:hover, .btn-primary:active {
  background-color: var(--accent);
  border-color: var(--accent);
  color: var(--bg-dark);
}

.btn-secondary {
  background-color: transparent;
  color: var(--ink);
  border: var(--border-thin);
}
.btn-secondary:hover, .btn-secondary:active {
  border-color: var(--accent);
  color: var(--accent-bright);
}

/* --- 7. TARJETAS con "marca de editor" en las esquinas --- */
.evento-card, .info-block, .product-card-horiz {
  position: relative;
  background-color: var(--bg-raised) !important;
  border: var(--border-thin) !important;
  border-radius: var(--radius-sharp) !important;
  padding: 45px !important;
  transition: var(--transition-editorial) !important;
}

/* Corchetes de esquina, como una marca de corrección editorial */
.evento-card::before, .info-block::before, .product-card-horiz::before,
.evento-card::after, .info-block::after, .product-card-horiz::after {
  content: "";
  position: absolute;
  width: 16px; height: 16px;
  border: 1px solid var(--accent);
  opacity: 0;
  transition: opacity 0.4s var(--ease-editorial);
}
.evento-card::before, .info-block::before, .product-card-horiz::before {
  top: -1px; left: -1px; border-right: none; border-bottom: none;
}
.evento-card::after, .info-block::after, .product-card-horiz::after {
  bottom: -1px; right: -1px; border-left: none; border-top: none;
}

.evento-card:hover, .info-block:hover, .product-card-horiz:hover {
  border-color: rgba(243,239,232,0.3) !important;
}
.evento-card:hover::before, .info-block:hover::before, .product-card-horiz:hover::before,
.evento-card:hover::after, .info-block:hover::after, .product-card-horiz:hover::after {
  opacity: 1;
}

.evento-card { display: flex !important; align-items: center; gap: 40px; }

.evento-card .date {
  text-align: center; min-width: 150px;
  border-right: var(--border-thin); padding-right: 40px;
}
.evento-card .date span:first-child {
  font-family: var(--font-headings);
  font-size: 4.4rem !important;
  font-weight: 700 !important;
  color: var(--accent-bright) !important;
  font-style: italic; line-height: 1;
}

/* --- 8. ANIMACIÓN AL REVELAR --- */
.reveal {
  opacity: 0;
  transform: scale(0.96) translateY(10px);
  transition: opacity 0.9s ease-out, transform 0.9s var(--ease-editorial);
}
.reveal.show {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* --- 9. MÓVILES --- */
@media (max-width: 768px) {
  .nav-links { display: none !important; }
  .burger { display: flex; }

  h1 { font-size: clamp(2.4rem, 11vw, 3rem); text-align: center; line-height: 1.1; }
  h2 { font-size: clamp(2rem, 9vw, 2.4rem) !important; text-align: center; }
  h3 { text-align: center; }
  p { font-size: 1rem; max-width: 100%; }

  .quote-editorial { padding: 10px 30px; }
  .quote-editorial::before, .quote-editorial::after { font-size: 2.4rem; }

  .hero-container { grid-template-columns: 1fr !important; text-align: center; gap: 36px !important; }
  .hero-buttons { display: flex; flex-direction: column; gap: 14px; width: 100%; }
  .hero-buttons .btn { margin: 0; width: 100%; }

  .video-wrapper iframe { height: 220px !important; border-radius: var(--radius-sharp); }

  .evento-card { flex-direction: column !important; text-align: center !important; padding: 36px 20px !important; }
  .evento-card .date {
    border-right: none; border-bottom: var(--border-thin);
    padding-right: 0; padding-bottom: 24px; margin-bottom: 20px; width: 100%;
  }
  .evento-card h3, .evento-card p { text-align: center !important; }
  .evento-card .btn-secondary { margin: 24px auto 0 auto !important; width: 100%; }

  .btn { padding: 14px 28px; }
}

@media (max-width: 400px) {
  .container { width: 92%; }
  h1 { font-size: 2.1rem; }
}

/* ==========================================================================
   10. COMPONENTES DEL HOME
   ========================================================================== */

/* --- HERO --- */
.hero-container { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 60px; }

.hero-text { text-align: left; }
.hero-text .eyebrow { margin-bottom: 30px; }
.hero-text h1 { margin-bottom: 28px; }

/* Línea de entrada del hero: más presencia que un párrafo normal, sin llegar al peso de un h3 */
.hero-intro {
  color: var(--ink);
  font-weight: 400;
  font-size: 1.2rem;
  line-height: 1.6;
  max-width: 560px;
}

.hero-text p { max-width: 500px; }

.hero-buttons { display: flex; align-items: center; gap: 16px; margin-top: 10px; }
.hero-buttons .btn { margin: 0; }

.video-wrapper .hero-card {
  overflow: hidden;
  border-radius: var(--radius-sharp);
  border: var(--border-thin);
}

/* --- "¿QUÉ NO ES?" — lista horizontal en vez de una frase larga --- */
.not-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  max-width: 700px;
  margin: 0 auto 25px auto;
}
.not-list li {
  color: var(--ink-muted);
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  padding: 0 16px;
  position: relative;
}
.not-list li:not(:last-child)::after {
  content: "·";
  position: absolute;
  right: -3px;
  color: var(--accent);
}

.closing-line {
  color: var(--ink);
  font-weight: 500;
  font-size: 1.3rem;
  margin-top: 10px;
}

/* --- FUNDADOR --- */
.founder-block { position: relative; overflow: hidden; background-size: cover; background-position: center; }
.founder-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(var(--bg-dark-rgb), 0.96) 0%, rgba(var(--bg-dark-rgb), 0.55) 100%);
  z-index: 1;
}
.founder-content { position: relative; z-index: 2; padding: 70px 50px; max-width: 850px; text-align: left; }
.founder-content .subtitle { margin-bottom: 20px; }
.founder-content h2 { text-align: left; margin-bottom: 25px; }
.founder-content p { text-align: left; color: var(--ink-muted); }
.founder-content .cta-row { margin-top: 35px; }
.founder-content .btn { margin: 0; }

/* --- COUNTDOWN --- */
.countdown-timer {
  margin-top: 14px;
  font-size: 0.7rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-bright);
  font-weight: 600;
}

/* Evento con rango de fechas en dos líneas (ej. 12W) */
.evento-card .date .range-end {
  display: block;
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--accent-bright);
  font-style: italic;
}

/* --- FOOTER --- */
.footer { border-top: var(--border-thin); }
.footer p { max-width: 450px; text-align: center; }
.footer-logo { height: 40px; opacity: 0.85; }

.social-icon {
  display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: var(--border-thin);
  color: var(--ink-muted);
  transition: var(--transition-editorial);
}
.social-icon:hover, .social-icon:active {
  border-color: var(--accent);
  color: var(--accent-bright);
  transform: translateY(-2px);
}

/* --- WHATSAPP --- */
.whatsapp-pill {
  position: fixed; bottom: 24px; right: 24px;
  bottom: max(24px, env(safe-area-inset-bottom));
  background: #25D366; color: #08130d;
  padding: 12px 22px; border-radius: 50px;
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; font-family: var(--font-body); font-weight: 600;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.35);
  z-index: 1000;
  transition: var(--transition-editorial);
}
.whatsapp-pill:hover, .whatsapp-pill:active { transform: translateY(-3px); }

@media (max-width: 768px) {
  .hero-text { text-align: center; }
  .hero-text .eyebrow, .hero-intro, .hero-text p { margin-left: auto; margin-right: auto; }
  .hero-buttons { justify-content: center; flex-wrap: wrap; }

  .not-list { justify-content: center; }

  .founder-content { padding: 50px 24px; text-align: center; }
  .founder-content h2, .founder-content p, .founder-content .subtitle { text-align: center !important; margin-left: auto; margin-right: auto; }
  .founder-content .cta-row { display: flex; justify-content: center; }

  .whatsapp-pill .whatsapp-pill-text { display: none; }
  .whatsapp-pill { padding: 14px; border-radius: 50%; }
}