/* ==========================================================================
   ALEJANDRO VACARO - SISTEMA NARRATIVO V2 PROFUNDO & COMPLETO
   Paleta: Ivory, Charcoal, Blue Slate, Coral Glow, Jet Black, Silver, White
   Tipografías: Inter + Newsreader
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Newsreader:ital,opsz,wght@0,6..72,200..800;1,6..72,200..800&display=swap');

:root {
  --ivory: #F5F2EC;
  --charcoal: #222222;
  --blue-slate: #4F5D75;
  --coral-glow: #EF8354;
  --jet-black: #2D3142;
  --silver: #BFC0C0;
  --white: #FFFFFF;

  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Newsreader', Georgia, serif;

  --ease-primary: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------------- Resets & Base ---------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--ivory);
  color: var(--charcoal);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--ivory);
  color: var(--charcoal);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

::selection {
  background-color: var(--coral-glow);
  color: #FFFFFF;
}

.font-serif { font-family: var(--font-serif); }
.font-sans { font-family: var(--font-sans); }

/* Progress bar */
#scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--coral-glow);
  z-index: 1001;
  pointer-events: none;
  transition: width 60ms linear;
}

/* Subtle background texture */
.bg-subtle-grid {
  background-image: 
    linear-gradient(to right, rgba(79, 93, 117, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(79, 93, 117, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
}

/* ==========================================================================
   NAVBAR (Altura Fija 64px + Desenfoque Glassmorphism Apple al scroll)
   ========================================================================== */
.header-v2 {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 64px;
  background-color: #F5F2EC;
  border-bottom: 1px solid rgba(34, 34, 34, 0.05);
  z-index: 1000;
  transition: background-color 300ms cubic-bezier(0.16, 1, 0.3, 1),
              backdrop-filter 300ms cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 300ms cubic-bezier(0.16, 1, 0.3, 1),
              border-color 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

.header-v2.scrolled {
  height: 64px !important;
  background-color: rgba(245, 242, 236, 0.65) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  border-bottom: 1px solid rgba(79, 93, 117, 0.15) !important;
  box-shadow: 0 6px 24px rgba(45, 49, 66, 0.08) !important;
}

.header-inner {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

@media (max-width: 1024px) {
  .header-inner { padding: 0 28px; }
}
@media (max-width: 768px) {
  .header-inner { padding: 0 20px; }
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 8px; /* Espaciado compacto: isotipo y nombre forman una sola firma de marca */
  text-decoration: none;
  color: var(--charcoal);
  cursor: pointer;
}

.brand-logo {
  width: 31px; /* Presencia visual sutilmente mayor respecto al texto sin agrandar la navbar */
  height: auto;
  aspect-ratio: 108 / 96;
  color: var(--charcoal);
  display: block;
  flex-shrink: 0;
  position: relative;
  top: -0.5px; /* Corrección óptica vertical respecto a la caja tipográfica del nombre */
  transform: none !important;
  transition: color 280ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: color;
}

.brand-title {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600; /* Peso balanceado de wordmark identificador */
  color: var(--charcoal);
  letter-spacing: -0.018em;
  line-height: 1;
  display: inline-block;
  transition: color 280ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* Hover de marca: únicamente el isotipo pasa con suavidad a Coral Glow #EF8354 */
.brand-link:hover .brand-logo {
  color: var(--coral-glow) !important;
}
.brand-link:hover {
  opacity: 1 !important;
}

.nav-link {
  position: relative;
  font-family: var(--font-sans);
  font-size: 15.5px;
  font-weight: 550;
  color: var(--blue-slate);
  text-decoration: none;
  padding: 4px 0;
  transition: color 280ms var(--ease-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 1.5px;
  background-color: var(--coral-glow);
  transition: width 320ms var(--ease-primary);
}

.nav-link:hover {
  color: var(--charcoal);
}

.nav-link:hover::after {
  width: 100%;
}

/* Indicador de sección activa en la Navbar */
.nav-link.active-section {
  color: var(--charcoal) !important;
  font-weight: 650 !important;
}
.nav-link.active-section::after {
  width: 100% !important;
  background-color: var(--coral-glow) !important;
}

/* Navbar cuando el menú móvil está desplegado: fondo azul idéntico y cruz del mismo color que el nombre */
.header-v2.mobile-nav-open {
  background-color: rgba(45, 49, 66, 0.88) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  border-bottom-color: rgba(245, 242, 236, 0.1) !important;
}
.header-v2.mobile-nav-open .brand-title,
.header-v2.mobile-nav-open .brand-logo,
.header-v2.mobile-nav-open #mobile-menu-btn {
  color: var(--ivory) !important; /* Mismo color marfil que el nombre Alejandro Vacaro */
}
.header-v2.mobile-nav-open #mobile-menu-btn:hover {
  color: var(--coral-glow) !important;
}

#mobile-menu-btn {
  transition: color 250ms var(--ease-primary), background-color 250ms var(--ease-primary);
}

/* Navbar adaptativa sobre secciones oscuras (#conoceme y #contacto) */
.header-v2.header-dark-theme.scrolled {
  background-color: rgba(35, 38, 52, 0.75) !important;
  border-bottom-color: rgba(245, 242, 236, 0.12) !important;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3) !important;
}
.header-v2.header-dark-theme .brand-title {
  color: var(--ivory) !important;
}
.header-v2.header-dark-theme .brand-logo {
  color: var(--ivory) !important;
}
.header-v2.header-dark-theme .brand-link:hover .brand-logo,
.header-v2.mobile-nav-open .brand-link:hover .brand-logo {
  color: var(--coral-glow) !important;
}
.header-v2.header-dark-theme #mobile-menu-btn {
  color: var(--ivory) !important;
}
.header-v2.header-dark-theme .nav-link {
  color: var(--silver) !important;
}
.header-v2.header-dark-theme .nav-link:hover,
.header-v2.header-dark-theme .nav-link.active-section {
  color: #FFFFFF !important;
}
.header-v2.header-dark-theme .nav-link.active-section::after {
  background-color: var(--coral-glow) !important;
}


/* ==========================================================================
   HOME / HERO (Full fold: Home + Cinta ocupan el 100% de la primera pantalla)
   ========================================================================== */
.hero-section {
  position: relative;
  width: 100%;
  height: calc(100vh - 64px - 50px); /* Exactamente 100vh menos navbar y cinta */
  min-height: 580px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 0;
  box-sizing: border-box;
  scroll-margin-top: 80px;
}

#home {
  scroll-margin-top: 80px;
}

@media (max-width: 768px) {
  .hero-section {
    height: auto !important;
    min-height: calc(100svh - 64px) !important;
    display: flex !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    padding-top: 36px !important;
    padding-bottom: 44px !important;
  }
}

@media (max-height: 700px) and (min-width: 769px) {
  .hero-section {
    min-height: 520px;
    height: auto;
    padding: 36px 0;
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) auto;
  gap: clamp(28px, 3.5vw, 46px); /* Espacio horizontal reducido para unir texto y fotografía */
  align-items: center;
  max-width: 1160px; /* Contenedor más compacto y editorial para evitar separación excesiva */
  margin: 0 auto;
  width: 100%;
  padding: 0 36px;
}

@media (min-width: 1025px) {
  .hero-grid {
    align-items: center;
  }
  .hero-text-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
  }
  .hero-photo-col {
    display: flex;
    justify-content: center;
    align-items: center;
  }
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 340px);
    gap: 28px;
    padding: 0 28px;
    align-items: center;
  }
  .hero-text-col {
    height: auto;
  }
}

@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr !important;
    padding: 0 20px !important;
    gap: 28px !important;
    align-items: start !important;
  }
  .hero-photo-col {
    justify-content: center !important;
    margin-top: 14px !important;
    width: 100% !important;
  }
}

/* 1. Heading Principal: Protagonista fuerte y elegante */
.hero-title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(2.2rem, 3.2vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--charcoal);
  max-width: 650px;
  margin: 0;
}

.hero-title-line-2 {
  display: inline-block;
  white-space: nowrap;
}
@media (max-width: 640px) {
  .hero-title-line-2 {
    white-space: normal;
  }
}

.hero-word-usuario {
  font-size: 1.15em;
  font-weight: inherit;
  color: inherit;
  letter-spacing: -0.02em;
  display: inline-block;
}

.hero-highlight-coral {
  color: var(--coral-glow);
  font-style: italic;
  font-family: var(--font-serif);
  font-size: 1.15em;
  font-weight: 300;
  letter-spacing: -0.01em;
}

/* Menú Móvil: Mismo azul #2D3142 de Conóceme, levemente transparente con cortina deslizante y transición marcada */
#mobile-menu-drawer {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(100dvh - 64px);
  background-color: rgba(45, 49, 66, 0.90) !important; /* Mismo azul #2D3142 de Conóceme pero semitransparente */
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 32px 24px;
  box-sizing: border-box;
  color: var(--ivory);
  opacity: 0;
  transform: translateY(-100%);
  pointer-events: none;
  transition: opacity 380ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 420ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

#mobile-menu-drawer.is-open {
  opacity: 1 !important;
  transform: translateY(0) !important;
  pointer-events: auto !important;
}

#mobile-menu-drawer.hidden {
  display: none !important;
}

/* Enlaces del menú móvil: entrada escalonada muy visible */
.mobile-nav-link {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 340ms ease, transform 380ms cubic-bezier(0.16, 1, 0.3, 1), color 200ms ease;
}

#mobile-menu-drawer.is-open .mobile-nav-link {
  opacity: 1;
  transform: translateY(0);
}

#mobile-menu-drawer.is-open .mobile-nav-link:nth-child(1) { transition-delay: 120ms; }
#mobile-menu-drawer.is-open .mobile-nav-link:nth-child(2) { transition-delay: 180ms; }
#mobile-menu-drawer.is-open .mobile-nav-link:nth-child(3) { transition-delay: 240ms; }
#mobile-menu-drawer.is-open .mobile-nav-link:nth-child(4) { transition-delay: 300ms; }

.mobile-drawer-footer {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 340ms ease, transform 380ms cubic-bezier(0.16, 1, 0.3, 1);
}

#mobile-menu-drawer.is-open .mobile-drawer-footer {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 340ms;
}

/* Rotación visible del botón al abrir/cerrar */
#mobile-menu-btn i,
#mobile-menu-btn svg {
  transition: transform 320ms cubic-bezier(0.16, 1, 0.3, 1);
}
.header-v2.mobile-nav-open #mobile-menu-btn i,
.header-v2.mobile-nav-open #mobile-menu-btn svg {
  transform: rotate(90deg);
}

@media (max-width: 768px) {
  .hero-title {
    font-size: clamp(2.2rem, 8.8vw, 3rem) !important;
    line-height: 1.06 !important;
  }
  .hero-narrative-block {
    margin-top: 22px !important;
    max-width: 100% !important;
  }
  .hero-bajada {
    font-size: 16.5px !important;
    line-height: 1.58 !important;
    color: #4A5568 !important;
  }
  .hero-complementary {
    font-size: 1.25rem !important;
    margin-top: 18px !important;
    line-height: 1.36 !important;
    color: #1A1D24 !important;
  }
  .hero-actions-container {
    margin-top: 24px !important;
  }
}

/* 2. Bloque Narrativo: Jerarquía clara entre explicación y remate editorial */
.hero-narrative-block {
  margin-top: clamp(26px, 3.5vh, 36px); /* Espacio sutil y distinguido tras el titular */
  max-width: 600px; /* Medida de línea cómoda y elegante sin cortes forzados */
}

/* Párrafo descriptivo (Nivel 2): Bloque explicativo principal, legible, amplio y en tono pizarra */
.hero-bajada {
  font-family: var(--font-sans);
  font-size: clamp(17.5px, 1.25vw, 18.5px);
  line-height: 1.62;
  color: #4A5568; /* Tono grafito/pizarra elegante que distingue claramente la explicación */
  margin: 0;
}

/* Frase Outsider (Nivel 3): Remate editorial con personalidad, cercano al negro y alto contraste */
.hero-complementary {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.32rem, 1.55vw, 1.48rem); /* Mayor escala que el párrafo, sin ser segundo titular */
  line-height: 1.38;
  color: #1A1D24; /* Color oscuro cercano al negro del título (#222222), alto impacto emocional */
  margin-top: clamp(20px, 2.6vh, 26px); /* Separación intencional que marca el cambio a remate */
  margin-bottom: 0;
  max-width: 570px;
  letter-spacing: -0.01em;
}

/* 3. Botones (Nivel 4): Cierre operativo integrado, sin competir con el contenido */
.hero-actions-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: clamp(26px, 3.6vh, 38px); /* Transición vertical armónica */
}

/* Botón primario: Contáctame */
.hero-btn-primary {
  height: 42px;
  padding: 0 20px;
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  text-decoration: none;
  background-color: var(--jet-black);
  color: var(--white);
  border: 1px solid transparent;
  box-shadow: 0 2px 8px rgba(45, 49, 66, 0.08);
  transition: transform 300ms var(--ease-primary), box-shadow 300ms var(--ease-primary), background-color 300ms ease;
  cursor: pointer;
}
.hero-btn-primary:hover {
  transform: translateY(-1.5px);
  background-color: #222533;
  box-shadow: 0 6px 16px rgba(45, 49, 66, 0.16);
}

/* Botón secundario: Descargar CV */
.hero-btn-secondary {
  height: 42px;
  padding: 0 20px;
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  text-decoration: none;
  background-color: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(79, 93, 117, 0.22);
  color: var(--charcoal);
  box-shadow: 0 1px 4px rgba(45, 49, 66, 0.03);
  transition: transform 300ms var(--ease-primary), background-color 300ms var(--ease-primary), border-color 300ms ease, box-shadow 300ms var(--ease-primary);
  cursor: pointer;
}
.hero-btn-secondary:hover {
  transform: translateY(-1.5px);
  background-color: rgba(255, 255, 255, 0.95);
  border-color: rgba(79, 93, 117, 0.35);
  box-shadow: 0 4px 12px rgba(45, 49, 66, 0.06);
}
.hero-btn-primary .cv-download-icon,
.hero-btn-secondary .cv-download-icon,
.footer-btn-cv .cv-download-icon {
  transition: transform 300ms var(--ease-primary);
}
.hero-btn-primary:hover .cv-download-icon,
.hero-btn-secondary:hover .cv-download-icon,
.footer-btn-cv:hover .cv-download-icon {
  transform: none !important;
}

/* 4. Fotografía Hero: Dominancia sutilmente reducida (390px) para dialogar en equilibrio con el contenido */
.hero-photo-col {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}
@media (min-width: 1025px) {
  .hero-photo-col {
    justify-content: flex-end;
  }
}
@media (max-width: 1024px) {
  .hero-photo-col {
    justify-content: center;
    margin-top: 10px;
  }
}

.hero-photo-wrapper {
  width: 100%;
  max-width: 385px;
  aspect-ratio: 4 / 5;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 44px rgba(45, 49, 66, 0.09), 0 4px 12px rgba(45, 49, 66, 0.03);
  background-color: var(--silver);
  position: relative;
  image-rendering: -webkit-optimize-contrast;
}

@media (max-width: 1024px) {
  .hero-photo-wrapper {
    max-width: 340px;
  }
}

@media (max-width: 768px) {
  .hero-photo-wrapper {
    max-width: 300px !important;
    margin: 0 auto !important;
  }
}

.hero-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
  display: block;
  image-rendering: -webkit-optimize-contrast;
}

/* ==========================================================================
   ANIMACIONES DE ENTRADA HERO (Aparecen al entrar al sitio, luego quedan fijas)
   Elegante, llamativo, moderno, con filtro blur y aceleración Apple-grade
   ========================================================================== */
@keyframes heroRevealTitle {
  from {
    opacity: 0;
    transform: translateY(32px);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes heroRevealBajada {
  from {
    opacity: 0;
    transform: translateY(24px);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes heroRevealComp {
  from {
    opacity: 0;
    transform: translateY(20px);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes heroRevealBtns {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroRevealPhoto {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.96);
    filter: blur(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.anim-hero-h1 {
  animation: heroRevealTitle 1000ms cubic-bezier(0.16, 1, 0.3, 1) 140ms both;
  will-change: opacity, transform, filter;
}

.anim-hero-bajada {
  animation: heroRevealBajada 950ms cubic-bezier(0.16, 1, 0.3, 1) 280ms both;
  will-change: opacity, transform, filter;
}

.anim-hero-comp {
  animation: heroRevealComp 950ms cubic-bezier(0.16, 1, 0.3, 1) 400ms both;
  will-change: opacity, transform, filter;
}

.anim-hero-btns {
  animation: heroRevealBtns 900ms cubic-bezier(0.16, 1, 0.3, 1) 520ms both;
  will-change: opacity, transform;
}

.anim-hero-photo {
  animation: heroRevealPhoto 1200ms cubic-bezier(0.16, 1, 0.3, 1) 200ms both;
  will-change: opacity, transform, filter;
}

@media (prefers-reduced-motion: reduce) {
  .brand-logo,
  .brand-title {
    transition: none !important;
  }
  .anim-hero-h1,
  .anim-hero-bajada,
  .anim-hero-comp,
  .anim-hero-btns,
  .anim-hero-photo {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}

/* ==========================================================================
   CINTA ANIMADA HORIZONTAL (50px, loop 38s, drag 1:1)
   ========================================================================== */
.cinta-band {
  width: 100%;
  height: 50px;
  background-color: #F5F2EC;
  border-top: 1px solid rgba(34, 34, 34, 0.07);
  border-bottom: 1px solid rgba(34, 34, 34, 0.07);
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
  cursor: grab;
  position: relative;
  z-index: 20;
}

.cinta-band.is-dragging {
  cursor: grabbing;
}

.cinta-track {
  display: flex;
  align-items: center;
  height: 100%;
  width: max-content;
  white-space: nowrap;
  will-change: transform;
}

.cinta-group {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  font-family: var(--font-sans);
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--blue-slate);
}

.cinta-coral {
  color: var(--coral-glow);
  font-weight: 650;
}

.cinta-sep {
  display: inline-block;
  margin: 0 16px;
  color: rgba(79, 93, 117, 0.35);
}

/* ==========================================================================
   CONÓCEME - ESCENARIO INTERACTIVO APPLE-GRADE
   Fondo azul oscuro #2D3142, Newsreader itálica, flechas y scroll contenido
   ========================================================================== */
.conoceme-apple-section {
  position: relative;
  min-height: auto;
  background-color: var(--jet-black) !important; /* Siempre azul oscuro #2D3142 */
  color: var(--ivory) !important;
  border-top: 1px solid rgba(245, 242, 236, 0.08);
  border-bottom: 1px solid rgba(245, 242, 236, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 96px 0 108px;
  box-sizing: border-box;
}

.conoceme-apple-viewport {
  position: relative;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
}

@media (max-width: 1024px) {
  .conoceme-apple-viewport { padding: 0 28px; }
}
@media (max-width: 768px) {
  .conoceme-apple-section {
    position: relative;
    min-height: auto !important;
    height: auto !important;
    background-color: var(--jet-black) !important;
    color: var(--ivory) !important;
    border-top: 1px solid rgba(245, 242, 236, 0.08);
    border-bottom: 1px solid rgba(245, 242, 236, 0.08);
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
    padding: 72px 0 80px !important;
    margin-top: 24px !important;
    margin-bottom: 24px !important;
    box-sizing: border-box;
  }
  .conoceme-apple-viewport {
    padding: 0 20px;
  }
}

.conoceme-apple-header {
  margin-bottom: clamp(54px, 5.5vw, 76px);
}
.conoceme-title-coral {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(2.2rem, 3.8vw, 3.2rem);
  color: var(--coral-glow);
  line-height: 1.15;
  margin: 0;
}

.conoceme-title-underline-track {
  width: 100%;
  max-width: 100%;
  height: 2px;
  background-color: rgba(245, 242, 236, 0.12);
  margin: 12px 0 14px;
  position: relative;
  overflow: hidden;
}

.conoceme-title-underline-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: var(--coral-glow);
  box-shadow: 0 0 8px rgba(239, 131, 84, 0.6);
}

.conoceme-header-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.15rem, 1.5vw, 1.4rem);
  line-height: 1.48;
  color: rgba(245, 242, 236, 0.88);
  letter-spacing: -0.01em;
  margin: 0;
  max-width: 720px;
}

.conoceme-apple-header .conoceme-heading {
  color: #FFFFFF !important;
}
.conoceme-apple-header .conoceme-subheading-dark {
  color: rgba(245, 242, 236, 0.7) !important;
}

.conoceme-apple-stage {
  display: grid;
  grid-template-columns: 370px minmax(0, 1fr);
  gap: clamp(36px, 4.5vw, 56px);
  align-items: stretch;
  width: 100%;
}

@media (max-width: 960px) {
  .conoceme-apple-stage {
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 32px;
  }
}
@media (max-width: 768px) {
  .conoceme-apple-stage {
    display: flex;
    flex-direction: column;
    gap: 28px;
  }
}

/* Columna Izquierda: Fotografía agrandada verticalmente */
.conoceme-apple-photo-col {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.conoceme-apple-photo-card {
  width: 100%;
  height: 100%;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(245, 242, 236, 0.12);
  background-color: #1e222d;
}

@media (max-width: 768px) {
  .conoceme-apple-photo-card {
    max-width: 330px;
    min-height: 380px;
    margin: 0 auto;
  }
}

.conoceme-apple-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  display: block;
}

/* Columna Derecha: Tarjeta Escénica + Nueva Sección Dinámica */
.conoceme-apple-narrative-col {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

.conoceme-apple-stage-card {
  width: 100%;
  min-height: 320px;
  background: rgba(35, 38, 52, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(245, 242, 236, 0.14);
  border-radius: 24px;
  padding: 28px 36px 36px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  cursor: default;
  box-sizing: border-box;
  flex: 1 1 auto;
}

@media (max-width: 768px) {
  .conoceme-apple-stage-card {
    min-height: 340px;
    padding: 26px 22px 48px;
  }
}

/* ==========================================================================
   NOTAS Y REFLEXIONES ROTATIVAS (Conóceme Dynamic Strip)
   ========================================================================== */
.conoceme-dynamic-strip {
  width: 100%;
  flex-shrink: 0;
  box-sizing: border-box;
  position: relative;
  padding-top: 4px;
}

.strip-divider-line {
  width: 100%;
  height: 1px;
  background: rgba(245, 242, 236, 0.14);
  margin-bottom: 16px;
}

.strip-slider-container {
  position: relative;
  width: 100%;
  min-height: 118px;
  display: flex;
  align-items: center;
}

.strip-item {
  position: absolute;
  inset: 0;
  width: 100%;
  min-height: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 450ms cubic-bezier(0.16, 1, 0.3, 1), transform 450ms cubic-bezier(0.16, 1, 0.3, 1);
}

.strip-item.is-active {
  position: relative;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.strip-icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
}

.strip-icon {
  width: 32px;
  height: 32px;
  color: var(--coral-glow);
  stroke: var(--coral-glow);
  stroke-width: 1.8;
  flex-shrink: 0;
}

.strip-v-sep {
  width: 1px;
  height: 48px;
  background: rgba(245, 242, 236, 0.24);
  flex-shrink: 0;
}

.strip-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.strip-title {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245, 242, 236, 0.52);
}

.strip-text {
  font-family: var(--font-serif);
  font-style: normal;
  font-size: clamp(1.05rem, 1.22vw, 1.2rem);
  line-height: 1.45;
  color: #F5F2EC;
  margin: 0;
  letter-spacing: -0.01em;
}

@media (max-width: 1024px) {
  .strip-slider-container {
    min-height: 130px;
  }
}

@media (max-width: 960px) {
  .strip-slider-container {
    min-height: 168px;
  }
}

@media (max-width: 768px) {
  .strip-slider-container {
    min-height: 140px;
  }
  .strip-item {
    gap: 14px;
  }
  .strip-icon {
    width: 26px;
    height: 26px;
  }
  .strip-v-sep {
    height: 42px;
  }
}

/* Barra de progreso FULL-WIDTH Apple-style */
.story-progress-bar-track {
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 9999px;
  overflow: hidden;
  margin-bottom: 24px;
  position: relative;
}

.story-progress-bar-fill {
  height: 100%;
  width: 4.76%; /* 1 de 21 beats */
  background-color: var(--coral-glow);
  box-shadow: 0 0 10px rgba(239, 131, 84, 0.8);
  border-radius: 9999px;
  transition: width 320ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* Contenedor de Frases Escénicas */
.story-beats-container {
  position: relative;
  flex: 1;
  min-height: 270px;
  display: flex;
  align-items: center;
}

/* Flechas Interactivas en la parte inferior derecha dentro de la tarjeta */
.story-nav-arrows {
  position: absolute;
  bottom: 20px;
  right: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 20;
}

.story-arrow-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(245, 242, 236, 0.16);
  color: var(--ivory);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  outline: none;
  transition: all 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

.story-arrow-btn:hover:not(:disabled) {
  background: rgba(239, 131, 84, 0.2);
  border-color: var(--coral-glow);
  color: var(--coral-glow);
  transform: scale(1.08);
}

.story-arrow-btn:active:not(:disabled) {
  transform: scale(0.95);
}

.story-arrow-btn:disabled {
  opacity: 0.25;
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
}

/* Transiciones vistosas y elegantes Apple-style (32px + scale + blur 8px) */
.apple-story-beat {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  transform: translateY(32px) scale(0.96);
  filter: blur(8px);
  pointer-events: none;
  visibility: hidden;
  transition: opacity 450ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 450ms cubic-bezier(0.16, 1, 0.3, 1),
              filter 450ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform, filter;
  overflow-y: auto;
  scrollbar-width: none;
  padding-right: 48px; /* Margen para no invadir zona de flechas si el texto baja */
}
.apple-story-beat::-webkit-scrollbar {
  display: none;
}

.apple-story-beat.is-active {
  opacity: 1 !important;
  transform: translateY(0) scale(1) !important;
  filter: blur(0) !important;
  pointer-events: auto !important;
  visibility: visible !important;
}

.apple-story-beat.is-exiting {
  opacity: 0 !important;
  transform: translateY(-32px) scale(0.96) !important;
  filter: blur(8px) !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

/* Tipografía en Newsreader Itálica ("esa cosa itálica") */
.apple-beat-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.15rem, 1.45vw, 1.38rem);
  line-height: 1.62;
  color: var(--ivory);
  letter-spacing: -0.01em;
  margin: 0;
}

.apple-beat-text strong {
  font-weight: 700;
  color: #FFFFFF;
}

.apple-beat-text strong.text-\[\#EF8354\],
.apple-beat-text .text-\[\#EF8354\],
.apple-beat-text .cinta-coral,
.apple-beat-text .highlight-coral {
  color: var(--coral-glow) !important;
  font-weight: 700;
}

.apple-beat-text em {
  font-style: normal;
  color: rgba(245, 242, 236, 0.95);
}

/* Bloque de frase distintiva al pie de Conóceme */
.conoceme-bottom-quote-block {
  margin-top: clamp(76px, 8.5vw, 112px);
  margin-bottom: 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 10;
  padding: 0 16px;
}

.quote-block-label {
  font-family: var(--font-sans);
  font-size: clamp(0.95rem, 1.15vw, 1.15rem);
  font-weight: 500;
  color: rgba(245, 242, 236, 0.78);
  letter-spacing: 0.01em;
  margin: 0;
}

.quote-block-phrase {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.85rem, 2.8vw, 2.5rem);
  color: var(--coral-glow);
  line-height: 1.2;
  margin: 0;
  letter-spacing: -0.015em;
  text-shadow: 0 0 25px rgba(239, 131, 84, 0.25);
}

/* ==========================================================================
   TRANSICIONES ENTRE SECCIONES
   ========================================================================== */
.section-divider-block {
  width: 100%;
  padding: 64px 0 48px;
  background-color: var(--ivory);
}

.divider-content-wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 768px) {
  .divider-content-wrap { padding: 0 20px; }
}

.divider-quote-coral {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--coral-glow);
  margin-bottom: 20px;
  line-height: 1.2;
}

.divider-horizontal-line-track {
  width: 100%;
  height: 2px;
  background-color: rgba(79, 93, 117, 0.12);
  position: relative;
  overflow: hidden;
}

.divider-horizontal-line-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background-color: var(--coral-glow);
  transition: width 900ms var(--ease-primary);
}

.divider-horizontal-line-fill.in-view {
  width: 100%;
}

.anim-divider-aprender {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 800ms var(--ease-primary), transform 800ms var(--ease-primary);
}
.anim-divider-aprender.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   MI EXPERIENCIA (#experiencia) - Timeline Vertical al 27%
   ========================================================================== */
.experiencia-section {
  width: 100%;
  padding: 100px 0 80px;
  background-color: var(--ivory);
}

.experiencia-header {
  max-width: 1280px;
  margin: 0 auto 52px;
  padding: 0 40px;
}
@media (max-width: 1024px) {
  .experiencia-header { padding: 0 28px; }
}
@media (max-width: 768px) {
  .experiencia-header { padding: 0 20px; }
}

.section-h2 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(2.3rem, 4vw, 3.5rem);
  color: var(--charcoal);
  letter-spacing: -0.025em;
  margin-bottom: 14px;
}

.section-intro {
  font-family: var(--font-sans);
  font-size: 17.5px;
  line-height: 1.6;
  color: var(--blue-slate);
  max-width: 760px;
}

.timeline-container-v2 {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
}
@media (max-width: 768px) {
  .timeline-container-v2 { padding: 0 20px; }
}

/* Riel vertical al 27% en desktop */
.timeline-rail-base {
  position: absolute;
  top: 16px;
  bottom: 16px;
  left: calc(27% + 32px);
  width: 2px;
  background-color: rgba(79, 93, 117, 0.18);
  transform: translateX(-50%);
}

.timeline-rail-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background-color: var(--coral-glow);
  transition: height 120ms linear;
}

@media (max-width: 768px) {
  .timeline-rail-base {
    left: 28px;
    transform: none;
  }
}

.timeline-row-item {
  position: relative;
  display: grid;
  grid-template-columns: 27% minmax(0, 73%);
  padding-bottom: 52px;
  align-items: start;
}
@media (max-width: 768px) {
  .timeline-row-item {
    grid-template-columns: 1fr;
    padding-left: 36px;
    padding-bottom: 40px;
  }
}

.timeline-year-col {
  padding-right: 48px;
  text-align: right;
  font-family: var(--font-sans);
  font-size: 15.5px;
  font-weight: 600;
  color: var(--blue-slate);
  padding-top: 20px;
}
@media (max-width: 768px) {
  .timeline-year-col {
    text-align: left;
    padding-right: 0;
    padding-top: 0;
    margin-bottom: 8px;
    font-size: 14.5px;
  }
}

.timeline-pin-node {
  position: absolute;
  left: 27%;
  top: 24px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--ivory);
  border: 2.5px solid var(--blue-slate);
  transform: translate(-50%, 0);
  z-index: 3;
  transition: background-color 400ms var(--ease-primary), border-color 400ms var(--ease-primary), transform 400ms var(--ease-primary);
}

.timeline-row-item.in-view .timeline-pin-node {
  background-color: var(--coral-glow);
  border-color: var(--coral-glow);
  transform: translate(-50%, 0) scale(1.2);
}

.timeline-pin-node.node-featured {
  width: 14px;
  height: 14px;
  border-color: var(--coral-glow);
  background-color: var(--coral-glow);
}

@media (max-width: 768px) {
  .timeline-pin-node {
    left: 8px;
    top: 6px;
    transform: none;
  }
  .timeline-row-item.in-view .timeline-pin-node {
    transform: scale(1.2);
  }
}

.timeline-body-col {
  padding-left: 48px;
}
@media (max-width: 768px) {
  .timeline-body-col {
    padding-left: 0;
  }
}

.timeline-glass-card {
  background: rgba(255, 255, 255, 0.56);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(79, 93, 117, 0.12);
  border-radius: 16px;
  padding: 26px 30px;
  box-shadow: 0 10px 30px rgba(45, 49, 66, 0.055);
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 800ms var(--ease-primary), transform 800ms var(--ease-primary), box-shadow 400ms var(--ease-primary), border-color 400ms var(--ease-primary);
}

.timeline-row-item.in-view .timeline-glass-card {
  opacity: 1;
  transform: translateX(0);
}

.timeline-glass-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(45, 49, 66, 0.09);
  border-color: rgba(79, 93, 117, 0.22);
}

.timeline-card-company {
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 4px;
}

.timeline-card-role {
  font-family: var(--font-sans);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--blue-slate);
  margin-bottom: 12px;
}

.timeline-card-desc {
  font-family: var(--font-sans);
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--charcoal);
}

.timeline-zumba-remate {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--coral-glow);
  font-size: 17px;
  margin-top: 10px;
}

/* Tarjeta destacada República AFAP */
.timeline-featured-card {
  background-color: var(--jet-black);
  color: var(--ivory);
  border-radius: 18px;
  padding: 36px 38px;
  box-shadow: 0 22px 60px rgba(45, 49, 66, 0.17);
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 800ms var(--ease-primary), transform 800ms var(--ease-primary);
}

.timeline-row-item.in-view .timeline-featured-card {
  opacity: 1;
  transform: translateX(0);
}

.featured-card-title {
  font-family: var(--font-sans);
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(245, 242, 236, 0.15);
  margin-bottom: 24px;
}

.featured-stage-row {
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(245, 242, 236, 0.12);
}

.featured-stage-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}

.featured-stage-year {
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--silver);
}

.featured-stage-role {
  font-family: var(--font-sans);
  font-size: 16.5px;
  font-weight: 700;
  color: var(--white);
}

.featured-stage-desc {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  color: rgba(245, 242, 236, 0.9);
}

/* ==========================================================================
   MI FORMACIÓN (#formacion) - 5 Cards (3 arriba + 2 abajo centradas)
   Overlay total en hover (450-550ms)
   ========================================================================== */
.formacion-section {
  width: 100%;
  padding: 96px 0 0; /* padding-bottom 0 para que la transición degradee se una directamente a Contacto */
  background-color: var(--ivory);
  position: relative;
}
@media (max-width: 768px) {
  .formacion-section {
    padding: 68px 0 0 !important;
  }
}

.formacion-header {
  max-width: 1280px;
  margin: 0 auto 52px;
  padding: 0 40px;
}
@media (max-width: 1024px) {
  .formacion-header { padding: 0 28px; }
}
@media (max-width: 768px) {
  .formacion-header { padding: 0 20px; }
}

.formacion-container-v2 {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 1024px) {
  .formacion-container-v2 {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 28px;
  }
}
@media (max-width: 768px) {
  .formacion-container-v2 {
    grid-template-columns: 1fr;
    padding: 0 20px;
  }
}

.formacion-row-top,
.formacion-row-bottom {
  display: contents;
}

.formacion-card-v2 {
  position: relative;
  height: 245px;
  width: 100%;
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(79, 93, 117, 0.12);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(45, 49, 66, 0.05);
  overflow: hidden;
  cursor: pointer;
  outline: none;
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 700ms cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 450ms var(--ease-primary),
              border-color 300ms ease;
  will-change: opacity, transform;
}

.formacion-card-v2.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.formacion-card-v2:nth-child(3n+1) {
  transition-delay: 0ms;
}
.formacion-card-v2:nth-child(3n+2) {
  transition-delay: 100ms;
}
.formacion-card-v2:nth-child(3n) {
  transition-delay: 200ms;
}
@media (max-width: 1024px) {
  .formacion-card-v2 {
    transition-delay: 0ms !important;
  }
}

.formacion-card-inner {
  padding: 28px;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: flex-start;
}

.formacion-card-category {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--coral-glow);
  margin-bottom: 10px;
}

.formacion-card-name {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1.3;
  margin-bottom: 6px;
}

.formacion-card-institution {
  font-family: var(--font-sans);
  font-size: 14.5px;
  color: var(--blue-slate);
  margin-bottom: 6px;
}

.formacion-card-date {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--coral-glow);
  margin-top: auto;
}

/* Capa overlay total interior */
.formacion-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(45, 49, 66, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transform: translateY(100%);
  opacity: 0.3;
  transition: transform 500ms var(--ease-primary), opacity 500ms var(--ease-primary);
  z-index: 5;
  border-radius: 18px;
}

.overlay-header {
  margin-bottom: 12px;
}

.overlay-title {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  display: block;
}

.overlay-coral-line {
  width: 32px;
  height: 2px;
  background-color: var(--coral-glow);
  margin-top: 6px;
}

.overlay-desc {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ivory);
}

/* Hover Desktop */
@media (hover: hover) and (pointer: fine) {
  .formacion-card-v2.is-revealed:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(45, 49, 66, 0.1);
  }
  .formacion-card-v2:hover .formacion-card-overlay {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .formacion-card-v2 {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Mobile tap toggle */
.formacion-card-v2.is-expanded .formacion-card-overlay {
  transform: translateY(0);
  opacity: 1;
}

/* Transición suave de 120px hacia fondo oscuro de Contacto */
.formacion-to-dark-transition {
  width: 100%;
  height: 120px;
  margin-top: 100px; /* Margen amplio ubicado exactamente después de las tarjetas */
  background: linear-gradient(to bottom, #F5F2EC 0%, #2D3142 100%);
}
@media (max-width: 768px) {
  .formacion-to-dark-transition {
    height: 90px;
    margin-top: 64px;
  }
}

/* ==========================================================================
   CONTÁCTAME (#contacto) - Cuadrícula 2 Columnas (50% / 50%)
   ========================================================================== */
.contacto-section-v2 {
  width: 100%;
  background-color: var(--jet-black);
  color: var(--ivory);
  padding: 48px 24px 60px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
}
@media (max-width: 768px) {
  .contacto-section-v2 { 
    padding: 36px 16px 50px;
    min-height: auto;
  }
}

.contacto-container-v2 {
  max-width: 1140px;
  margin: 0 auto;
  width: 100%;
}

.contacto-header-intro {
  margin-bottom: 28px;
}

.contacto-quote-coral {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(2.3rem, 3.8vw, 3.4rem);
  line-height: 1.12;
  color: var(--coral-glow);
  margin-bottom: 12px;
}

.contacto-secondary-text {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ivory);
  opacity: 0.88;
  margin-bottom: 0;
  max-width: 720px;
}

.contacto-grid-v2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
  width: 100%;
}
@media (max-width: 960px) {
  .contacto-grid-v2 {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
  }
  .contacto-left-col,
  .contacto-right-col {
    display: contents !important;
  }
  #contacto-form-col,
  #form-card-container {
    order: 1 !important;
    width: 100% !important;
  }
  #contacto-canales-card {
    order: 2 !important;
    width: 100% !important;
  }
  #contacto-redes-card {
    order: 3 !important;
    width: 100% !important;
  }
}

.contacto-channels-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(245, 242, 236, 0.15);
  margin-bottom: 36px;
}

.channel-link-row {
  display: flex;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid rgba(245, 242, 236, 0.15);
  text-decoration: none;
  color: var(--ivory);
  font-family: var(--font-sans);
  font-size: 16px;
  transition: color 320ms var(--ease-primary);
}

.channel-icon, .channel-x-icon {
  width: 20px;
  height: 20px;
  margin-right: 14px;
  flex-shrink: 0;
  transition: transform 320ms var(--ease-primary);
}

.channel-x-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
}

.channel-name {
  font-weight: 600;
  margin-right: 12px;
}

.channel-value {
  color: rgba(245, 242, 236, 0.7);
  font-size: 14px;
  margin-left: auto;
  transition: color 320ms var(--ease-primary);
}

.channel-link-row:hover {
  color: var(--coral-glow);
}
.channel-link-row:hover .channel-value {
  color: var(--coral-glow);
}
.channel-link-row:hover .channel-icon,
.channel-link-row:hover .channel-x-icon {
  transform: translateX(3px);
}

.contacto-closing-lines {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 17.5px;
  line-height: 1.45;
  color: rgba(245, 242, 236, 0.72);
}

/* Columna Derecha: Tarjeta de Formulario */
.form-container-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(245, 242, 236, 0.12);
  border-radius: 20px;
  padding: 30px 32px;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.25);
  transition: border-color 300ms ease, box-shadow 300ms ease;
}

.form-container-highlight {
  border-color: rgba(239, 131, 84, 0.32);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.045) 0%, rgba(239, 131, 84, 0.04) 100%);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), 0 0 35px rgba(239, 131, 84, 0.08);
}

.form-container-highlight:hover {
  border-color: rgba(239, 131, 84, 0.45);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35), 0 0 45px rgba(239, 131, 84, 0.14);
}
@media (max-width: 640px) {
  .form-container-card { padding: 26px 20px; }
}

.form-field-input {
  background-color: rgba(245, 242, 236, 0.055);
  border: 1px solid rgba(245, 242, 236, 0.16);
  border-radius: 10px;
  color: #F5F2EC;
  padding: 14px 16px;
  font-family: var(--font-sans);
  font-size: 15px;
  width: 100%;
  outline: none;
  transition: border-color 300ms var(--ease-primary), box-shadow 300ms var(--ease-primary);
}

.form-field-input::placeholder {
  color: rgba(245, 242, 236, 0.42);
}

.form-field-input:focus {
  border-color: var(--coral-glow);
  box-shadow: 0 0 0 3px rgba(239, 131, 84, 0.10);
}

.form-field-textarea {
  min-height: 150px;
  resize: vertical;
}

.form-submit-btn {
  height: 46px;
  padding: 0 22px;
  border-radius: 9px;
  background-color: var(--coral-glow);
  color: #222222;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 650;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: transform 400ms var(--ease-primary), background 400ms var(--ease-primary), box-shadow 400ms var(--ease-primary);
}

.form-submit-btn:hover {
  transform: translateY(-2px);
  background-color: var(--ivory);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.14);
}

/* Toast Notifications */
.toast-msg {
  background-color: var(--jet-black);
  color: var(--ivory);
  border: 1px solid rgba(239, 131, 84, 0.4);
  border-radius: 12px;
  padding: 14px 20px;
  font-family: var(--font-sans);
  font-size: 14.5px;
  font-weight: 500;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toastSlideUp 350ms var(--ease-primary) both;
}
@keyframes toastSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   FOOTER REDISEÑADO (Franja superior + Fila inferior completa)
   ========================================================================== */
.footer-section-v2 {
  background-color: var(--jet-black);
  color: var(--ivory);
  border-top: 1px solid rgba(245, 242, 236, 0.12);
  padding: 56px 24px 44px;
}
@media (max-width: 768px) {
  .footer-section-v2 { padding: 44px 16px 36px; }
}

.footer-thanks-title {
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 450;
  color: var(--silver);
  letter-spacing: 0.02em;
  opacity: 0.85;
  margin: 0;
  text-align: center;
}

.footer-container-v2 {
  max-width: 1140px;
  margin: 0 auto;
}

.footer-top-strip {
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(245, 242, 236, 0.12);
  margin-bottom: 32px;
}

.footer-lead-phrase {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(2.2rem, 4vw, 4.5rem);
  line-height: 1.1;
  color: var(--ivory);
}

.footer-sub-phrase {
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: rgba(245, 242, 236, 0.55);
  margin-top: 8px;
}

.footer-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
@media (max-width: 768px) {
  .footer-bottom-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

.footer-brand-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ivory);
}

.footer-logo-svg {
  width: 26px;
  height: auto;
  aspect-ratio: 108 / 96;
  color: var(--white);
  display: block;
  transform: none !important;
}


.footer-nav-link {
  color: rgba(245, 242, 236, 0.6);
  text-decoration: none;
  transition: color 300ms var(--ease-primary);
}
.footer-nav-link:hover {
  color: var(--coral-glow);
}

.footer-right-col {
  text-align: right;
}
@media (max-width: 768px) {
  .footer-right-col { text-align: left; }
}

/* Botón Footer: Descargar CV en naranja (mismo estilo y dimensiones que en hero) */
.footer-btn-cv {
  height: 42px;
  padding: 0 20px;
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  text-decoration: none;
  background-color: var(--coral-glow);
  color: #FFFFFF;
  border: 1px solid transparent;
  box-shadow: 0 2px 10px rgba(239, 131, 84, 0.28);
  transition: transform 300ms var(--ease-primary), box-shadow 300ms var(--ease-primary), background-color 300ms ease;
  cursor: pointer;
}
.footer-btn-cv:hover {
  transform: translateY(-1.5px);
  background-color: #E26D3B;
  color: #FFFFFF;
  box-shadow: 0 6px 18px rgba(239, 131, 84, 0.42);
}

/* ==========================================================================
   PREFERS REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .cinta-track {
    animation: none !important;
  }
  .story-scene,
  .story-stagger-item,
  .story-adivina-box,
  .timeline-glass-card,
  .timeline-featured-card,
  .anim-divider-aprender {
    opacity: 1 !important;
    transform: none !important;
  }
  .divider-horizontal-line-fill {
    width: 100% !important;
  }
}


/* Dark mode in Conóceme (Escena 6 - Duelo) */
#conoceme.dark-mode-active {
  background-color: var(--jet-black);
  color: var(--ivory);
}
#conoceme.dark-mode-active .conoceme-heading,
#conoceme.dark-mode-active .conoceme-subheading-dark,
#conoceme.dark-mode-active .story-line {
  color: var(--ivory) !important;
}
#conoceme.dark-mode-active .text-\[\#4F5D75\] {
  color: rgba(245, 242, 236, 0.75) !important;
}
#conoceme.dark-mode-active .story-stagger-item {
  color: rgba(245, 242, 236, 0.8) !important;
}
#conoceme.dark-mode-active .bg-white\/40 {
  background-color: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
}
#conoceme.dark-mode-active .narrative-pause-box {
  background-color: rgba(255, 255, 255, 0.08) !important;
  border-left-color: var(--coral-glow) !important;
}
#conoceme.dark-mode-active .conoceme-cierre-estable p {
  color: var(--ivory) !important;
}


/* ==========================================================================
   MI EXPERIENCIA - TIMELINE EDITORIAL POR PUESTOS
   Línea central, alternancia, jerarquía tipográfica invertida y hover estratificado
   ========================================================================== */
.timeline-container-alt {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 40px 48px;
  position: relative;
}
@media (max-width: 1024px) {
  .timeline-container-alt {
    padding: 20px 28px 36px !important;
  }
}
@media (max-width: 768px) {
  .experiencia-section {
    padding-top: 68px !important;
    padding-bottom: 60px !important;
  }
  .timeline-container-alt {
    padding: 16px 20px 24px !important;
  }
}

/* Riel Central (Desktop 50% / Móvil 20px) */
.timeline-central-rail {
  position: absolute;
  top: 40px;
  bottom: 60px;
  left: 50%;
  width: 2px;
  background-color: rgba(79, 93, 117, 0.18);
  transform: translateX(-50%);
  z-index: 1;
}

.timeline-rail-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background-color: var(--coral-glow);
  box-shadow: 0 0 10px rgba(239, 131, 84, 0.5);
  transition: height 100ms linear;
}

@media (max-width: 768px) {
  .timeline-central-rail {
    left: 50% !important; /* Línea central por detrás de las tarjetas en mobile */
    transform: translateX(-50%) !important;
    z-index: 1 !important;
    bottom: 24px !important;
  }
  .timeline-rail-fill {
    left: 0 !important;
    width: 100% !important;
    transform: none !important;
  }
}

/* Filas Alternadas */
.timeline-alt-row {
  display: grid;
  grid-template-columns: calc(50% - 40px) 80px calc(50% - 40px);
  align-items: center;
  margin-bottom: 48px; /* Ritmo base editorial */
  position: relative;
  z-index: 2;
}

/* Proporcionalidad Editorial en la separación vertical */
.timeline-alt-row.row-gap-compact {
  margin-bottom: 34px; /* Hitos directos / promociones internas rápidas */
}

.timeline-alt-row.row-gap-standard {
  margin-bottom: 48px; /* Ritmo estándar */
}

.timeline-alt-row.row-cluster-simultaneous {
  margin-bottom: 22px; /* Zona temporal densa 2016-2017: simultaneidad visual evidente */
}

.timeline-alt-row.row-gap-transition-stage {
  margin-bottom: 68px; /* Respiración amplia tras el fin de una etapa y cambio de ciudad */
}

.timeline-alt-row.row-gap-long-span {
  margin-bottom: 74px; /* Mayor espacio vertical para el período de 6 años en Gestión Previsional */
}

.timeline-alt-row:last-child {
  margin-bottom: 0 !important;
}

@media (max-width: 768px) {
  .timeline-alt-row {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    padding-left: 0 !important; /* Tarjetas ocupan el ancho completo sin indentación */
    padding-right: 0 !important;
    margin-bottom: 28px !important;
    width: 100% !important;
    position: relative !important;
    z-index: 2 !important;
  }
  .timeline-alt-row.row-cluster-simultaneous {
    margin-bottom: 20px !important;
  }
  .timeline-alt-row.row-gap-transition-stage {
    margin-bottom: 34px !important;
  }
  .timeline-alt-row.row-gap-long-span {
    margin-bottom: 36px !important;
  }
  .timeline-alt-row:last-child {
    margin-bottom: 0 !important;
  }
}

/* Pin Central */
.timeline-center-node {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: var(--ivory);
  border: 3px solid var(--blue-slate);
  margin: 0 auto;
  position: relative;
  z-index: 3;
  transition: background-color 350ms var(--ease-primary), border-color 350ms var(--ease-primary), transform 350ms var(--ease-primary), box-shadow 350ms var(--ease-primary);
}

.timeline-center-node.is-active {
  background-color: var(--coral-glow);
  border-color: var(--coral-glow);
  transform: scale(1.25);
  box-shadow: 0 0 12px rgba(239, 131, 84, 0.6);
}

.timeline-center-node.node-heavy {
  width: 16px;
  height: 16px;
}

.timeline-center-node.node-current {
  width: 17px;
  height: 17px;
  background-color: var(--coral-glow);
  border-color: #FFFFFF;
  box-shadow: 0 0 16px rgba(239, 131, 84, 0.7);
}

@media (max-width: 768px) {
  .timeline-center-node {
    display: none !important;
  }
}

/* Lado Opuesto: Etiqueta de Fecha junto a la línea */
.timeline-alt-side-label {
  display: flex;
  align-items: center;
  opacity: 0;
  transition: opacity 600ms cubic-bezier(0.16, 1, 0.3, 1) 120ms;
}

.timeline-alt-row.is-revealed .timeline-alt-side-label {
  opacity: 1;
}

.row-left .timeline-alt-side-label {
  justify-content: flex-start;
  padding-left: 20px;
}

.row-right .timeline-alt-side-label {
  justify-content: flex-end;
  padding-right: 20px;
}

@media (max-width: 768px) {
  .timeline-alt-side-label {
    order: 1 !important;
    margin-bottom: 10px !important;
    padding: 0 !important;
    justify-content: center !important; /* Centrado sobre el riel en mobile */
    opacity: 1 !important;
  }
  .side-date-badge {
    background: rgba(255, 255, 255, 0.94) !important;
    box-shadow: 0 2px 8px rgba(45, 49, 66, 0.08) !important;
    position: relative !important;
    z-index: 3 !important;
  }
}

.side-date-badge {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-slate);
  letter-spacing: 0.015em;
  padding: 4px 12px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(79, 93, 117, 0.14);
  white-space: nowrap;
  transition: color 300ms ease, border-color 300ms ease, background 300ms ease;
}

.timeline-alt-row.is-revealed .side-date-badge {
  color: var(--charcoal);
  border-color: rgba(79, 93, 117, 0.22);
}

.side-date-current {
  color: var(--coral-glow) !important;
  border-color: rgba(239, 131, 84, 0.35) !important;
  background: rgba(239, 131, 84, 0.09) !important;
  font-weight: 700;
}

/* ==========================================================================
   TARJETAS DE PUESTO (CARD)
   ========================================================================== */
.timeline-exp-card {
  position: relative;
  width: 100%;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(79, 93, 117, 0.14);
  box-shadow: 0 10px 28px rgba(45, 49, 66, 0.05), 0 2px 6px rgba(45, 49, 66, 0.03);
  overflow: hidden;
  cursor: pointer;
  outline: none;
  transition: transform 400ms var(--ease-primary), box-shadow 400ms var(--ease-primary), border-color 300ms ease;
}

@media (max-width: 768px) {
  .timeline-exp-card {
    order: 2 !important;
    width: 100% !important;
    position: relative !important;
    z-index: 2 !important;
    background: rgba(255, 255, 255, 0.95) !important; /* Fondo opaco/frosted para que la línea pase por detrás */
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
  }
}

.timeline-exp-card:hover,
.timeline-exp-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(45, 49, 66, 0.12), 0 4px 10px rgba(45, 49, 66, 0.05);
  border-color: rgba(239, 131, 84, 0.4);
}

/* Animaciones de entrada suaves (desplazamiento lateral refinado) */
.timeline-alt-row.row-left .timeline-exp-card {
  opacity: 0;
  transform: translateX(-24px);
  transition: opacity 700ms cubic-bezier(0.16, 1, 0.3, 1), transform 700ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 350ms ease, border-color 350ms ease;
}
.timeline-alt-row.row-left.is-revealed .timeline-exp-card {
  opacity: 1;
  transform: translateX(0);
}

.timeline-alt-row.row-right .timeline-exp-card {
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 700ms cubic-bezier(0.16, 1, 0.3, 1), transform 700ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 350ms ease, border-color 350ms ease;
}
.timeline-alt-row.row-right.is-revealed .timeline-exp-card {
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 768px) {
  .timeline-alt-row.row-left .timeline-exp-card,
  .timeline-alt-row.row-right .timeline-exp-card {
    transform: translateY(16px);
  }
  .timeline-alt-row.is-revealed .timeline-exp-card {
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .timeline-alt-row .timeline-exp-card,
  .timeline-alt-row .timeline-alt-side-label {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Jerarquía de tamaño sutil por duración / relevancia */
.card-tier-base {
  min-height: 140px;
  padding: 22px 24px;
}

.card-tier-mid {
  min-height: 154px;
  padding: 26px 28px;
}

.card-tier-lg {
  min-height: 172px;
  padding: 30px 32px;
  border-color: rgba(79, 93, 117, 0.18);
  box-shadow: 0 14px 34px rgba(45, 49, 66, 0.07), 0 3px 8px rgba(45, 49, 66, 0.04);
}

.card-tier-current {
  min-height: 166px;
  padding: 28px 30px;
  border-color: rgba(239, 131, 84, 0.45);
  box-shadow: 0 16px 40px rgba(239, 131, 84, 0.13), 0 4px 12px rgba(45, 49, 66, 0.05);
}

/* Ajustes específicos de altura mínima por extensión de texto/quote para evitar scroll */
.timeline-alt-row[data-index="1"] .timeline-exp-card {
  min-height: 258px;
}
.timeline-alt-row[data-index="2"] .timeline-exp-card {
  min-height: 245px;
}
.timeline-alt-row[data-index="3"] .timeline-exp-card {
  min-height: 236px;
}
.timeline-alt-row[data-index="4"] .timeline-exp-card {
  min-height: 192px;
}
.timeline-alt-row[data-index="5"] .timeline-exp-card {
  min-height: 236px;
}
.timeline-alt-row[data-index="6"] .timeline-exp-card {
  min-height: 236px;
}
.timeline-alt-row[data-index="7"] .timeline-exp-card {
  min-height: 258px;
}
.timeline-alt-row[data-index="8"] .timeline-exp-card {
  min-height: 192px;
}
.timeline-alt-row[data-index="9"] .timeline-exp-card {
  min-height: 214px;
}
.timeline-alt-row[data-index="10"] .timeline-exp-card {
  min-height: 192px;
}
.timeline-alt-row[data-index="11"] .timeline-exp-card {
  min-height: 192px;
}

/* Continuidad sutil en República AFAP */
.card-afap {
  border-left: 3px solid rgba(79, 93, 117, 0.28);
}
.row-left .card-afap {
  border-left: 1px solid rgba(79, 93, 117, 0.14);
  border-right: 3px solid rgba(79, 93, 117, 0.28);
}
@media (max-width: 768px) {
  .row-left .card-afap,
  .row-right .card-afap {
    border-right: 1px solid rgba(79, 93, 117, 0.14) !important;
    border-left: 3px solid rgba(79, 93, 117, 0.28) !important;
  }
}
.card-tier-current.card-afap {
  border-right-color: var(--coral-glow) !important;
  border-left-color: var(--coral-glow) !important;
}

/* ==========================================================================
   ESTADO FRONTAL NORMAL (PUESTO, EMPRESA, LUGAR)
   ========================================================================== */
.timeline-exp-card-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  height: 100%;
  transition: opacity 350ms cubic-bezier(0.16, 1, 0.3, 1), transform 350ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* Alineación interna hacia la línea de tiempo */
.row-left .timeline-exp-card-inner {
  text-align: right;
  align-items: flex-end;
}
.row-left .card-meta-loc {
  justify-content: flex-end;
}

.row-right .timeline-exp-card-inner {
  text-align: left;
  align-items: flex-start;
}
.row-right .card-meta-loc {
  justify-content: flex-start;
}

@media (max-width: 768px) {
  .row-left .timeline-exp-card-inner,
  .row-right .timeline-exp-card-inner {
    text-align: left !important;
    align-items: flex-start !important;
  }
  .row-left .card-meta-loc,
  .row-right .card-meta-loc {
    justify-content: flex-start !important;
  }
}

/* Etiqueta ACTUAL */
.card-badge-actual-wrap {
  margin-bottom: 6px;
}
.badge-actual {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--coral-glow);
  background: rgba(239, 131, 84, 0.12);
  border: 1px solid rgba(239, 131, 84, 0.35);
  padding: 2px 8px;
  border-radius: 6px;
}

/* 1. EL PUESTO (Protagonista principal, Carbón, mayor tamaño y peso) */
.card-puesto {
  font-family: var(--font-sans);
  font-size: clamp(1.15rem, 1.35vw, 1.35rem);
  font-weight: 700;
  line-height: 1.22;
  color: var(--charcoal);
  margin: 0;
  letter-spacing: -0.015em;
}

/* 2. LA EMPRESA (En mayúsculas, menor tamaño, Blue Slate) */
.card-empresa {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-slate);
  margin-top: 5px;
  line-height: 1.3;
}

/* 3. EL LUGAR (MapPin en Coral Glow + ciudad) */
.card-meta-loc {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  color: #718096;
}

.card-loc-icon {
  width: 13px;
  height: 13px;
  color: var(--coral-glow);
  stroke: var(--coral-glow);
  flex-shrink: 0;
}

/* ==========================================================================
   HOVER ESTRATIFICADO: OVERLAY AZUL OSCURO #2D3142
   ========================================================================== */
/* Overlay total con deslizamiento desde abajo (idéntico a formación) */
.timeline-exp-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(45, 49, 66, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--ivory);
  padding: 18px 24px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  transform: translateY(100%); /* Comienza oculta abajo */
  opacity: 0.3;
  pointer-events: none;
  z-index: 5;
  transition: transform 480ms var(--ease-primary), opacity 450ms var(--ease-primary);
  border-radius: 17px;
}

.timeline-exp-overlay-content {
  display: flex;
  flex-direction: column;
  margin: auto 0;
  padding: 8px 0;
  width: 100%;
}

.card-overlay-desc {
  font-family: var(--font-sans);
  font-size: 13.5px;
  line-height: 1.56;
  color: #F5F2EC;
  margin: 0;
  letter-spacing: -0.005em;
}

.card-overlay-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1rem, 1.18vw, 1.14rem);
  line-height: 1.38;
  color: var(--coral-glow);
  margin: 10px 0 0;
  letter-spacing: -0.01em;
}

/* Hover Desktop y Tap Móvil: Desliza desde abajo hacia arriba; al salir se oculta hacia abajo */
.timeline-exp-card:hover .timeline-exp-card-inner,
.timeline-exp-card.is-expanded .timeline-exp-card-inner {
  opacity: 0.15;
  transform: scale(0.98);
  transition: opacity 300ms ease, transform 300ms ease;
}

.timeline-exp-card:hover .timeline-exp-card-overlay,
.timeline-exp-card.is-expanded .timeline-exp-card-overlay {
  transform: translateY(0); /* Aparece la descripción azul desde abajo */
  opacity: 1;
  pointer-events: auto;
  transition: transform 480ms var(--ease-primary), opacity 450ms var(--ease-primary);
}

/* ==========================================================================
   CONÓCEME - SCROLLYTELLING SPOTLIGHT & FRASES DINÁMICAS
   ========================================================================== */
.story-stream {
  display: flex;
  flex-direction: column;
  gap: 12vh;
  padding: 4vh 0 16vh;
}

.story-beat {
  min-height: 48vh;
  display: flex;
  align-items: center;
  opacity: 0.1;
  transform: translateY(18px) scale(0.98);
  filter: blur(2px);
  transition: opacity 450ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 450ms cubic-bezier(0.16, 1, 0.3, 1),
              filter 450ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform, filter;
}

.story-beat.is-focused {
  opacity: 1 !important;
  transform: translateY(0) scale(1) !important;
  filter: blur(0) !important;
}

.beat-text {
  font-family: var(--font-sans);
  font-size: clamp(1.4rem, 2.3vw, 2.05rem);
  line-height: 1.62;
  color: var(--charcoal);
  max-width: 680px;
  letter-spacing: -0.015em;
}

#conoceme.dark-mode-active .beat-text {
  color: var(--ivory) !important;
}
#conoceme.dark-mode-active .beat-text strong {
  color: #FFFFFF !important;
}

.beat-adivina {
  justify-content: center;
  text-align: center;
}

.beat-cierre {
  min-height: auto;
  padding: 60px 0 20px;
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
}


/* Relleno Naranja (Coral Glow) que se despinta al scrollear hacia abajo */
.timeline-rail-fill {
  position: absolute;
  top: 0%;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--coral-glow);
  box-shadow: 0 0 12px rgba(239, 131, 84, 0.6);
  transition: top 80ms linear, height 80ms linear;
}

.timeline-center-node {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: var(--ivory);
  border: 3px solid var(--blue-slate);
  margin: 0 auto;
  position: relative;
  z-index: 3;
  transition: background-color 300ms var(--ease-primary), border-color 300ms var(--ease-primary), transform 300ms var(--ease-primary), box-shadow 300ms var(--ease-primary);
}

/* Todos los nodos inician activos en naranja y se van despintando al pasar */
.timeline-center-node.is-active {
  background-color: var(--coral-glow);
  border-color: var(--coral-glow);
  transform: scale(1.25);
  box-shadow: 0 0 10px rgba(239, 131, 84, 0.6);
}

.timeline-center-node.node-featured.is-active {
  width: 18px;
  height: 18px;
  border-color: var(--coral-glow);
  background-color: var(--coral-glow);
  transform: scale(1.3);
}


/* ==========================================================================
   CONÓCEME - PINNED STAGE VIEWPORT (FOTO IZQUIERDA / TEXTO DERECHA)
   ========================================================================== */
.conoceme-pinned-section {
  position: relative;
  height: 380vh; /* Pista de scroll para leer pausadamente con la pantalla detenida */
  background-color: var(--ivory);
  transition: background-color 700ms var(--ease-primary), color 700ms var(--ease-primary);
}

.conoceme-pinned-section.dark-mode-active {
  background-color: var(--jet-black) !important;
  color: var(--ivory) !important;
}

.conoceme-sticky-stage {
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 32px 48px 36px;
  max-width: 1320px;
  margin: 0 auto;
  overflow: hidden;
}

@media (max-width: 1024px) {
  .conoceme-sticky-stage { padding: 24px 28px; }
}
@media (max-width: 768px) {
  .conoceme-pinned-section { height: auto; }
  .conoceme-sticky-stage {
    position: static;
    height: auto;
    padding: 32px 20px;
    overflow: visible;
  }
}

.conoceme-stage-header {
  margin-bottom: 24px;
}

.conoceme-stage-grid {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: clamp(36px, 5vw, 68px);
  align-items: center;
  flex: 1;
  min-height: 0;
}

@media (max-width: 960px) {
  .conoceme-stage-grid {
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 32px;
  }
}
@media (max-width: 768px) {
  .conoceme-stage-grid {
    display: flex;
    flex-direction: column;
    gap: 28px;
  }
}

/* Foto a la izquierda */
.conoceme-photo-side {
  width: 100%;
  display: flex;
  justify-content: center;
}

.conoceme-pinned-photo-card {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 4 / 5;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 45px rgba(45, 49, 66, 0.12), 0 4px 12px rgba(45, 49, 66, 0.05);
  background-color: var(--silver);
}

.conoceme-pinned-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* Texto a la derecha: stream con máscara de difuminado arriba y abajo */
.conoceme-text-side {
  height: 100%;
  display: flex;
  align-items: center;
  min-height: 0;
}

.conoceme-stream-viewport {
  width: 100%;
  max-height: 420px;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
  display: flex;
  align-items: center;
}

@media (max-width: 768px) {
  .conoceme-stream-viewport {
    max-height: none;
    mask-image: none;
    -webkit-mask-image: none;
    overflow: visible;
  }
}

.conoceme-stream-track {
  width: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 120ms ease-out;
  will-change: transform;
}

.story-beat {
  margin-bottom: 22px; /* Espacios mucho más compactos */
  padding: 10px 0;
  opacity: 0.15;
  filter: blur(1.5px);
  transform: translateY(10px) scale(0.98);
  transition: opacity 300ms var(--ease-primary), transform 300ms var(--ease-primary), filter 300ms var(--ease-primary);
}

.story-beat.is-focused {
  opacity: 1 !important;
  filter: blur(0) !important;
  transform: translateY(0) scale(1) !important;
}

.beat-text {
  font-family: var(--font-sans);
  font-size: clamp(1.15rem, 1.65vw, 1.45rem); /* Fuente apenas más chica (era 2.05rem) */
  line-height: 1.65;
  color: var(--charcoal);
  max-width: 680px;
  letter-spacing: -0.01em;
}

.conoceme-pinned-section.dark-mode-active .beat-text {
  color: var(--ivory) !important;
}
.conoceme-pinned-section.dark-mode-active .beat-text strong {
  color: #FFFFFF !important;
}


/* ==========================================================================
   CAJITAS DE CONTACTO Y REDES (ESTILO FORMACIÓN / AESTHETIC V2)
   ========================================================================== */
.contacto-box-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(245, 242, 236, 0.12);
  border-radius: 20px;
  padding: 18px 22px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

.contacto-box-title {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
}

.contact-channel-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(245, 242, 236, 0.08);
  border-radius: 14px;
  text-decoration: none;
  transition: all 250ms var(--ease-primary);
}

.contact-channel-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(239, 131, 84, 0.3);
}

.channel-icon-badge {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.channel-action-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.channel-copy-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(245, 242, 236, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 200ms ease;
}

.channel-copy-btn:hover {
  background: rgba(239, 131, 84, 0.2);
  border-color: var(--coral-glow);
}

.social-network-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(245, 242, 236, 0.08);
  border-radius: 14px;
  text-decoration: none;
  transition: all 250ms var(--ease-primary);
}

.social-network-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(239, 131, 84, 0.35);
  transform: translateY(-2px);
}

.social-card-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-card-label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  color: var(--ivory);
}

/* Botón flotante 'Volver arriba' */
#scroll-to-top-wrap {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 50;
  transition: opacity 300ms cubic-bezier(0.25, 1, 0.5, 1), transform 300ms cubic-bezier(0.25, 1, 0.5, 1);
}

#scroll-to-top-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #EF8354;
  color: #2D3142;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(239, 131, 84, 0.4);
  border: none;
  cursor: pointer;
  transition: transform 300ms cubic-bezier(0.34, 1.56, 0.64, 1), background-color 200ms ease;
}

#scroll-to-top-btn:hover {
  background: #ff9568;
  transform: scale(1.12);
}

#scroll-to-top-btn:active {
  transform: scale(0.94);
}

#scroll-to-top-tooltip {
  transition: opacity 200ms ease, transform 200ms ease;
}


/* Estado de éxito del formulario perfectamente centrado */
#form-success-state {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  height: 100%;
  margin: auto;
}

#form-success-state.hidden {
  display: none !important;
}

#form-success-icon-badge {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(239, 131, 84, 0.2);
  border: 1px solid rgba(239, 131, 84, 0.5);
  color: #EF8354;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
  box-shadow: 0 10px 25px rgba(239, 131, 84, 0.25);
}
