/* =============================================
   ¡CANTA Y APRENDE! — Design System
   Palette: Cyan, Orange, Yellow, Pink, Purple
   Fonts: Fredoka One (titles) + Nunito (body)
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Fredoka+One&family=Nunito:wght@400;600;700;800&display=swap');

/* === CSS VARIABLES === */
:root {
  --cyan:        #5EC9C9;
  --cyan-dark:   #3AABAB;
  --cyan-light:  #AEE9E9;
  --cyan-bg:     #E8F9F9;
  --orange:      #FF6B35;
  --orange-light: #FFB59A;
  --yellow:      #FFD93D;
  --yellow-light: #FFF0A0;
  --pink:        #FF6B9D;
  --pink-light:  #FFB8D4;
  --purple:      #A855F7;
  --purple-light: #DDB8FF;
  --green:       #4ADE80;
  --bg:          #F0FAFA;
  --bg-card:     #FFFFFF;
  --dark:        #1A2E35;
  --dark-soft:   #2D4A52;
  --gray:        #7A9CA5;
  --gray-light:  #C8DDE2;
  --white:       #FFFFFF;

  --radius-sm:   8px;
  --radius-md:   16px;
  --radius-lg:   24px;
  --radius-xl:   36px;
  --radius-full: 9999px;

  --shadow-sm:   0 2px 8px rgba(30, 80, 100, 0.08);
  --shadow-md:   0 4px 20px rgba(30, 80, 100, 0.12);
  --shadow-lg:   0 8px 40px rgba(30, 80, 100, 0.16);
  --shadow-xl:   0 16px 60px rgba(30, 80, 100, 0.20);

  --transition:  all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);

  --font-title:  'Fredoka One', cursive;
  --font-body:   'Nunito', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--dark);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* === UTILITY CLASSES === */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section-sm {
  padding: 48px 0;
}

.text-center { text-align: center; }
.text-left   { text-align: left; }

.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5 {
  font-family: var(--font-title);
  line-height: 1.2;
  color: var(--dark);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.8rem); }
h4 { font-size: 1.2rem; }

.section-title {
  font-family: var(--font-title);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--dark);
  margin-bottom: 8px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--gray);
  font-weight: 600;
  margin-bottom: 48px;
}

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

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: var(--transition-spring);
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--orange), #FF8C5A);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(255, 107, 53, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 28px rgba(255, 107, 53, 0.5);
}

.btn-secondary {
  background: var(--white);
  color: var(--cyan-dark);
  border: 2.5px solid var(--cyan);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--cyan-bg);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-cyan {
  background: linear-gradient(135deg, var(--cyan), var(--cyan-dark));
  color: var(--white);
  box-shadow: 0 4px 20px rgba(94, 201, 201, 0.4);
}

.btn-cyan:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 28px rgba(94, 201, 201, 0.5);
}

.btn-youtube {
  background: linear-gradient(135deg, #FF0000, #CC0000);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(255, 0, 0, 0.3);
  font-size: 1.05rem;
  padding: 16px 32px;
}

.btn-youtube:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 32px rgba(255, 0, 0, 0.4);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.9rem;
}

.btn-lg {
  padding: 18px 40px;
  font-size: 1.15rem;
}

/* === NAVBAR === */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 2px solid var(--cyan-light);
  padding: 12px 0;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.navbar-logo-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--cyan), var(--cyan-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 2px 12px rgba(94, 201, 201, 0.4);
  flex-shrink: 0;
}

.navbar-logo-text {
  font-family: var(--font-title);
  font-size: 1.4rem;
  color: var(--dark);
  line-height: 1.1;
}

.navbar-logo-text span {
  color: var(--orange);
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.navbar-nav a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--dark-soft);
  transition: var(--transition);
}

.navbar-nav a:hover,
.navbar-nav a.active {
  background: var(--cyan-bg);
  color: var(--cyan-dark);
}

.navbar-nav a.active {
  background: var(--cyan);
  color: var(--white);
}

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

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.hamburger span {
  width: 24px;
  height: 3px;
  background: var(--dark);
  border-radius: 2px;
  transition: var(--transition);
}

/* === HERO SECTION === */
.hero {
  background: linear-gradient(160deg, var(--cyan-bg) 0%, #E8F5FF 40%, #FFF8E8 100%);
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 209, 61, 0.25) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(94, 201, 201, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--yellow-light);
  border: 2px solid var(--yellow);
  color: #8B6800;
  border-radius: var(--radius-full);
  padding: 6px 16px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-title);
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--dark);
}

.hero-title .highlight {
  color: var(--cyan-dark);
}

.hero-title .highlight-orange {
  color: var(--orange);
}

.hero-description {
  font-size: 1.1rem;
  color: var(--dark-soft);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 480px;
}

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

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.hero-stat {
  text-align: center;
}

.hero-stat-number {
  font-family: var(--font-title);
  font-size: 2rem;
  color: var(--cyan-dark);
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.8rem;
  color: var(--gray);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-mascot-container {
  position: relative;
  width: 320px;
  height: 320px;
}

.hero-circle {
  width: 280px;
  height: 280px;
  background: linear-gradient(135deg, var(--cyan), var(--cyan-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8rem;
  box-shadow: 0 20px 60px rgba(94, 201, 201, 0.4);
  animation: float 3s ease-in-out infinite;
  position: relative;
  margin: auto;
}

.floating-icon {
  position: absolute;
  font-size: 2.4rem;
  animation: float 2.5s ease-in-out infinite;
}

.fi-1 { top: 10px;  right: 20px; animation-delay: 0s; }
.fi-2 { bottom: 20px; right: 10px; animation-delay: 0.5s; }
.fi-3 { bottom: 10px; left: 20px; animation-delay: 1s; }
.fi-4 { top: 30px;  left: 10px;  animation-delay: 1.5s; }
.fi-5 { top: 50%;  right: -10px; animation-delay: 0.8s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* === CARDS === */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition-spring);
  position: relative;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

/* === VIDEO CARD === */
.video-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-spring);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.video-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--shadow-lg);
}

.video-card-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--cyan-bg);
}

.video-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.video-card:hover .video-card-thumb img {
  transform: scale(1.05);
}

.video-card-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0);
  transition: var(--transition);
}

.video-card:hover .video-card-play {
  background: rgba(0, 0, 0, 0.25);
}

.video-card-play-icon {
  width: 54px;
  height: 54px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  opacity: 0;
  transform: scale(0.7);
  transition: var(--transition-spring);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.video-card:hover .video-card-play-icon {
  opacity: 1;
  transform: scale(1);
}

.video-card-playlist-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--white);
  background: var(--cyan-dark);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.video-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.video-card-title {
  font-family: var(--font-title);
  font-size: 1rem;
  line-height: 1.3;
  color: var(--dark);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-card-desc {
  font-size: 0.82rem;
  color: var(--gray);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--gray-light);
}

.video-card-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--orange);
}

.video-card-link {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--cyan-dark);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
}

.video-card-link:hover {
  color: var(--orange);
}

/* === PLAYLIST CARD === */
.playlist-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition-spring);
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.playlist-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.playlist-card-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.playlist-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.playlist-card:hover .playlist-card-thumb img {
  transform: scale(1.05);
}

.playlist-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,46,53,0.85) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
}

.playlist-card-count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
  color: var(--white);
  border-radius: var(--radius-full);
  padding: 4px 12px;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 8px;
  width: fit-content;
}

.playlist-card-title-overlay {
  font-family: var(--font-title);
  font-size: 1.2rem;
  color: var(--white);
  line-height: 1.3;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.playlist-card-body {
  padding: 16px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.playlist-card-desc {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.playlist-card-emoji {
  font-size: 2.4rem;
  margin-bottom: 4px;
}

/* === GRIDS === */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.video-grid-lg {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.playlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

/* === FEATURED SCROLL SECTION === */
.scroll-row-wrapper {
  position: relative;
}

.scroll-row {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 8px 4px 20px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--cyan-light) transparent;
}

.scroll-row::-webkit-scrollbar {
  height: 4px;
}
.scroll-row::-webkit-scrollbar-track {
  background: transparent;
}
.scroll-row::-webkit-scrollbar-thumb {
  background: var(--cyan-light);
  border-radius: 4px;
}

.scroll-row .video-card {
  min-width: 280px;
  max-width: 300px;
  scroll-snap-align: start;
  flex-shrink: 0;
}

/* === ABOUT SECTION === */
.about-section {
  background: linear-gradient(135deg, var(--cyan-dark), #2B8E8E);
  color: var(--white);
  border-radius: var(--radius-xl);
  padding: 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text h2 {
  color: var(--white);
  margin-bottom: 16px;
}

.about-text p {
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
  font-size: 1.05rem;
  margin-bottom: 24px;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.about-tag {
  background: rgba(255,255,255,0.15);
  color: var(--white);
  border-radius: var(--radius-full);
  padding: 6px 16px;
  font-size: 0.9rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.25);
}

.about-visual {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.about-stat-card {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
}

.about-stat-card .number {
  font-family: var(--font-title);
  font-size: 2.2rem;
  color: var(--yellow);
  line-height: 1;
}

.about-stat-card .label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.8);
  font-weight: 600;
  margin-top: 4px;
}

/* === SEARCH & FILTER === */
.search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border: 2.5px solid var(--gray-light);
  border-radius: var(--radius-full);
  padding: 10px 20px;
  transition: var(--transition);
  max-width: 520px;
  width: 100%;
  margin: 0 auto;
}

.search-bar:focus-within {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(94, 201, 201, 0.15);
}

.search-bar input {
  flex: 1;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--dark);
  background: transparent;
}

.search-bar input::placeholder {
  color: var(--gray);
}

.search-icon {
  color: var(--gray);
  font-size: 1.1rem;
}

.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 20px;
}

.filter-btn {
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid var(--gray-light);
  background: var(--white);
  color: var(--dark-soft);
  transition: var(--transition-spring);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(94, 201, 201, 0.35);
}

/* === PAGE HERO (inner pages) === */
.page-hero {
  background: linear-gradient(160deg, var(--cyan-bg) 0%, #E8F5FF 100%);
  padding: 60px 0 40px;
  border-bottom: 3px solid var(--cyan-light);
}

.page-hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}

.page-hero-emoji {
  font-size: 4rem;
  animation: float 3s ease-in-out infinite;
}

.page-hero-title {
  font-family: var(--font-title);
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--dark);
}

.page-hero-desc {
  font-size: 1.05rem;
  color: var(--gray);
  max-width: 560px;
}

/* === BREADCRUMB === */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--gray);
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--cyan-dark);
  font-weight: 700;
  transition: var(--transition);
}

.breadcrumb a:hover {
  color: var(--orange);
}

.breadcrumb-sep {
  color: var(--gray-light);
}

/* === VIDEO DETAIL PAGE === */
.video-detail {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
  align-items: start;
}

.video-embed-wrapper {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  background: var(--dark);
  position: relative;
}

.video-embed-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-embed-wrapper .play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.3);
  cursor: pointer;
  transition: var(--transition);
}

.video-embed-wrapper .play-overlay:hover {
  background: rgba(0,0,0,0.15);
}

.play-btn-big {
  width: 80px;
  height: 80px;
  background: rgba(255, 0, 0, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  transition: var(--transition-spring);
}

.play-btn-big:hover {
  transform: scale(1.1);
}

.video-detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
}

.sidebar-card h3 {
  font-size: 1rem;
  margin-bottom: 16px;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* === FOOTER === */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.8);
  padding: 60px 0 24px;
  margin-top: auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 24px;
}

.footer-brand .navbar-logo-text {
  color: var(--white);
  font-size: 1.5rem;
  display: block;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.6);
  margin-bottom: 20px;
}

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

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition);
  color: var(--white);
  text-decoration: none;
}

.social-link:hover {
  background: var(--cyan);
  transform: translateY(-3px);
}

.footer-col h4 {
  font-family: var(--font-title);
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 16px;
}

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

.footer-col a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
}

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

.footer-bottom {
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
}

/* === BADGES === */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
}

.badge-cyan    { background: var(--cyan-bg);    color: var(--cyan-dark); }
.badge-orange  { background: #FFF0E8;            color: var(--orange); }
.badge-yellow  { background: var(--yellow-light); color: #7A5C00; }
.badge-pink    { background: #FFE8F0;            color: #C0356B; }
.badge-purple  { background: #F3E8FF;            color: #7A22C0; }
.badge-green   { background: #E8FFF0;            color: #15803D; }

/* === PLAYLIST COLORS === */
.pl-libros     { --pl-color: var(--cyan); }
.pl-cantando   { --pl-color: var(--orange); }
.pl-minecraft  { --pl-color: var(--green); }
.pl-conejito   { --pl-color: var(--pink); }
.pl-luna       { --pl-color: var(--purple); }
.pl-busca      { --pl-color: var(--yellow); }
.pl-magicos    { --pl-color: #FF6E6E; }
.pl-shorts     { --pl-color: #FF0000; }

.video-card-playlist-badge[data-pl="libros-cuentos"]   { background: var(--cyan-dark); }
.video-card-playlist-badge[data-pl="aprende-cantando"] { background: var(--orange); }
.video-card-playlist-badge[data-pl="minecraft-ninos"]  { background: #2D8B2D; }
.video-card-playlist-badge[data-pl="conejito-peluche"] { background: var(--pink); }
.video-card-playlist-badge[data-pl="luna-magica"]      { background: var(--purple); }
.video-card-playlist-badge[data-pl="busca-encuentra"]  { background: #B8800A; }
.video-card-playlist-badge[data-pl="cuentos-magicos"]  { background: #E04040; }
.video-card-playlist-badge[data-pl="shorts-educativos"]{ background: #CC0000; }

/* === PAGINATION === */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.page-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--gray-light);
  background: var(--white);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--dark-soft);
  cursor: pointer;
  transition: var(--transition-spring);
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-btn:hover,
.page-btn.active {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--white);
  transform: scale(1.1);
}

.page-btn.prev, .page-btn.next {
  width: auto;
  padding: 0 16px;
  border-radius: var(--radius-full);
}

/* === EMPTY STATE === */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 80px 20px;
  text-align: center;
}

.empty-state .icon {
  font-size: 4rem;
}

.empty-state h3 {
  color: var(--dark);
}

.empty-state p {
  color: var(--gray);
  max-width: 400px;
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes bounce-in {
  0% { transform: scale(0.7); opacity: 0; }
  60% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

.animate-fade-up {
  animation: fadeInUp 0.5s ease both;
}

/* === WAVE DIVIDER === */
.wave-divider {
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.wave-divider svg {
  display: block;
  width: 100%;
}

/* === MOBILE NAVBAR OVERLAY === */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 99;
}

.nav-overlay.open { display: block; }

.mobile-menu {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 3px solid var(--cyan-light);
  padding: 20px 24px;
  z-index: 101;
  flex-direction: column;
  gap: 4px;
  box-shadow: var(--shadow-lg);
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1rem;
  color: var(--dark-soft);
  transition: var(--transition);
}

.mobile-menu a:hover,
.mobile-menu a.active {
  background: var(--cyan-bg);
  color: var(--cyan-dark);
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-description {
    margin: 0 auto 32px;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .about-section {
    grid-template-columns: 1fr;
    padding: 40px;
    text-align: center;
  }

  .video-detail {
    grid-template-columns: 1fr;
  }

  .video-detail-sidebar {
    grid-row: 1;
  }
}

/* Footer : 2 colonnes entre 900px et 1024px (reste 4 col au-dessus) */
@media (max-width: 900px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .section { padding: 56px 0; }

  .navbar-nav,
  .navbar-cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero-visual {
    order: -1;
  }

  .hero-circle {
    width: 200px;
    height: 200px;
    font-size: 5rem;
  }

  .hero-mascot-container {
    width: 220px;
    height: 220px;
  }

  .about-section {
    padding: 32px 24px;
  }

  .about-stat-row {
    grid-template-columns: 1fr 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .video-grid,
  .video-grid-lg {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
  }

  .playlist-grid {
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 20px;
  }
}

@media (max-width: 480px) {
  :root { font-size: 15px; }

  .container { padding: 0 16px; }

  .hero { padding: 48px 0 60px; }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn { width: 100%; justify-content: center; }

  .about-stat-row {
    grid-template-columns: 1fr;
  }

  .video-grid,
  .video-grid-lg {
    grid-template-columns: 1fr;
  }

  .playlist-grid {
    grid-template-columns: 1fr;
  }

  .filters {
    gap: 8px;
  }
}

/* === NO RESULTS === */
.hidden { display: none !important; }

/* === LOADING SKELETON === */
.skeleton {
  background: linear-gradient(90deg, var(--gray-light) 25%, var(--bg) 50%, var(--gray-light) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
