/* ============================================
   TEIPING STREAM — Style Sheet
   Palette: Navy Blue + White (clean, financial)
   ============================================ */

/* ---- DESIGN TOKENS ---- */
:root,
[data-theme="light"] {
  /* Type Scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Navy/White Palette — financial, clean */
  --color-bg: #ffffff;
  --color-surface: #f8f9fc;
  --color-surface-2: #eef1f8;
  --color-surface-offset: #e4e9f2;
  --color-border: #d0d8e8;
  --color-divider: #dde3ef;

  --color-text: #0d1b3e;
  --color-text-muted: #4a5578;
  --color-text-faint: #8a95b0;
  --color-text-inverse: #ffffff;

  /* Primary — deep navy blue */
  --color-primary: #0f3580;
  --color-primary-hover: #0a2660;
  --color-primary-active: #071a43;
  --color-primary-light: #dde6f8;

  /* Accent — bright blue for CTAs */
  --color-accent: #1a56db;
  --color-accent-hover: #1447c0;
  --color-accent-active: #0f38a0;

  /* Data colors */
  --color-up: #1a7a4a;
  --color-up-bg: #e6f4ed;
  --color-down: #c0392b;
  --color-down-bg: #fcecea;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.625rem;
  --radius-lg: 1rem;
  --radius-xl: 1.25rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(13, 27, 62, 0.07), 0 1px 2px rgba(13, 27, 62, 0.04);
  --shadow-md: 0 4px 16px rgba(13, 27, 62, 0.09), 0 2px 6px rgba(13, 27, 62, 0.05);
  --shadow-lg: 0 12px 40px rgba(13, 27, 62, 0.12), 0 4px 12px rgba(13, 27, 62, 0.07);

  /* Content widths */
  --content-default: 960px;
  --content-wide: 1180px;

  /* Fonts */
  --font-display: 'Cabinet Grotesk', 'Helvetica Neue', sans-serif;
  --font-body: 'Satoshi', 'Inter', sans-serif;
}

/* DARK MODE */
[data-theme="dark"] {
  --color-bg: #080e20;
  --color-surface: #0d1530;
  --color-surface-2: #111c3a;
  --color-surface-offset: #0f1932;
  --color-border: #1e2d52;
  --color-divider: #182444;

  --color-text: #e4e9f6;
  --color-text-muted: #8a97be;
  --color-text-faint: #4a5578;
  --color-text-inverse: #080e20;

  --color-primary: #4a79d4;
  --color-primary-hover: #5e8de0;
  --color-primary-active: #7aa2e8;
  --color-primary-light: #1a2a50;

  --color-accent: #4a79d4;
  --color-accent-hover: #5e8de0;
  --color-accent-active: #7aa2e8;

  --color-up: #3dba72;
  --color-up-bg: #0d2a1c;
  --color-down: #f06560;
  --color-down-bg: #2a100e;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.45);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #080e20;
    --color-surface: #0d1530;
    --color-surface-2: #111c3a;
    --color-surface-offset: #0f1932;
    --color-border: #1e2d52;
    --color-divider: #182444;
    --color-text: #e4e9f6;
    --color-text-muted: #8a97be;
    --color-text-faint: #4a5578;
    --color-text-inverse: #080e20;
    --color-primary: #4a79d4;
    --color-primary-hover: #5e8de0;
    --color-primary-active: #7aa2e8;
    --color-primary-light: #1a2a50;
    --color-accent: #4a79d4;
    --color-accent-hover: #5e8de0;
    --color-accent-active: #7aa2e8;
    --color-up: #3dba72;
    --color-up-bg: #0d2a1c;
    --color-down: #f06560;
    --color-down-bg: #2a100e;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.25);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.35);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.45);
  }
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: var(--space-20);
}

body {
  min-height: 100dvh;
  line-height: 1.6;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  transition: background-color 0.3s ease, color 0.3s ease;
}

img, svg { display: block; max-width: 100%; height: auto; }
ul[role="list"], ol[role="list"] { list-style: none; }
input, button, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.15; }
p { text-wrap: pretty; max-width: 72ch; }
a { color: inherit; text-decoration: none; }

::selection {
  background: color-mix(in oklab, var(--color-accent) 25%, transparent);
  color: var(--color-text);
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

button { cursor: pointer; background: none; border: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border-width: 0;
}

/* ---- LAYOUT ---- */
.container {
  width: 100%;
  max-width: var(--content-default);
  margin-inline: auto;
  padding-inline: clamp(var(--space-4), 5vw, var(--space-10));
}

.section {
  padding-block: clamp(var(--space-12), 8vw, var(--space-24));
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-weight: 500;
  border-radius: var(--radius-md);
  transition: background var(--transition), color var(--transition),
    border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  border: 1.5px solid transparent;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--sm {
  font-size: var(--text-sm);
  padding: var(--space-2) var(--space-4);
}

.btn--lg {
  font-size: var(--text-base);
  padding: var(--space-3) var(--space-6);
}

.btn--primary {
  background: var(--color-accent);
  color: #ffffff;
  border-color: var(--color-accent);
}
.btn--primary:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  box-shadow: 0 4px 14px color-mix(in oklab, var(--color-accent) 35%, transparent);
}

/* LIVE button — red with pulsing dot */
.btn--live {
  background: #e02020;
  color: #ffffff;
  border-color: #e02020;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.btn--live:hover {
  background: #c41818;
  border-color: #c41818;
  box-shadow: 0 4px 16px rgba(224, 32, 32, 0.40);
}

.live__dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffffff;
  flex-shrink: 0;
  animation: live-pulse 1.6s ease-in-out infinite;
}

@keyframes live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.45; transform: scale(0.75); }
}

.btn--outline {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}
.btn--outline:hover {
  background: var(--color-surface);
  border-color: var(--color-text-muted);
}

/* ---- HEADER ---- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in oklab, var(--color-bg) 92%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-divider);
  transition: box-shadow var(--transition), background var(--transition);
}

.header--scrolled {
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-4);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.logo__img {
  height: 52px;
  width: auto;
  display: block;
  transition: transform var(--transition), filter var(--transition);
}
.logo:hover .logo__img { transform: scale(1.04); }

/* In dark mode, invert the black text of the logo to white */
[data-theme="dark"] .logo__img {
  filter: brightness(0) invert(1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .logo__img {
    filter: brightness(0) invert(1);
  }
}

/* Footer logo */
.footer__logo {
  height: 28px;
  width: auto;
  display: block;
  opacity: 0.85;
}
[data-theme="dark"] .footer__logo {
  filter: brightness(0) invert(1);
  opacity: 0.7;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .footer__logo {
    filter: brightness(0) invert(1);
    opacity: 0.7;
  }
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.nav__link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color var(--transition);
}
.nav__link:hover { color: var(--color-text); }

/* Header actions */
.header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  transition: background var(--transition), color var(--transition);
}
.theme-toggle:hover {
  background: var(--color-surface);
  color: var(--color-text);
}

/* Mobile nav hide */
@media (max-width: 600px) {
  .nav { display: none; }
}

/* ---- HERO ---- */
.hero {
  position: relative;
  padding-block: clamp(var(--space-16), 10vw, var(--space-24)) clamp(var(--space-12), 8vw, var(--space-20));
  overflow: hidden;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-6);
  max-width: 780px;
}

/* Badge */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-accent);
  background: var(--color-primary-light);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  animation: pulse 2s ease-in-out infinite;
}

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

/* Hero Heading */
.hero__heading {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--color-text);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hero__accent {
  font-style: normal;
  color: var(--color-accent);
}

/* Hero Sub */
.hero__sub {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 56ch;
  line-height: 1.65;
}

/* Hero CTA */
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* Ticker */
.ticker-wrap {
  width: 100%;
  max-width: var(--content-wide);
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding-block: var(--space-3);
  margin-top: var(--space-4);
  /* Fade mask on left and right edges for clean scroll effect */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
}

.ticker {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  width: max-content;
  animation: ticker-scroll 30s linear infinite;
  padding-inline: var(--space-4);
}

.ticker-wrap:hover .ticker {
  animation-play-state: paused;
}

@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker__item {
  font-size: var(--text-xs);
  font-weight: 400;
  color: var(--color-text-muted);
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.ticker__item strong {
  font-weight: 600;
  color: var(--color-text);
}

.ticker__item strong.up { color: var(--color-up); }
.ticker__item strong.down { color: var(--color-down); }

.ticker__sep {
  color: var(--color-border);
  font-size: var(--text-sm);
  flex-shrink: 0;
}

/* Hero background decoration */
.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero__bg-chart {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 220px;
}

/* ---- PLATFORMS SECTION ---- */
.section--platforms {
  background: var(--color-surface);
  border-block: 1px solid var(--color-divider);
}

.section__header {
  text-align: center;
  margin-bottom: var(--space-10);
}

.section__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-2);
}

.section__sub {
  font-size: var(--text-base);
  color: var(--color-text-muted);
}

.platforms__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-5);
}

.platform-card {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  padding: var(--space-6);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  text-decoration: none;
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}

.platform-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

.platform-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  flex-shrink: 0;
  transition: background var(--transition);
}

.platform-card--yt .platform-card__icon {
  background: #fff0f0;
  color: #ff0000;
}
[data-theme="dark"] .platform-card--yt .platform-card__icon {
  background: #2a1010;
  color: #ff5555;
}

.platform-card--ig .platform-card__icon {
  background: #f8f0ff;
  color: #c13584;
}
[data-theme="dark"] .platform-card--ig .platform-card__icon {
  background: #2a1030;
  color: #e066b3;
}

.platform-card__body { flex: 1; }

.platform-card__name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-1);
}

.platform-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.5;
  max-width: none;
}

.platform-card__arrow {
  color: var(--color-text-faint);
  transition: color var(--transition), transform var(--transition);
}
.platform-card:hover .platform-card__arrow {
  color: var(--color-accent);
  transform: translateX(3px);
}

/* ---- NEWSLETTER SECTION ---- */
.section--newsletter {
  background: var(--color-bg);
}

.newsletter__card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
  background: var(--color-primary);
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-8), 5vw, var(--space-12));
  position: relative;
  overflow: hidden;
}

/* Decorative gradient accent */
.newsletter__card::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.section__badge {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.65);
  margin-bottom: var(--space-3);
}

.newsletter__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-3);
}

.newsletter__desc {
  font-size: var(--text-base);
  color: rgba(255,255,255,0.72);
  line-height: 1.65;
  max-width: 42ch;
}

/* Form */
.form__group {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.form__input {
  flex: 1;
  min-width: 200px;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  border: 1.5px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.12);
  color: #ffffff;
  font-size: var(--text-sm);
  transition: border-color var(--transition), background var(--transition);
  outline: none;
}
.form__input::placeholder { color: rgba(255,255,255,0.5); }
.form__input:focus {
  border-color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.18);
}

.form__submit {
  background: #ffffff;
  color: var(--color-primary);
  border: 1.5px solid transparent;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 600;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
  cursor: pointer;
}
.form__submit:hover {
  background: #f0f4ff;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
  transform: translateY(-1px);
}
.form__submit:active { transform: translateY(0); }

.form__note {
  margin-top: var(--space-3);
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.5);
  max-width: none;
}

.form__feedback {
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  font-weight: 500;
  min-height: 1.4em;
}

.form__feedback.success { color: #a8f0c6; }
.form__feedback.error { color: #ffa8a8; }

@media (max-width: 700px) {
  .newsletter__card {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}

/* ---- FOOTER ---- */
.footer {
  border-top: 1px solid var(--color-divider);
  padding-block: var(--space-8);
  background: var(--color-surface);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.footer__name {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}

.footer__copy {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  max-width: none;
}

.footer__links {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.footer__links a {
  color: var(--color-text-faint);
  transition: color var(--transition);
  display: flex;
  align-items: center;
}
.footer__links a:hover { color: var(--color-accent); }

/* ---- ANIMATIONS (scroll reveal) ---- */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   VIDEOS DESTACADOS + CARRUSEL
   ============================================ */

.section--videos {
  background: var(--color-bg);
}

/* Header con tabs */
.videos__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-5);
  margin-bottom: var(--space-8);
}

.videos__header-left .section__title {
  margin-bottom: var(--space-1);
}

/* Tab pills */
.videos__tabs {
  display: flex;
  gap: var(--space-2);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: var(--space-1);
  border-radius: var(--radius-full);
}

.videos__tab {
  font-size: var(--text-sm);
  font-weight: 500;
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-full);
  border: none;
  background: transparent;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}

.videos__tab--active {
  background: var(--color-bg);
  color: var(--color-text);
  box-shadow: var(--shadow-sm);
}

.videos__tab:not(.videos__tab--active):hover {
  color: var(--color-text);
}

/* Carousel wrapper */
.carousel-wrapper {
  position: relative;
}

/* Track */
.carousel {
  display: flex;
  gap: var(--space-5);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-block: var(--space-2);
  cursor: grab;
  user-select: none;
}
.carousel::-webkit-scrollbar { display: none; }
.carousel.is-dragging { cursor: grabbing; scroll-snap-type: none; }

/* Fade edges */
.carousel-wrapper::before,
.carousel-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: var(--space-10); /* leave dots area clear */
  width: 48px;
  z-index: 2;
  pointer-events: none;
}
.carousel-wrapper::before {
  left: 0;
  background: linear-gradient(to right, var(--color-bg), transparent);
}
.carousel-wrapper::after {
  right: 0;
  background: linear-gradient(to left, var(--color-bg), transparent);
}

/* Nav buttons */
.carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(calc(-50% - var(--space-5)));
  z-index: 3;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition),
              box-shadow var(--transition), transform var(--transition);
}
.carousel__btn--prev { left: -8px; }
.carousel__btn--next { right: -8px; }
.carousel__btn:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
  box-shadow: var(--shadow-lg);
  transform: translateY(calc(-50% - var(--space-5))) scale(1.05);
}
.carousel__btn:disabled {
  opacity: 0.3;
  pointer-events: none;
}

/* Dots */
.carousel__dots {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-5);
  padding-bottom: var(--space-1);
}

.carousel__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-border);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background var(--transition), width var(--transition);
}
.carousel__dot--active {
  background: var(--color-accent);
  width: 20px;
  border-radius: var(--radius-full);
}

/* ---- VIDEO CARD ---- */
.video-card {
  flex: 0 0 280px;
  scroll-snap-align: start;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
}
.video-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary);
  transform: translateY(-3px);
}

/* Thumbnail */
.video-card__thumb-link { display: block; }

.video-card__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--color-surface-2);
  overflow: hidden;
}

.video-card__thumb-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  background: linear-gradient(135deg, var(--color-surface-2) 0%, var(--color-surface-offset) 100%);
  color: var(--color-text-muted);
}

.video-card__thumb-placeholder span {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-text-faint);
  letter-spacing: 0.03em;
}

/* Real thumbnail image (used when video ID is set) */
.video-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.video-card:hover .video-card__thumb img {
  transform: scale(1.04);
}

/* Play button overlay */
.video-card__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}
.video-card__play::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
}
.video-card__play svg {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
}
.video-card:hover .video-card__play { opacity: 1; }

/* Badge */
.video-card__badge {
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 2px var(--space-2);
  border-radius: var(--radius-full);
  background: var(--color-accent);
  color: white;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.video-card__badge--short {
  background: #ff0050; /* YouTube Shorts red */
}

/* Card body */
.video-card__body {
  padding: var(--space-4) var(--space-5) var(--space-5);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.video-card__title {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-card__meta {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  max-width: none;
}

/* SHORT card variant — portrait ratio */
.video-card--short {
  flex: 0 0 180px;
}

.video-card__thumb--short {
  aspect-ratio: 9 / 16;
}

/* Shorts carousel slightly narrower cards */
.carousel--shorts .video-card--short {
  flex: 0 0 175px;
}

/* CTA below carousel */
.videos__cta {
  text-align: center;
  margin-top: var(--space-8);
}

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

.whatsapp-btn {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: 200;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45), 0 2px 8px rgba(0,0,0,0.15);
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  /* Subtle entry pulse on load */
  animation: wa-entry 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.8s both;
}

@keyframes wa-entry {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.whatsapp-btn:hover {
  background: #1ebe5d;
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.55), 0 3px 10px rgba(0,0,0,0.18);
}

.whatsapp-btn:active {
  transform: scale(1.04);
}

/* Tooltip */
.whatsapp-btn__tooltip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  background: #1a1a1a;
  color: #ffffff;
  font-size: var(--text-xs);
  font-weight: 500;
  white-space: nowrap;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition), transform var(--transition);
  transform: translateY(-50%) translateX(6px);
}

.whatsapp-btn__tooltip::after {
  content: '';
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-left-color: #1a1a1a;
}

.whatsapp-btn:hover .whatsapp-btn__tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* Halo ring animation */
.whatsapp-btn::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.5);
  animation: wa-halo 2.5s ease-out infinite;
}

@keyframes wa-halo {
  0%   { transform: scale(1);   opacity: 0.7; }
  100% { transform: scale(1.55); opacity: 0; }
}

/* Mobile: position a bit higher so it doesn't cover the nav bar */
@media (max-width: 600px) {
  .whatsapp-btn {
    bottom: var(--space-5);
    right: var(--space-4);
    width: 50px;
    height: 50px;
  }
  .whatsapp-btn__tooltip {
    display: none;
  }
}
