/* ═══════════════════════════════════════════════════════════
   EMBRAGUES CORTES — PREMIUM REDESIGN
   Design System: Dark Industrial + Motorsport Premium
   ═══════════════════════════════════════════════════════════ */

/* ─── DESIGN TOKENS ─── */
:root {
  /* Colors */
  --bg-base:        #080a0c;
  --bg-surface:     #0e1115;
  --bg-elevated:    #141820;
  --bg-card:        #111419;
  --bg-card-hover:  #181d24;

  --accent-primary:   #8B5CF6;
  --accent-secondary: #A78BFA;
  --accent-glow:      rgba(139, 92, 246, 0.35);
  --accent-amber:     #A855F7;
  --accent-amber-dim: rgba(168, 85, 247, 0.15);

  --text-primary:   #F0F2F5;
  --text-secondary: #A0AAB8;
  --text-muted:     #60697a;
  --text-accent:    #8B5CF6;

  --border-subtle:  rgba(255,255,255,0.06);
  --border-medium:  rgba(255,255,255,0.10);
  --border-accent:  rgba(139, 92, 246, 0.40);

  /* Typography */
  --font-display:   'Barlow Condensed', 'Rajdhani', sans-serif;
  --font-ui:        'Rajdhani', sans-serif;
  --font-body:      'Inter', sans-serif;

  /* Spacing */
  --section-gap: clamp(80px, 10vw, 140px);

  /* Easing */
  --ease-smooth: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in:     cubic-bezier(0.55, 0, 1, 0.45);
  --ease-out:    cubic-bezier(0, 0, 0.2, 1);

  /* Shadows */
  --shadow-card:  0 4px 24px rgba(0,0,0,0.4), 0 1px 4px rgba(0,0,0,0.3);
  --shadow-hover: 0 12px 48px rgba(0,0,0,0.6), 0 4px 16px rgba(0,0,0,0.4);
  --shadow-glow:  0 0 40px var(--accent-glow), 0 0 80px rgba(139, 92, 246, 0.15);

  /* Border radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* Header */
  --header-h: 72px;
  --header-h-scrolled: 58px;
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { background: none; border: none; cursor: pointer; font-family: inherit; }

.container {
  width: 100%;
  max-width: 1220px;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 60px);
}

/* ─── TYPOGRAPHY ─── */
.section-tag {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-primary);
  padding: 6px 16px;
  border: 1px solid var(--border-accent);
  border-radius: 100px;
  margin-bottom: 20px;
  background: rgba(139, 92, 246, 0.08);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.section-title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-amber));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 560px;
}

.section-header {
  margin-bottom: clamp(40px, 6vw, 72px);
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-ui);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition:
    transform 0.2s var(--ease-smooth),
    box-shadow 0.3s var(--ease-smooth),
    background 0.2s,
    border-color 0.2s,
    color 0.2s;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.08);
  opacity: 0;
  transition: opacity 0.2s;
}

.btn:hover::before { opacity: 1; }
.btn:active { transform: scale(0.97) !important; }

.btn-lg { padding: 14px 28px; font-size: 0.9rem; }
.btn-xl { padding: 18px 36px; font-size: 1rem; }

/* Primary */
.btn-primary {
  background: linear-gradient(135deg, var(--accent-primary), #7C3AED);
  color: #fff;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(139, 92, 246, 0.6);
}

/* Outline */
.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border-medium);
}
.btn-outline:hover {
  border-color: var(--accent-primary);
  color: var(--accent-secondary);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.2);
}

/* Ghost */
.btn-ghost {
  background: rgba(255,255,255,0.05);
  color: var(--text-secondary);
  border: 1.5px solid var(--border-subtle);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.10);
  color: var(--text-primary);
  transform: translateY(-2px);
}

/* WhatsApp */
.btn-whatsapp {
  background: linear-gradient(135deg, #128C7E, #075E54);
  box-shadow: 0 4px 20px rgba(18, 140, 126, 0.4);
}
.btn-whatsapp:hover {
  box-shadow: 0 8px 32px rgba(18, 140, 126, 0.6);
  transform: translateY(-2px);
}

.btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Header CTA */
.btn-cta-header {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #128C7E, #075E54);
  color: #fff;
  border-radius: var(--radius-sm);
  transition: transform 0.2s var(--ease-smooth), box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(18, 140, 126, 0.35);
}
.btn-cta-header:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(18, 140, 126, 0.55);
}

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(60px); filter: blur(8px); }
  100% { opacity: 1; transform: translateY(0); filter: blur(0px); }
}

@keyframes fadeLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0);     }
}

@keyframes fadeRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0);    }
}

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

@keyframes scrollAnim {
  0%   { transform: translateY(0); opacity: 1; }
  60%  { transform: translateY(8px); opacity: 0.4; }
  100% { transform: translateY(0); opacity: 1; }
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1);    }
  50%       { opacity: 0.5; transform: scale(1.4); }
}

@keyframes wa-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(18, 140, 126, 0.6); }
  70%  { box-shadow: 0 0 0 14px rgba(18, 140, 126, 0); }
  100% { box-shadow: 0 0 0 0 rgba(18, 140, 126, 0);   }
}

@keyframes borderPan {
  0%   { background-position: 0% 50%;   }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%;   }
}

.reveal-up    { opacity: 0; }
.reveal-left  { opacity: 0; }
.reveal-right { opacity: 0; }

.reveal-up.in-view {
  animation: fadeUp 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.reveal-left.in-view {
  animation: fadeLeft 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.reveal-right.in-view {
  animation: fadeRight 0.75s var(--ease-smooth) forwards;
}

[data-delay="1"].in-view { animation-delay: 0.10s; }
[data-delay="2"].in-view { animation-delay: 0.20s; }
[data-delay="3"].in-view { animation-delay: 0.30s; }
[data-delay="4"].in-view { animation-delay: 0.40s; }
[data-delay="5"].in-view { animation-delay: 0.50s; }

/* ─── HEADER ─── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: transparent;
  transition:
    background 0.35s var(--ease-smooth),
    backdrop-filter 0.35s,
    box-shadow 0.35s,
    height 0.3s var(--ease-smooth);
}

.site-header.scrolled {
  height: var(--header-h-scrolled);
  background: rgba(8, 10, 12, 0.90);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 1px 0 var(--border-subtle), 0 8px 32px rgba(0,0,0,0.5);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 24px;
}

.header-logo img {
  height: clamp(32px, 4vw, 46px);
  width: auto;
  object-fit: contain;
  transition: opacity 0.2s;
}
.header-logo:hover img { opacity: 0.85; }

.header-nav { display: flex; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  position: relative;
  transition: color 0.2s, background 0.2s;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 16px;
  height: 2px;
  background: var(--accent-primary);
  border-radius: 2px;
  transition: transform 0.25s var(--ease-smooth);
}
.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}
.nav-link:hover::after,
.nav-link.active::after {
  transform: translateX(-50%) scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-socials {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: 8px;
  padding-right: 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.header-social-link {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.header-social-link:hover {
  color: #fff;
  background: rgba(139, 92, 246, 0.2);
  border-color: rgba(139, 92, 246, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}
.hamburger:hover { background: rgba(255,255,255,0.06); }
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-smooth), opacity 0.2s, width 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── HERO ─── */
.hero {
  position: relative;
  width: 100%;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

@keyframes deepRevealBg {
  0% { transform: scale(1.15); filter: blur(12px) brightness(0.4); }
  100% { transform: scale(1); filter: blur(0px) brightness(1); }
}

.hero-bg-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  animation: deepRevealBg 2.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: scale(1.05);
  transition: transform 20s linear;
  filter: brightness(0.75) contrast(1.1);
}

.hero-bg-wrap:hover .hero-bg-img {
  transform: scale(1.08);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 60% 50%, transparent 15%, rgba(8,10,12,0.65) 60%, rgba(8,10,12,0.92) 100%),
    linear-gradient(105deg, rgba(8,10,12,0.88) 0%, rgba(8,10,12,0.35) 45%, rgba(8,10,12,0.20) 70%),
    linear-gradient(0deg, rgba(8,10,12,0.75) 0%, transparent 45%);
}

.hero-gradient-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to top, var(--bg-base), transparent);
  z-index: 1;
}

/* Tech canvas overlay */
.hero-tech-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

#tech-canvas {
  width: 100%;
  height: 100%;
  opacity: 0.25;
}

.hero-content {
  position: relative;
  z-index: 3;
  padding-top: calc(var(--header-h) + 20px);
  padding-bottom: clamp(60px, 8vw, 100px);
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 760px;
}

/* Hero badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-secondary);
  background: rgba(139, 92, 246, 0.10);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 100px;
  padding: 7px 16px;
  backdrop-filter: blur(8px);
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-primary);
  animation: pulse-dot 2s ease-in-out infinite;
  flex-shrink: 0;
}

/* Hero title */
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.01em;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-title-line {
  color: var(--text-primary);
}

.hero-title-accent {
  background: linear-gradient(135deg, #8B5CF6 0%, #A855F7 40%, #C084FC 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 32px rgba(168, 85, 247, 0.55)) drop-shadow(0 0 8px rgba(192, 132, 252, 0.3));
}

/* Hero subtitle */
.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 520px;
}

/* Discipline tags */
.hero-disciplines {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.disc-tag {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 5px 12px;
  background: rgba(255,255,255,0.02);
  transition: color 0.2s, border-color 0.2s;
}
.disc-tag:hover {
  color: var(--text-secondary);
  border-color: var(--border-medium);
}

/* Hero CTA group */
.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

/* Scroll indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-family: var(--font-ui);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.scroll-mouse {
  width: 22px;
  height: 34px;
  border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.scroll-wheel {
  width: 3px;
  height: 8px;
  background: var(--accent-primary);
  border-radius: 2px;
  animation: scrollAnim 1.8s ease-in-out infinite;
}

/* ─── STATS ─── */
.stats-section {
  position: relative;
  background: transparent;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: clamp(40px, 5vw, 64px) 0;
  overflow: hidden;
}

.stats-video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.stats-video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.75; 
}

.stats-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(8,10,12,0.7) 0%, rgba(20,10,35,0.5) 100%);
  z-index: 1;
}

.stats-section .container {
  position: relative;
  z-index: 2;
}

.stats-section::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 80%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
  opacity: 0.5;
  z-index: 3;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 1px;
}

.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 48px 24px;
  text-align: center;
  border-right: 1px solid var(--border-subtle);
  position: relative;
  transition: background 0.3s;
}
.stat-card:last-child { border-right: none; }
.stat-card:hover { background: rgba(255,255,255,0.02); }

.stat-icon { color: var(--accent-primary); }

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-primary);
}

.stat-card--main .stat-number {
  color: var(--accent-primary);
  text-shadow: 0 0 24px rgba(139, 92, 246, 0.4);
}

.stat-label {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.stat-feature-text {
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
}

@media (max-width: 992px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-card--main { grid-column: 1 / -1; border-right: none; border-bottom: 1px solid var(--border-subtle); }
  .stat-card:nth-child(3) { border-right: none; }
}
@media (max-width: 576px) {
  .stats-grid { grid-template-columns: 1fr; }
  .stat-card { border-right: none; border-bottom: 1px solid var(--border-subtle); }
  .stat-card:last-child { border-bottom: none; }
}

/* ─── SERVICES ─── */
.services-section {
  padding: var(--section-gap) 0;
  background: var(--bg-base);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
}

.service-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
  cursor: default;
  transition:
    transform 0.35s var(--ease-smooth),
    box-shadow 0.35s var(--ease-smooth),
    border-color 0.35s,
    background 0.35s;
}

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

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover), 0 0 40px rgba(139, 92, 246, 0.12);
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
}

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

.service-card-glow {
  position: absolute;
  bottom: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.service-card:hover .service-card-glow { opacity: 1; }

.service-card-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.20);
  border-radius: var(--radius-md);
  color: var(--accent-primary);
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
}
.service-card:hover .service-card-icon {
  background: rgba(139, 92, 246, 0.16);
  border-color: rgba(139, 92, 246, 0.40);
  transform: scale(1.08);
}

.service-card-content { flex: 1; }

.service-card-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.service-card-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 16px;
}

.service-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.service-card-tags span {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-primary);
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.18);
  border-radius: 4px;
  padding: 3px 10px;
}

.service-card-arrow {
  color: var(--text-muted);
  align-self: flex-end;
  transform: translateX(0);
  transition: transform 0.3s var(--ease-smooth), color 0.3s;
}
.service-card:hover .service-card-arrow {
  transform: translateX(6px);
  color: var(--accent-primary);
}

/* ─── SPECIALTIES ─── */
.specialties-section {
  position: relative;
  padding: var(--section-gap) 0;
  background: var(--bg-surface);
  overflow: hidden;
}

.specialties-bg-text {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: clamp(100px, 20vw, 220px);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.04);
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
}

.specialties-editorial {
  display: flex;
  flex-direction: column;
  gap: clamp(60px, 8vw, 100px);
}

.specialty-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.specialty-feature--reverse {
  direction: rtl;
}
.specialty-feature--reverse > * {
  direction: ltr;
}

.specialty-feature-img {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/3;
}

.specialty-feature-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-smooth);
}
.specialty-feature:hover .specialty-feature-img img {
  transform: scale(1.04);
}

.specialty-feature-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(8,10,12,0.3), transparent);
  border-radius: var(--radius-xl);
}

.specialty-feature-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(8, 10, 12, 0.75);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  backdrop-filter: blur(12px);
}

.badge-num {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent-primary);
}

.badge-text {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.specialty-feature-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.specialty-feature-content h3 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.specialty-feature-content p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.specialty-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.specialty-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.specialty-list li svg {
  color: var(--accent-primary);
  flex-shrink: 0;
}

/* ─── WHY US ─── */
.whyus-section {
  position: relative;
  padding: var(--section-gap) 0;
  overflow: hidden;
}

.whyus-bg-img {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.whyus-bg-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.whyus-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(8,10,12,0.97) 0%,
    rgba(8,10,12,0.85) 50%,
    rgba(8,10,12,0.75) 100%
  );
}

.whyus-content {
  position: relative;
  z-index: 1;
}

.whyus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.whyus-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition:
    background 0.3s,
    border-color 0.3s,
    transform 0.3s var(--ease-smooth);
  backdrop-filter: blur(8px);
}

.whyus-card:hover {
  background: rgba(139, 92, 246, 0.06);
  border-color: rgba(139, 92, 246, 0.25);
  transform: translateY(-4px);
}

.whyus-card-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(139, 92, 246, 0.10);
  border-radius: var(--radius-sm);
  color: var(--accent-primary);
}

.whyus-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.whyus-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ─── CTA SECTION ─── */
.cta-section {
  position: relative;
  padding: var(--section-gap) 0;
  background: var(--bg-base);
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cta-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.12;
}
.cta-glow--left {
  top: -200px;
  left: -200px;
  background: var(--accent-primary);
}
.cta-glow--right {
  bottom: -200px;
  right: -200px;
  background: var(--accent-amber);
}

.cta-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: clamp(40px, 5vw, 64px);
  overflow: hidden;
}

.cta-inner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--accent-primary) 30%,
    var(--accent-amber) 70%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: borderPan 4s linear infinite;
}

.cta-content { display: flex; flex-direction: column; gap: 20px; }

.cta-content h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-primary);
}

.cta-content h2 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-amber));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta-content p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 480px;
}

.cta-features {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.cta-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.cta-feature svg { color: var(--accent-primary); flex-shrink: 0; }

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
  white-space: nowrap;
}

/* ─── REVIEWS ─── */
.reviews-section {
  padding: var(--section-gap) 0;
  background: var(--bg-surface);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition:
    transform 0.3s var(--ease-smooth),
    box-shadow 0.3s,
    border-color 0.3s;
}
.review-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: var(--border-medium);
}

.review-stars {
  display: flex;
  gap: 4px;
  color: var(--accent-amber);
}

.review-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
  font-style: normal;
  flex: 1;
}

.review-text::before { content: '"'; }
.review-text::after  { content: '"'; }

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}

.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-primary), #7C3AED);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.review-name {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
}

.review-source {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ─── CONTACT ─── */
.contact-section {
  padding: var(--section-gap) 0;
  background: var(--bg-base);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-block {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: border-color 0.3s;
}
.contact-block:hover { border-color: var(--border-medium); }

.contact-block-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(139, 92, 246, 0.10);
  border-radius: var(--radius-sm);
  color: var(--accent-primary);
  flex-shrink: 0;
}

.contact-block h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.contact-block p {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.contact-link {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent-primary);
  transition: color 0.2s;
}
.contact-link:hover { color: var(--accent-secondary); }

.social-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.social-link:hover { color: var(--accent-secondary); }

/* Contact CTA card */
.contact-cta-card {
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: clamp(32px, 4vw, 48px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cta-card-glow {
  position: absolute;
  bottom: -60px;
  right: -60px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(18, 140, 126, 0.25), transparent 70%);
  pointer-events: none;
}

.cta-card-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cta-card-content h3 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
}

.cta-card-content p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ─── FOOTER ─── */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-top: 60px;
  padding-bottom: 60px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-logo img {
  height: 40px;
  width: auto;
  object-fit: contain;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.footer-logo:hover img { opacity: 1; }

.footer-tagline {
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-style: italic;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.footer-social-link {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.footer-social-link:hover {
  background: rgba(139, 92, 246, 0.12);
  border-color: rgba(139, 92, 246, 0.30);
  color: var(--accent-secondary);
}

.footer-nav h4 {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav a {
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--text-primary); }

.footer-contact h4 {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 600;
  color: #25D366;
  margin-bottom: 8px;
  transition: color 0.2s;
}
.footer-cta-link:hover { color: #2ecc71; }

.footer-contact p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding: 20px 0;
}

.footer-bottom p {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
}

.footer-bottom span { color: var(--accent-primary); }

/* ─── WHATSAPP FLOAT ─── */
.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25D366;
  border-radius: 50%;
  color: #fff;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  animation: wa-pulse 2.5s infinite;
  transition: transform 0.2s var(--ease-smooth), box-shadow 0.2s;
}
.wa-float:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.6);
  animation-play-state: paused;
}

.wa-float-tooltip {
  position: absolute;
  right: calc(100% + 14px);
  background: rgba(8, 10, 12, 0.95);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.82rem;
  white-space: nowrap;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-medium);
  pointer-events: none;
  opacity: 0;
  transform: translateX(8px);
  transition: opacity 0.2s, transform 0.2s;
}

.wa-float:hover .wa-float-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* ─── MOBILE MENU OVERLAY ─── */
@media (max-width: 900px) {
  .header-nav {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(8, 10, 12, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease-smooth);
  }
  .header-nav.open {
    opacity: 1;
    pointer-events: all;
  }
  .nav-list {
    flex-direction: column;
    gap: 8px;
    align-items: center;
  }
  .nav-link {
    font-size: 1.4rem;
    padding: 14px 32px;
  }
  .hamburger { display: flex; z-index: 999; }
  .btn-cta-header { display: none; }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
  .cta-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .cta-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

@media (max-width: 768px) {
  .specialty-feature,
  .specialty-feature--reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }
  .contact-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-card { border-right: none; border-bottom: 1px solid var(--border-subtle); }
  .stat-card:nth-child(even) { border-right: none; }
  .stat-card:last-child { border-bottom: none; }
  .services-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .hero-title { font-size: clamp(2.4rem, 10vw, 4rem); }
  .hero-cta-group { flex-direction: column; align-items: flex-start; }
  .hero-cta-group .btn { width: 100%; justify-content: center; }
}

@media (max-width: 520px) {
  .footer-inner { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .cta-actions { flex-direction: column; }
  .cta-actions .btn { justify-content: center; }
  .wa-float { bottom: 20px; right: 20px; width: 52px; height: 52px; }
  .hero-disciplines { display: none; }
  .reviews-grid { grid-template-columns: 1fr; }
  .whyus-grid { grid-template-columns: 1fr; }
}

/* ─── FOCUS ACCESSIBLE ─── */
:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ─── SELECTION ─── */
::selection {
  background: rgba(139, 92, 246, 0.3);
  color: var(--text-primary);
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: rgba(139, 92, 246, 0.4); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(139, 92, 246, 0.7); }

/* ─── REDUCED MOTION ─── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal-up, .reveal-left, .reveal-right {
    opacity: 1 !important;
  }
}


/* Ocultar cualquier subtítulo/caption que el browser renderice automáticamente en cualquier video */
video::cue                 { display: none !important; color: transparent !important; }
video::-webkit-media-text-track-display { display: none !important; }
video::-webkit-media-text-track-container { display: none !important; }

.intro-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  /* Viñeta premium sobre el video \u2014 no tapa el contenido central */
  background: radial-gradient(
    ellipse at center,
    transparent 40%,
    rgba(0, 0, 0, 0.6) 100%
  );
  pointer-events: none;
}

@media (max-width: 768px) {
  .intro-video { object-position: center center; }
}

/* ═══════════════════════════════════════════
   VIDEO INTRO BUTTON (hero)
   ═══════════════════════════════════════════ */
.btn-video-play {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  background: rgba(255,255,255,0.05);
  border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(8px);
  cursor: pointer;
  transition:
    background 0.25s var(--ease-smooth),
    border-color 0.25s,
    color 0.25s,
    transform 0.25s var(--ease-smooth),
    box-shadow 0.25s;
  position: relative;
}

.btn-video-play:hover {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.25);
  color: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.3);
}

.play-icon-wrap {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-primary);
  border-radius: 50%;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.2s;
}

.btn-video-play:hover .play-icon-wrap {
  background: var(--accent-secondary);
  transform: scale(1.08);
}

.ig-badge-small {
  display: flex;
  align-items: center;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════
   VIDEO MODAL
   ═══════════════════════════════════════════ */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.video-modal[hidden] {
  display: none;
}

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 5, 7, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  animation: modalFadeIn 0.3s var(--ease-out);
}

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

.video-modal-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-height: 90svh;
  animation: modalSlideUp 0.35s var(--ease-smooth);
}

@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)  scale(1);     }
}

.video-modal-close {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 50%;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s;
  z-index: 2;
}

.video-modal-close:hover {
  background: rgba(255,255,255,0.16);
  color: var(--text-primary);
  transform: scale(1.1);
}

.video-modal-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}

.video-modal-label {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ig-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 100px;
  padding: 5px 12px;
}

.video-modal-title {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Instagram embed wrapper — modal */
.ig-embed-wrap {
  display: flex;
  justify-content: center;
  max-height: 76svh;
  overflow-y: auto;
  overflow-x: hidden;
  border-radius: 12px;
  /* scrollbar delgado */
  scrollbar-width: thin;
  scrollbar-color: rgba(139,92,246,0.3) transparent;
}

.ig-embed-wrap::-webkit-scrollbar { width: 4px; }
.ig-embed-wrap::-webkit-scrollbar-track { background: transparent; }
.ig-embed-wrap::-webkit-scrollbar-thumb { background: rgba(139,92,246,0.4); border-radius: 4px; }

/* ═══════════════════════════════════════════
   INSTAGRAM EMBED — Specialty section
   ═══════════════════════════════════════════ */
.specialty-feature-img--video {
  /* Mantiene el mismo aspect-ratio y border-radius del contenedor original */
  aspect-ratio: unset !important;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: #fff;
  overflow: visible !important;
}

.specialty-feature-img--video::after {
  /* desactivar el overlay oscuro que cubría la imagen */
  display: none;
}

.ig-spec-embed {
  position: relative;
  width: 100%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}

.ig-spec-embed-inner {
  display: flex;
  justify-content: center;
  overflow-y: auto;
  overflow-x: hidden;
  max-height: 620px;
  scrollbar-width: thin;
  scrollbar-color: rgba(139,92,246,0.3) transparent;
}

.ig-spec-embed-inner::-webkit-scrollbar { width: 4px; }
.ig-spec-embed-inner::-webkit-scrollbar-track { background: transparent; }
.ig-spec-embed-inner::-webkit-scrollbar-thumb { background: rgba(139,92,246,0.3); border-radius: 4px; }

/* El badge de la sección con video necesita position desde el wrapper */
.specialty-feature-img--video .specialty-feature-badge {
  position: relative;
  bottom: unset;
  left: unset;
  margin-top: 12px;
  align-self: flex-start;
}

@media (max-width: 768px) {
  .ig-spec-embed-inner { max-height: 480px; }
  .video-modal-inner { width: 100%; }
  .ig-embed-wrap { max-height: 70svh; }
}


/* ═══════════════════════════════════════════
   FABRICACIÓN REAL
   ═══════════════════════════════════════════ */
.fabricacion-section {
  padding: clamp(60px, 10vw, 120px) 0;
  position: relative;
  background: linear-gradient(180deg, var(--bg-surface) 0%, rgba(20, 10, 35, 0.4) 100%);
  overflow: hidden;
  border-top: 1px solid rgba(139, 92, 246, 0.1);
  border-bottom: 1px solid rgba(139, 92, 246, 0.1);
}

.fabricacion-section::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 70% 50%, rgba(139, 92, 246, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.fabricacion-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
  text-align: center;
}

@media (min-width: 992px) {
  .fabricacion-grid {
    gap: 56px;
    max-width: 1000px;
    margin: 0 auto;
  }
}

.fabricacion-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.badge-accent {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 4px;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: var(--accent-primary);
  font-family: var(--font-header);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.fabricacion-content .section-title {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.fabricacion-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: #fff;
  font-weight: 500;
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

.barcatini-link {
  color: var(--accent-primary);
  text-decoration: none;
  transition: all 0.2s ease;
}

.barcatini-link:hover {
  color: var(--accent-secondary);
  text-shadow: 0 0 12px var(--accent-glow);
}

.fabricacion-desc {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.fabricacion-highlight {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  font-weight: 500;
  color: #fff;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.fabricacion-video-wrapper {
  position: relative;
  z-index: 2;
  border-radius: 12px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 40px rgba(139, 92, 246, 0.15);
}

.video-frame {
  position: relative;
  border-radius: 11px;
  overflow: hidden;
  background: #000;
}

.fabricacion-video {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.video-overlay-glow {
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 60px rgba(0,0,0,0.6);
  pointer-events: none;
}

.video-tech-lines .line {
  position: absolute;
  background: var(--accent-primary);
  opacity: 0.5;
  pointer-events: none;
}

.video-tech-lines .line-1 {
  top: 10%; left: 0; width: 20px; height: 1px;
}
.video-tech-lines .line-2 {
  bottom: 10%; right: 0; width: 20px; height: 1px;
}

