/* ========================================
   GenApp Tech — automatizaciones.css
   Página: Automatizaciones con IA
   ======================================== */

@font-face {
  font-family: 'Montserrat';
  src: url('assets/fonts/Montserrat-Regular.ttf') format('truetype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: url('assets/fonts/Montserrat-Bold.ttf') format('truetype');
  font-weight: 700; font-style: normal; font-display: swap;
}

/* ---- Variables (mismo sistema de diseño) ---- */
:root {
  --blue:       #2E2B57;
  --blue-light: #3E3B70;
  --red:        #E43D2C;
  --orange:     #F9AC19;
  --sky:        #24A3DD;
  --green-brand:#4FA535;

  --bg-base:    #080c14;
  --bg-surface: #0d1420;
  --bg-card:    #101828;

  --border:     rgba(255,255,255,0.07);

  --text-primary:   #f0f4ff;
  --text-secondary: #8fa3c8;
  --text-muted:     #4a5c7a;

  --radius-sm:  8px;
  --radius-md:  12px;
  --radius-lg:  18px;
  --radius-xl:  24px;

  --shadow-sm:   0 2px 6px rgba(46,43,87,0.10);
  --shadow-card: 0 8px 20px -4px rgba(46,43,87,0.18), 0 3px 6px -2px rgba(46,43,87,0.08);
  --shadow-lg:   0 20px 40px -8px rgba(46,43,87,0.25), 0 6px 12px -4px rgba(46,43,87,0.10);

  --font-sans:  'Montserrat', ui-sans-serif, system-ui, sans-serif;
  --font-head:  'Montserrat', ui-sans-serif, system-ui, sans-serif;

  --nav-h: 70px;
  --ease:     cubic-bezier(0.2, 0.7, 0.25, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition: 0.22s cubic-bezier(0.2, 0.7, 0.25, 1);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Scroll reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 50px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--red), #f04f3d);
  color: #fff;
  box-shadow: 0 4px 20px rgba(228,61,44,0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(228,61,44,0.5);
}

.btn-ghost {
  background: rgba(255,255,255,0.05);
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}

/* ---- Section tag ---- */
.section-tag {
  display: inline-block;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  background: rgba(228,61,44,0.1);
  border: 1px solid rgba(228,61,44,0.2);
  padding: 4px 14px;
  border-radius: 50px;
  margin-bottom: 16px;
}

/* ========================================
   NAVBAR
   ======================================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background var(--transition), box-shadow var(--transition);
}
.navbar.scrolled {
  background: rgba(8,12,20,0.92);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border);
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.nav-logo { display: flex; align-items: center; }
.logo-img { height: 44px; width: auto; object-fit: contain; transition: transform var(--transition); }
.nav-logo:hover .logo-img { transform: scale(1.04); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-link {
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 8px;
  transition: color var(--transition), background var(--transition);
}
.nav-link:hover, .nav-link--active {
  color: var(--text-primary);
  background: rgba(255,255,255,0.06);
}
.nav-link--active { color: var(--orange) !important; }

.nav-cta {
  background: var(--red);
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 50px;
}
.nav-cta:hover {
  background: #f04f3d;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ========================================
   HERO IA
   ======================================== */
.ai-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
}

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

.ai-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(36,163,221,0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36,163,221,0.1) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 75% 75% at 50% 45%, black 20%, transparent 100%);
}

.ai-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
}
.ai-orb--1 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(46,43,87,0.7), transparent 70%);
  top: -200px; left: -150px;
  opacity: 0.5;
}
.ai-orb--2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(36,163,221,0.5), transparent 70%);
  top: -100px; right: -100px;
  opacity: 0.3;
}
.ai-orb--3 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(249,172,25,0.4), transparent 70%);
  bottom: 0; left: 40%;
  opacity: 0.15;
}

.ai-particles { position: absolute; inset: 0; }

.ai-hero-container {
  position: relative;
  z-index: 1;
  padding-top: 80px;
  padding-bottom: 100px;
  max-width: 860px;
}

.ai-hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  font-size: 0.82rem;
  color: var(--text-muted);
  animation: fadeInDown 0.8s ease both;
}
.eyebrow-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(36,163,221,0.08);
  border: 1px solid rgba(36,163,221,0.2);
  color: #24A3DD;
  padding: 5px 14px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
}
.eyebrow-divider { opacity: 0.3; }
.eyebrow-page { font-weight: 500; }

.ai-hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  animation: fadeInUp 0.9s ease 0.1s both;
}

.title-gradient {
  color: #ffffff;
}

.ai-hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 620px;
  margin-bottom: 40px;
  line-height: 1.75;
  animation: fadeInUp 0.9s ease 0.2s both;
}

.ai-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 52px;
  animation: fadeInUp 0.9s ease 0.3s both;
}

/* Aviso WIP */
.ai-wip {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: rgba(249,172,25,0.06);
  border: 1px solid rgba(249,172,25,0.2);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  max-width: 560px;
  animation: fadeInUp 0.9s ease 0.4s both;
}

.wip-icon {
  width: 40px; height: 40px;
  background: rgba(249,172,25,0.12);
  border: 1px solid rgba(249,172,25,0.25);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--orange);
  flex-shrink: 0;
}

.wip-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.wip-text strong {
  font-size: 0.88rem;
  color: var(--orange);
  font-weight: 600;
}
.wip-text span {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.wip-text a {
  color: var(--sky);
  text-decoration: underline;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 36px; left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  animation: bounce 2s ease infinite;
}
.scroll-mouse {
  width: 24px; height: 38px;
  border: 2px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  display: flex; justify-content: center;
  padding-top: 6px;
}
.scroll-wheel {
  width: 3px; height: 8px;
  background: rgba(255,255,255,0.3);
  border-radius: 2px;
  animation: scrollWheel 2s ease infinite;
}

/* ========================================
   PRÓXIMAMENTE
   ======================================== */
.ai-coming {
  padding: 100px 0;
  background: var(--bg-surface);
}

.coming-header {
  text-align: center;
  margin-bottom: 60px;
}

.coming-title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.coming-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto;
}

/* ---- Carrusel "Lo que encontrarás" ---- */
.auto-carousel-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 48px;
  margin-bottom: 32px;
}

.auto-track-outer {
  overflow: hidden;
  flex: 1;
}

.auto-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.auto-track .coming-card {
  flex-shrink: 0;
  min-width: 0;
  margin-bottom: 0;
}

.auto-nav {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--transition), border-color var(--transition), color var(--transition), opacity var(--transition);
}

.auto-nav:hover:not(:disabled) {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.auto-nav:disabled {
  opacity: 0.3;
  cursor: default;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  padding: 0;
}

.carousel-dot.active {
  background: var(--sky);
  transform: scale(1.4);
}

@media (max-width: 768px) {
  .auto-nav { display: none; }
}

.coming-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}

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

.coming-card:hover {
  transform: translateY(-6px);
  border-color: rgba(36,163,221,0.3);
  box-shadow: 0 0 40px rgba(36,163,221,0.1), 0 16px 32px rgba(0,0,0,0.4);
}
.coming-card:hover::before { opacity: 1; }

.coming-card-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.coming-icon--blue   { background: rgba(36,163,221,0.1);  border: 1px solid rgba(36,163,221,0.25);  color: #24A3DD; }
.coming-icon--orange { background: rgba(249,172,25,0.1);  border: 1px solid rgba(249,172,25,0.25);  color: #F9AC19; }
.coming-icon--green  { background: rgba(91,166,60,0.1);   border: 1px solid rgba(91,166,60,0.25);   color: #5BA63C; }
.coming-icon--purple { background: rgba(139,92,246,0.1);  border: 1px solid rgba(139,92,246,0.25);  color: #8b5cf6; }
.coming-icon--red    { background: rgba(228,61,44,0.1);   border: 1px solid rgba(228,61,44,0.25);   color: #E43D2C; }
.coming-icon--sky    { background: rgba(56,189,248,0.1);  border: 1px solid rgba(56,189,248,0.25);  color: #38bdf8; }

.coming-card h3 {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
}

.coming-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
  flex: 1;
}

.coming-status {
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange);
  background: rgba(249,172,25,0.08);
  border: 1px solid rgba(249,172,25,0.2);
  padding: 3px 10px;
  border-radius: 50px;
  width: fit-content;
}

/* CTA final */
.coming-cta {
  background: var(--bg-card);
  border: 1px solid rgba(228,61,44,0.2);
  border-radius: var(--radius-xl);
  padding: 40px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  overflow: hidden;
}
.coming-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 0% 50%, rgba(228,61,44,0.06), transparent);
  pointer-events: none;
}
.coming-cta-content h3 {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.coming-cta-content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: var(--bg-base);
  border-top: 1px solid var(--border);
  padding: 24px 0;
}

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

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

.footer-social {
  display: flex;
  gap: 8px;
}

.social-link {
  width: 34px; height: 34px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition);
}
.social-link:hover {
  background: rgba(46,43,87,0.4);
  border-color: var(--blue-light);
  color: var(--text-primary);
  transform: translateY(-2px);
}
.social-link--wa:hover {
  background: rgba(37,211,102,0.12);
  border-color: rgba(37,211,102,0.35);
  color: #25D366;
}
.social-link--yt:hover {
  background: rgba(255,0,0,0.12);
  border-color: rgba(255,0,0,0.35);
  color: #ff0000;
}

/* ========================================
   BACK TO TOP
   ======================================== */
.back-to-top {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 900;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--red);
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(228,61,44,0.4);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--transition), transform var(--transition);
  pointer-events: none;
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(228,61,44,0.5);
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}
@keyframes scrollWheel {
  0%   { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(10px); opacity: 0; }
}
@keyframes floatParticle {
  0%, 100% { transform: translateY(0) translateX(0); opacity: 0.3; }
  33%       { transform: translateY(-28px) translateX(14px); opacity: 0.7; }
  66%       { transform: translateY(-14px) translateX(-18px); opacity: 0.5; }
}

/* ========================================
   DEMOS EN TABLA (2 celdas lado a lado)
   ======================================== */
.demos-grid-section {
  padding: 72px 0 80px;
  background: var(--bg-surface);
}

.demos-header {
  text-align: center;
  margin-bottom: 48px;
}

.demos-title {
  font-family: var(--font-head);
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.text-accent-sky { color: #24A3DD; }

.demos-subtitle {
  font-size: 0.97rem;
  color: var(--text-secondary);
}

/* Grid tabla 2 celdas */
.demos-table {
  display: grid;
  grid-template-columns: 1fr 4px 1fr;
  gap: 0 32px;
  align-items: start;
}

.demos-divider {
  width: 1px;
  background: var(--border);
  align-self: stretch;
  margin: 0 auto;
}

/* Cada celda */
.demo-cell {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ---- Teléfono (Short vertical) ---- */
.demo-cell-phone {
  display: flex;
  justify-content: center;
}

.demo-phone-shell {
  width: 200px;
  background: #0a0f1c;
  border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.6), 0 0 30px rgba(36,163,221,0.1);
  display: flex;
  flex-direction: column;
}

.demo-phone-notch {
  display: flex;
  justify-content: center;
  padding: 10px 0 6px;
  background: #0a0f1c;
}
.demo-phone-camera {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #1a2535;
  border: 1px solid rgba(255,255,255,0.08);
}

.demo-phone-screen {
  position: relative;
  width: 100%;
  padding-bottom: 177.78%; /* 9:16 */
  height: 0;
  background: #000;
  overflow: hidden;
}
.demo-phone-screen iframe,
.demo-phone-screen .yt-thumb-link {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: block;
}

.demo-phone-bar {
  height: 22px;
  background: #0a0f1c;
  display: flex;
  align-items: center;
  justify-content: center;
}
.demo-phone-bar::after {
  content: '';
  width: 60px; height: 4px;
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
}

/* ---- Video 16:9 (Dashboard) ---- */
.demo-cell-video {
  background: var(--bg-card);
  border: 1px solid rgba(249,172,25,0.2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 0 40px rgba(249,172,25,0.06), 0 12px 32px rgba(0,0,0,0.4);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.demo-cell-video:hover {
  border-color: rgba(249,172,25,0.4);
  box-shadow: 0 0 60px rgba(249,172,25,0.12), 0 16px 36px rgba(0,0,0,0.4);
}

.demo-video-topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
}
.topbar-dots { display: flex; gap: 5px; }
.topbar-dot  { width: 10px; height: 10px; border-radius: 50%; }
.dot--red    { background: #E43D2C; }
.dot--orange { background: #F9AC19; }
.dot--green  { background: #5BA63C; }
.topbar-title {
  flex: 1;
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--text-muted);
  text-align: center;
}
.topbar-live {
  display: flex; align-items: center; gap: 5px;
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: #22c55e;
}

.demo-iframe-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}
.demo-iframe-wrap iframe,
.demo-iframe-wrap .yt-thumb-link {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: block;
}

/* ---- Info debajo de cada video ---- */
.demo-cell-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 4px;
}

.demo-cell-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 3px 12px;
  border-radius: 50px;
  width: fit-content;
}
.demo-badge--wa {
  background: rgba(37,211,102,0.1);
  border: 1px solid rgba(37,211,102,0.25);
  color: #25D366;
}
.demo-badge--kpi {
  background: rgba(249,172,25,0.1);
  border: 1px solid rgba(249,172,25,0.25);
  color: #F9AC19;
}

.demo-cell-title {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

.demo-cell-desc {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ---- Miniatura YouTube clicable ---- */
.yt-thumb-link {
  display: block;
  position: absolute;
  inset: 0;
  overflow: hidden;
  cursor: pointer;
}

.yt-thumb-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease, filter 0.4s ease;
  filter: brightness(0.85);
}

.yt-thumb-link:hover img {
  transform: scale(1.04);
  filter: brightness(0.7);
}

.yt-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, opacity 0.3s ease;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.6));
}

.yt-thumb-link:hover .yt-play-btn {
  transform: translate(-50%, -50%) scale(1.15);
}

.yt-thumb-label {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  background: rgba(0,0,0,0.55);
  padding: 3px 10px;
  border-radius: 50px;
  white-space: nowrap;
  letter-spacing: 0.04em;
}

/* CTA centrado */
.demos-cta {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
  .coming-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --nav-h: 60px; }

  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: rgba(8,12,20,0.97);
    backdrop-filter: blur(16px);
    padding: 20px 24px 32px;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-link { width: 100%; padding: 12px 14px; }
  .nav-cta { margin-top: 8px; text-align: center; justify-content: center; }
  .nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

  .ai-hero-container { padding-top: 60px; }
  .ai-hero-actions { flex-direction: column; }
  .ai-hero-actions .btn { width: 100%; justify-content: center; }

  .coming-grid { grid-template-columns: 1fr; }
  .demos-table { grid-template-columns: 1fr; }
  .demos-divider { display: none; }
  .demo-phone-shell { width: 180px; }
  .coming-cta { flex-direction: column; align-items: flex-start; padding: 28px 24px; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .ai-hero-title { font-size: 2.4rem; }
  .ai-wip { flex-direction: column; }
}
