/* ============================================
   ATÓMICA TALENT — Editorial Premium Dark
   Sistema de diseño para sitio web
   ============================================ */

:root {
  /* Paleta */
  --bg-primary: #0A0A0A;
  --bg-secondary: #111111;
  --bg-tertiary: #1A1A1A;
  --bg-card: #161616;
  --border-subtle: #242424;
  --border-strong: #353535;

  --text-primary: #F5F5F5;
  --text-secondary: #B8B8B8;
  --text-muted: #7A7A7A;

  --accent: #7FB8C2;          /* teal frío del brochure */
  --accent-soft: #4A7A82;
  --accent-glow: rgba(127, 184, 194, 0.15);

  /* Tipografía */
  --font-display: 'Fraunces', 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', monospace;

  /* Espaciado y layout */
  --max-width: 1280px;
  --max-width-narrow: 920px;
  --section-padding: clamp(80px, 10vw, 160px);
  --container-padding: clamp(24px, 5vw, 80px);

  /* Transiciones */
  --transition-fast: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 400ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 800ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================
   RESET & BASE
   ============================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.6;
  letter-spacing: -0.01em;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover { color: var(--accent); }

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

/* ============================================
   TIPOGRAFÍA
   ============================================ */

.eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
  display: inline-block;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 300;
}

h3 {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 400;
}

h4 {
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 500;
  font-family: var(--font-body);
  letter-spacing: -0.01em;
}

.italic { font-style: italic; }
.accent-text { color: var(--accent); }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }

p {
  font-size: clamp(16px, 1.1vw, 18px);
  line-height: 1.7;
  color: var(--text-secondary);
}

p.lead {
  font-size: clamp(20px, 1.6vw, 24px);
  line-height: 1.5;
  color: var(--text-primary);
  font-weight: 300;
}

/* ============================================
   LAYOUT
   ============================================ */

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

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

section {
  padding: var(--section-padding) 0;
  position: relative;
}

.section-divider {
  width: 60px;
  height: 1px;
  background: var(--accent);
  margin: 32px 0;
}

/* ============================================
   NAVEGACIÓN
   ============================================ */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  padding: 24px var(--container-padding);
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-base);
}

.navbar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar-brand img {
  height: 72px;
  width: auto;
  transition: height 0.3s ease;
}

.navbar.scrolled .navbar-brand img {
  height: 52px;
}

@media (max-width: 700px) {
  .navbar-brand img { height: 56px; }
  .navbar.scrolled .navbar-brand img { height: 44px; }
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: 40px;
}

.navbar-menu a {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.navbar-menu a:hover { color: var(--text-primary); }

.navbar-menu a.active {
  color: var(--text-primary);
  position: relative;
}

.navbar-menu a.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--accent);
}

.navbar-cta {
  padding: 10px 22px;
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all var(--transition-fast);
}

.navbar-cta:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg-primary);
}

.mobile-menu-toggle {
  display: none;
  font-size: 24px;
  color: var(--text-primary);
}

@media (max-width: 900px) {
  .navbar-menu { display: none; }
  .mobile-menu-toggle { display: block; }
  .navbar-menu.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg-secondary);
    padding: 32px var(--container-padding);
    gap: 24px;
    border-bottom: 1px solid var(--border-subtle);
  }
}

/* ============================================
   BOTONES
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 100px;
  transition: all var(--transition-base);
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--text-primary);
  color: var(--bg-primary);
}

.btn-primary:hover {
  background: var(--accent);
  color: var(--bg-primary);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 12px 0;
  border-radius: 0;
}

.btn-ghost:hover {
  color: var(--accent);
  gap: 16px;
}

.btn-arrow::after {
  content: '→';
  display: inline-block;
  transition: transform var(--transition-fast);
}

.btn-arrow:hover::after { transform: translateX(4px); }

/* Botón XL — más llamativo para el hero */
.btn-xl {
  padding: 20px 38px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.btn-primary.btn-xl {
  background: var(--accent);
  color: var(--bg-primary);
  box-shadow: 0 8px 32px rgba(127, 184, 194, 0.25), 0 0 0 1px rgba(127, 184, 194, 0.4);
}

.btn-primary.btn-xl:hover {
  background: var(--text-primary);
  box-shadow: 0 12px 40px rgba(127, 184, 194, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.6);
  transform: translateY(-3px);
}

.btn-ghost.btn-xl {
  padding: 20px 0;
  color: var(--text-primary);
  font-weight: 500;
  border-bottom: 1px solid var(--border-strong);
  border-radius: 0;
}

.btn-ghost.btn-xl:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
  gap: 18px;
}

/* ============================================
   HERO
   ============================================ */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 140px;
  padding-bottom: 80px;
}

/* Hero compacto: todo above-the-fold sin scroll */
.hero.hero-compact {
  min-height: 100vh;
  height: 100vh;
  max-height: 980px;
  padding-top: 160px;
  padding-bottom: 40px;
  align-items: center;
}

@media (max-width: 1100px) {
  .hero.hero-compact {
    height: auto;
    min-height: 100vh;
    padding-top: 140px;
    padding-bottom: 60px;
  }
}

.hero-layout-v2 {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 64px;
  align-items: center;
  width: 100%;
}

@media (max-width: 1100px) {
  .hero-layout-v2 {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

.hero-actions-bold {
  gap: 24px;
  margin-top: 8px;
  align-items: center;
}

/* Stats fuera del hero, sección propia más compacta */
.hero-stats-section {
  padding: 56px 0 64px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
}

.hero-stats-section .hero-stats {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

/* Brand wordmark prominente en hero */
.hero-brand {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border-subtle);
}

.hero-brand img {
  height: 80px;
  width: auto;
}

.hero-brand-tagline {
  font-family: var(--font-display);
  font-size: 18px;
  font-style: italic;
  color: var(--text-secondary);
  font-weight: 300;
  letter-spacing: 0.02em;
  line-height: 1.3;
  border-left: 1px solid var(--border-strong);
  padding-left: 24px;
}

@media (max-width: 700px) {
  .hero-brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .hero-brand img { height: 56px; }
  .hero-brand-tagline {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--border-strong);
    padding-top: 16px;
  }
}

/* Hero layout 2 columnas */
.hero-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 80px;
  align-items: center;
}

@media (max-width: 1100px) {
  .hero-layout { grid-template-columns: 1fr; gap: 56px; }
}

.hero-image-frame {
  position: relative;
  aspect-ratio: 4/5;
  width: 100%;
  max-width: 540px;
  margin-left: auto;
  z-index: 2;
}

@media (max-width: 1100px) {
  .hero-image-frame {
    margin: 0 auto;
    max-width: 380px;
  }
}

/* Decoración del frame: marco con esquinas */
.hero-image-frame::before,
.hero-image-frame::after {
  content: '';
  position: absolute;
  width: 32px;
  height: 32px;
  border: 2px solid var(--accent);
  pointer-events: none;
  z-index: 5;
  opacity: 0.6;
}

.hero-image-frame::before {
  top: -12px;
  left: -12px;
  border-right: none;
  border-bottom: none;
}

.hero-image-frame::after {
  bottom: -12px;
  right: -12px;
  border-left: none;
  border-top: none;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(127, 184, 194, 0.08), transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(127, 184, 194, 0.05), transparent 50%);
  z-index: 0;
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 80px 80px;
  z-index: 0;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 980px;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 112px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.04em;
  margin: 32px 0 40px;
}

.hero.hero-compact .hero-headline {
  font-size: clamp(44px, 6.2vw, 88px);
  margin: 20px 0 24px;
}

.hero-headline .accent-line {
  display: block;
  font-style: italic;
  color: var(--accent);
  font-weight: 300;
}

.hero-sub {
  font-size: clamp(18px, 1.5vw, 22px);
  color: var(--text-secondary);
  max-width: 640px;
  line-height: 1.6;
  margin-bottom: 56px;
}

.hero.hero-compact .hero-sub {
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.55;
  margin-bottom: 36px;
  max-width: 540px;
}

.hero.hero-compact .hero-image-frame {
  max-width: 540px;
  width: 100%;
  margin-left: auto;
  margin-right: 0;
  aspect-ratio: 4/5;
}

.hero.hero-compact .hero-video-frame {
  min-height: 0;
  height: 100%;
  aspect-ratio: 4/5;
}

/* Video cuadrado 800x800: con cover llena el frame.
   El cerebro y el logo están centrados, NO se cortan */
.hero.hero-compact .hero-video-frame video {
  object-fit: cover;
  object-position: center center;
  background: #000;
}

@media (max-width: 1100px) {
  .hero.hero-compact .hero-image-frame {
    margin: 0 auto;
    max-width: 460px;
    aspect-ratio: 4/5;
  }
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 40px;
  margin-top: 100px;
  padding-top: 40px;
  border-top: 1px solid var(--border-subtle);
}

.hero-stat-number {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 300;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.hero-stat-label {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ============================================
   SECTION HEADERS
   ============================================ */

.section-header {
  margin-bottom: 80px;
  max-width: 800px;
}

.section-header.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-header h2 {
  margin-bottom: 24px;
}

.section-header p {
  font-size: clamp(18px, 1.4vw, 22px);
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================
   GRID & CARDS
   ============================================ */

.grid {
  display: grid;
  gap: 24px;
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 40px 36px;
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.card:hover {
  border-color: var(--border-strong);
  background: var(--bg-tertiary);
  transform: translateY(-4px);
}

.card:hover::before { opacity: 1; }

.card-number {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 24px;
}

.card-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.3;
}

.card-desc {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
  flex: 1;
  margin-bottom: 28px;
}

.card-link {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap var(--transition-fast);
}

.card-link:hover { gap: 14px; }

.card-link::after { content: '→'; }

/* Card Programa especial */
.card-program {
  padding: 32px 28px;
  min-height: 240px;
}

.card-program .card-title {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ============================================
   FUNDADORA SECTION
   ============================================ */

.founder {
  background: var(--bg-secondary);
}

.founder-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: center;
}

@media (max-width: 900px) {
  .founder-inner { grid-template-columns: 1fr; gap: 48px; }
}

.founder-image {
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-card));
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.founder-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 30%, var(--accent-glow), transparent 60%);
}

.founder-image-placeholder {
  font-family: var(--font-display);
  font-size: 120px;
  color: var(--accent-soft);
  opacity: 0.3;
  font-style: italic;
}

.founder-credentials {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--border-subtle);
}

.credential-label {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.credential-value {
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.5;
}

/* ============================================
   PILARES / FILOSOFÍA
   ============================================ */

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

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

.pillar {
  padding: 56px 40px;
  border-right: 1px solid var(--border-subtle);
  position: relative;
}

.pillar:last-child { border-right: none; }

@media (max-width: 800px) {
  .pillar {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
  }
  .pillar:last-child { border-bottom: none; }
}

.pillar-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.15em;
  margin-bottom: 24px;
}

.pillar-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  margin-bottom: 16px;
}

.pillar-desc {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
}

/* ============================================
   INDUSTRIAS / CLIENTES
   ============================================ */

.industries-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  background: var(--border-subtle);
  border: 1px solid var(--border-subtle);
}

.industry-item {
  background: var(--bg-primary);
  padding: 32px 24px;
  text-align: center;
  transition: background var(--transition-base);
}

.industry-item:hover {
  background: var(--bg-secondary);
}

.industry-icon {
  width: 32px;
  height: 32px;
  margin: 0 auto 16px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 14px;
}

.industry-name {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta-section {
  background:
    radial-gradient(ellipse at top, var(--accent-glow), transparent 60%),
    var(--bg-primary);
  text-align: center;
  border-top: 1px solid var(--border-subtle);
}

/* ============================================
   CTA con video de fondo
   ============================================ */

.cta-with-video {
  position: relative;
  overflow: hidden;
  text-align: center;
  border-top: 1px solid var(--border-subtle);
  padding: var(--section-padding) 0;
}

.cta-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.cta-video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) brightness(0.45) contrast(1.1);
}

/* Overlay para mantener legibilidad */
.cta-video-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 10, 10, 0.7) 0%, rgba(10, 10, 10, 0.85) 100%),
    radial-gradient(ellipse at center, transparent 0%, rgba(10, 10, 10, 0.6) 80%);
  z-index: 1;
  pointer-events: none;
}

.cta-with-video > .container-narrow {
  position: relative;
  z-index: 2;
}

.cta-headline {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 32px;
  letter-spacing: -0.03em;
}

.cta-headline .italic { color: var(--accent); }

.cta-sub {
  font-size: clamp(18px, 1.4vw, 22px);
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 48px;
  line-height: 1.6;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

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

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

.footer-brand img {
  height: 40px;
  margin-bottom: 24px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 320px;
}

.footer-col h5 {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 12px;
}

.footer-col a {
  color: var(--text-muted);
  font-size: 14px;
  transition: color var(--transition-fast);
}

.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* ============================================
   FORMULARIO
   ============================================ */

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

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

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group.full { grid-column: 1 / -1; }

.form-label {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.form-input,
.form-select,
.form-textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-strong);
  padding: 14px 0;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 300;
  transition: border-color var(--transition-fast);
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-bottom-color: var(--accent);
}

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

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%237FB8C2'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
  background-size: 20px;
  padding-right: 28px;
}

.form-select option {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

/* ============================================
   PAGE HEADER (interior pages)
   ============================================ */

.page-header {
  padding: 200px 0 80px;
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
}

.page-header-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(127, 184, 194, 0.06), transparent 60%);
  z-index: 0;
}

.page-header-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.breadcrumb {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb-sep { margin: 0 12px; color: var(--text-muted); opacity: 0.5; }

.page-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 300;
  line-height: 1.05;
  margin-bottom: 32px;
  letter-spacing: -0.03em;
}

.page-title .italic {
  color: var(--accent);
  font-style: italic;
}

.page-subtitle {
  font-size: clamp(18px, 1.4vw, 22px);
  color: var(--text-secondary);
  max-width: 720px;
  line-height: 1.6;
}

/* ============================================
   FEATURES LIST (servicio detalle)
   ============================================ */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0;
  border-top: 1px solid var(--border-subtle);
}

.feature {
  padding: 48px 32px;
  border-right: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.feature-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
}

.feature h4 {
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
}

.feature p {
  font-size: 15px;
  color: var(--text-secondary);
}

/* ============================================
   QUOTE / TESTIMONIO
   ============================================ */

.quote {
  text-align: center;
  padding: 80px 0;
}

.quote-mark {
  font-family: var(--font-display);
  font-size: 80px;
  color: var(--accent);
  line-height: 0.5;
  margin-bottom: 32px;
}

.quote-text {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 300;
  font-style: italic;
  line-height: 1.4;
  color: var(--text-primary);
  margin-bottom: 32px;
  letter-spacing: -0.01em;
}

.quote-author {
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ============================================
   PROCESS / METODOLOGIA STEPS
   ============================================ */

.process {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  position: relative;
}

.process-step {
  position: relative;
}

.process-num {
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 200;
  color: var(--accent);
  opacity: 0.5;
  margin-bottom: 16px;
  line-height: 1;
}

.process-title {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

.process-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================
   ANIMATIONS
   ============================================ */

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(2deg); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.05); }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes drawLine {
  from { stroke-dashoffset: 1000; }
  to { stroke-dashoffset: 0; }
}

@keyframes blink {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

.fade-up {
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.fade-up-delay-1 { animation-delay: 0.1s; }
.fade-up-delay-2 { animation-delay: 0.2s; }
.fade-up-delay-3 { animation-delay: 0.3s; }
.fade-up-delay-4 { animation-delay: 0.4s; }
.fade-up-delay-5 { animation-delay: 0.5s; }

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Reveal stagger children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-stagger.visible > *:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0.05s; }
.reveal-stagger.visible > *:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.15s; }
.reveal-stagger.visible > *:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.25s; }
.reveal-stagger.visible > *:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: 0.35s; }
.reveal-stagger.visible > *:nth-child(5) { opacity: 1; transform: translateY(0); transition-delay: 0.45s; }
.reveal-stagger.visible > *:nth-child(6) { opacity: 1; transform: translateY(0); transition-delay: 0.55s; }
.reveal-stagger.visible > *:nth-child(7) { opacity: 1; transform: translateY(0); transition-delay: 0.65s; }
.reveal-stagger.visible > *:nth-child(8) { opacity: 1; transform: translateY(0); transition-delay: 0.75s; }

/* ============================================
   BRAIN / SYNAPSES BACKGROUND
   Red neural orgánica con pulsos eléctricos
   ============================================ */

.neural-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}

.neural-bg svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Dendritas (ramificaciones cerebrales) - finas y orgánicas */
.dendrite {
  stroke: rgba(127, 184, 194, 0.3);
  stroke-width: 0.8;
  fill: none;
  stroke-linecap: round;
}

/* Las ramas finas exteriores */
.dendrite-thin {
  stroke: rgba(127, 184, 194, 0.18);
  stroke-width: 0.5;
  fill: none;
  stroke-linecap: round;
}

/* Conexiones principales con pulso */
.synapse-path {
  stroke: rgba(127, 184, 194, 0.45);
  stroke-width: 1;
  fill: none;
  stroke-linecap: round;
  stroke-dasharray: 800;
  stroke-dashoffset: 800;
  animation: synapsePulse 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes synapsePulse {
  0% {
    stroke-dashoffset: 800;
    opacity: 0;
  }
  20% {
    opacity: 0.6;
  }
  60% {
    stroke-dashoffset: 0;
    opacity: 0.6;
  }
  100% {
    stroke-dashoffset: -800;
    opacity: 0;
  }
}

/* Soma (cuerpo neuronal) - nodos principales */
.soma {
  fill: var(--accent);
  filter: drop-shadow(0 0 6px rgba(127, 184, 194, 0.6));
  animation: somaFire 4s ease-in-out infinite;
}

@keyframes somaFire {
  0%, 100% {
    opacity: 0.4;
    transform: scale(1);
    filter: drop-shadow(0 0 4px rgba(127, 184, 194, 0.4));
  }
  10% {
    opacity: 1;
    transform: scale(1.4);
    filter: drop-shadow(0 0 16px rgba(127, 184, 194, 1));
  }
  30% {
    opacity: 0.6;
    transform: scale(1.1);
  }
}

/* Spark eléctrico que viaja por las sinapsis */
.spark {
  fill: #FFFFFF;
  filter: drop-shadow(0 0 8px var(--accent)) drop-shadow(0 0 4px #ffffff);
  opacity: 0;
}

.spark.firing {
  opacity: 1;
}

/* Núcleo cerebral central con halo respirante */
.brain-core {
  fill: none;
  stroke: rgba(127, 184, 194, 0.15);
  stroke-width: 1;
  animation: breathe 6s ease-in-out infinite;
  transform-origin: center;
}

@keyframes breathe {
  0%, 100% {
    transform: scale(1);
    opacity: 0.3;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.6;
  }
}

/* Glow background subtle */
.neural-glow {
  fill: url(#brainGlow);
  opacity: 0.4;
}

/* Nodos pequeños distribuidos (sinapsis menores) */
.synapse-dot {
  fill: var(--accent);
  opacity: 0.5;
  animation: blink 3s ease-in-out infinite;
}

.synapse-dot:nth-child(odd) { animation-delay: -1s; }
.synapse-dot:nth-child(3n) { animation-delay: -2s; }
.synapse-dot:nth-child(5n) { animation-delay: -0.5s; }

/* ============================================
   MARQUEE / TICKER
   ============================================ */

.marquee {
  overflow: hidden;
  position: relative;
  padding: 32px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
}

.marquee-track {
  display: flex;
  gap: 60px;
  width: max-content;
  animation: marquee 40s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-item {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 300;
  color: var(--text-secondary);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 60px;
}

.marquee-item::after {
  content: '✦';
  color: var(--accent);
  font-size: 0.6em;
  margin-left: 60px;
}

.marquee-item.italic {
  font-style: italic;
  color: var(--accent);
}

/* ============================================
   IMAGE PLACEHOLDERS / PHOTO ZONES
   ============================================ */

.photo-zone {
  position: relative;
  background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-card));
  border: 1px dashed var(--border-strong);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: all var(--transition-base);
}

.photo-zone::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, var(--accent-glow), transparent 70%);
  opacity: 0.5;
}

.photo-zone-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 24px;
}

.photo-zone-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 20px;
}

.photo-zone-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.photo-zone-desc {
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
  max-width: 280px;
  line-height: 1.5;
}

/* Image with overlay (when real photos are added) */
.photo-with-overlay {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}

.photo-with-overlay img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.photo-with-overlay:hover img {
  transform: scale(1.05);
}

.photo-with-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, var(--bg-primary));
  pointer-events: none;
}

/* Photo grid for testimonials/team */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.photo-grid .photo-zone {
  aspect-ratio: 4/5;
}

/* ============================================
   GALLERY STRIP
   ============================================ */

.gallery-strip {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 2fr;
  grid-template-rows: 280px 280px;
  gap: 16px;
  margin: 80px 0;
}

.gallery-strip .photo-zone:nth-child(1) { grid-row: span 2; }
.gallery-strip .photo-zone:nth-child(4) { grid-column: span 2; }

@media (max-width: 800px) {
  .gallery-strip {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .gallery-strip .photo-zone:nth-child(1),
  .gallery-strip .photo-zone:nth-child(4) {
    grid-row: auto;
    grid-column: auto;
  }
}

/* ============================================
   GALLERY STRIP V2 (3 tiles editoriales grandes)
   ============================================ */

.gallery-strip-v2 {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  grid-template-rows: 320px 320px;
  gap: 20px;
  margin: 80px 0;
}

.gallery-strip-v2 .gallery-tile-tall {
  grid-row: span 2;       /* tile grande izquierdo ocupa altura completa */
}

.gallery-strip-v2 .photo-frame {
  position: relative;
  overflow: hidden;
  cursor: default;
}

.gallery-strip-v2 .photo-frame .photo-real {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-strip-v2 .photo-frame:hover .photo-real {
  transform: scale(1.05);
}

/* Caption editorial sobre la imagen */
.gallery-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 32px;
  background: linear-gradient(180deg, transparent 0%, rgba(10, 10, 10, 0.85) 100%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transform: translateY(8px);
  opacity: 0.92;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.gallery-strip-v2 .photo-frame:hover .gallery-caption {
  transform: translateY(0);
  opacity: 1;
}

.gallery-caption-eyebrow {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
}

.gallery-caption-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--text-primary);
  font-style: italic;
}

@media (max-width: 900px) {
  .gallery-strip-v2 {
    grid-template-columns: 1fr;
    grid-template-rows: 380px 280px 280px;
    gap: 16px;
  }
  .gallery-strip-v2 .gallery-tile-tall {
    grid-row: auto;
  }
  .gallery-caption {
    padding: 20px 24px;
  }
  .gallery-caption-title {
    font-size: 18px;
  }
}

/* ============================================
   COUNTER ANIMATION
   ============================================ */

.counter {
  display: inline-block;
}

/* ============================================
   PARALLAX
   ============================================ */

.parallax-element {
  will-change: transform;
  transition: transform 0.1s linear;
}

/* ============================================
   ANIMATED ICON
   ============================================ */

.brain-loop {
  width: 80px;
  height: 80px;
  animation: float 6s ease-in-out infinite;
}

.brain-loop svg {
  width: 100%;
  height: 100%;
}

/* ============================================
   QUOTE BADGE / MANIFESTO
   ============================================ */

.manifesto-block {
  background: linear-gradient(135deg, var(--bg-card), var(--bg-tertiary));
  border-left: 3px solid var(--accent);
  padding: 56px 64px;
  margin: 40px 0;
  position: relative;
  overflow: hidden;
}

.manifesto-block::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  pointer-events: none;
}

.manifesto-block .eyebrow { margin-bottom: 16px; }

.manifesto-text {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 300;
  line-height: 1.4;
  color: var(--text-primary);
  font-style: italic;
  position: relative;
  z-index: 1;
}

/* ============================================
   APPROACH / VALUE PROP CARDS
   ============================================ */

.value-card {
  padding: 48px 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  position: relative;
  transition: all var(--transition-base);
  overflow: hidden;
}

.value-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.value-card:hover::after { width: 100%; }

.value-card:hover {
  background: var(--bg-tertiary);
  border-color: var(--border-strong);
  transform: translateY(-4px);
}

.value-icon {
  width: 56px;
  height: 56px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 300;
  font-style: italic;
}

/* ============================================
   UTILITIES
   ============================================ */

.text-center { text-align: center; }
.mt-1 { margin-top: 16px; }
.mt-2 { margin-top: 32px; }
.mt-3 { margin-top: 48px; }
.mt-4 { margin-top: 64px; }
.mb-1 { margin-bottom: 16px; }
.mb-2 { margin-bottom: 32px; }
.mb-3 { margin-bottom: 48px; }
.mb-4 { margin-bottom: 64px; }

.bg-secondary { background: var(--bg-secondary); }
.bg-tertiary { background: var(--bg-tertiary); }

.divider-line {
  width: 100%;
  height: 1px;
  background: var(--border-subtle);
  margin: 80px 0;
}

/* Selección de texto */
::selection {
  background: var(--accent);
  color: var(--bg-primary);
}

/* ============================================
   WHATSAPP FLOATING BUTTON
   ============================================ */

.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 64px;
  height: 64px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 8px 24px rgba(37, 211, 102, 0.4),
    0 0 0 0 rgba(37, 211, 102, 0.7);
  z-index: 999;
  transition: all var(--transition-base);
  animation: whatsappPulse 2s infinite;
}

.whatsapp-float:hover {
  background: #20BA5A;
  transform: scale(1.1);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: white;
}

@keyframes whatsappPulse {
  0% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.5); }
  70% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4), 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0); }
}

.whatsapp-tooltip {
  position: absolute;
  right: calc(100% + 16px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--bg-primary);
  color: var(--text-primary);
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 13px;
  white-space: nowrap;
  border: 1px solid var(--border-strong);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

.whatsapp-tooltip::after {
  content: '';
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: var(--border-strong);
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
}

@media (max-width: 600px) {
  .whatsapp-float {
    width: 56px;
    height: 56px;
    bottom: 20px;
    right: 20px;
  }
  .whatsapp-float svg { width: 28px; height: 28px; }
  .whatsapp-tooltip { display: none; }
}

/* WhatsApp button inline (en formularios y CTAs) */
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  background: #25D366;
  color: white !important;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 100px;
  transition: all var(--transition-base);
  border: none;
}

.btn-whatsapp:hover {
  background: #20BA5A;
  color: white !important;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp svg {
  width: 20px;
  height: 20px;
  fill: white;
}

/* ============================================
   HERO VIDEO FRAME (cerebro sináptico)
   ============================================ */

.hero-video-frame {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 520px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: #000;
}

.hero-video-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-video-frame .hero-video-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 50%, transparent 45%, rgba(10, 10, 10, 0.45) 100%);
  z-index: 2;
  pointer-events: none;
}

@media (max-width: 800px) {
  .hero-video-frame { min-height: 380px; }
}

/* Video del hero: cuadrado (1:1) porque el video original es 800×800 */
.hero-image-frame .hero-video-frame {
  aspect-ratio: 1/1;
}

/* ============================================
   PHOTO SYSTEM (real images con fallback automático)
   ============================================ */

.photo-frame {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-card));
  border: 1px dashed var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-frame .photo-real {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
  border-radius: 4px;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  font-size: 0;
}

.photo-frame:hover .photo-real {
  transform: scale(1.04);
}

.photo-frame .photo-zone-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 24px;
  pointer-events: none;
}

.photo-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(10, 10, 10, 0.5));
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 3;
}

.photo-frame:hover::after { opacity: 1; }

/* Cuando hay foto real, le quitamos el dashed border y bg gradient */
.photo-frame.photo-loaded {
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
}

.photo-frame.photo-loaded .photo-zone-content {
  display: none;
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: var(--accent-soft); }
