/* ==========================================================================
   RESET + VARIABLES
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #c1121f;
  --primary-dark: #8f0e18;
  --light: #f8f9fa;
  --dark: #212529;
  --gray: #6c757d;
}

body {
  font-family: system-ui, -apple-system, sans-serif;
  color: var(--dark);
  line-height: 1.6;
  background: black;
  background-repeat: round;
  align-content: center;
}

/* ==========================================================================
   HEADER + NAVEGACIÓN
   ========================================================================== */
header {
  background: var(--dark);
  color: white;
  padding: 1rem;
  position: static;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--primary);
  text-decoration: none;
}

nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 0.8rem;
  border-radius: 6px;
  transition: all 0.2s;
}

nav a:hover,
nav a.active {
  background: var(--primary);
  color: white;
}

/* Menú hamburguesa para móvil */
.menu-toggle {
  display: none;
  font-size: 1.8rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

/* ==========================================================================
   REELS GRID (mantengo original)
   ========================================================================== */
.reels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 1.2rem;
  padding: 0 1rem 3rem;
  max-width: 1450px;
  margin: 0 auto;
}

.reel-item {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 16px;
  overflow: hidden;
  background: var(--card);
  box-shadow: 0 4px 25px rgba(0,0,0,0.6);
  transition: all 0.35s ease;
  cursor: pointer;
}

.reel-item:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 50px rgba(225,29,72,0.35);
}

video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.reel-item:hover video {
  transform: scale(1.04);
}

.play-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  color: white;
  background: rgba(0,0,0,0.35);
  opacity: 0.7;
  transition: all 0.4s ease;
  pointer-events: none;
}

.reel-item:hover .play-icon,
.reel-item.playing .play-icon {
  opacity: 0;
  transform: scale(1.4);
}

/* ==========================================================================
   MODAL
   ========================================================================== */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.98);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

.modal.active {
  display: flex;
}

.modal-video {
  width: 100%;
  max-width: 480px;
  aspect-ratio: 9 / 16;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 0 80px rgba(225,29,72,0.4);
}

.close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 3rem;
  color: white;
  background: rgba(255,255,255,0.15);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
}

.close-btn:hover {
  background: var(--accent);
  transform: rotate(90deg);
}

h1 {
  text-align: center;
  opacity: 0;
  font-size: clamp(2.3rem, 5.5vw, 4rem);
  margin-bottom: 3rem;
  background: none;
  -webkit-text-fill-color: none;
}

/* ==========================================================================
   NUEVO: GRID DE TARJETAS TIKTOK MUY CHICAS (6 filas x 3)
   ========================================================================== */
.tiktok-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));   /* Muy chiquitas */
  gap: 0.85rem;
  max-width: 920px;
  margin: 2.5rem auto;
  padding: 0 1rem;
}

.tiktok-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.5);
  transition: all 0.35s ease;
  aspect-ratio: 9 / 16;
}

.tiktok-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(255, 45, 85, 0.35);
}

.tiktok-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.tiktok-card:hover img {
  transform: scale(1.07);
}

.tiktok-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.25), rgba(255,45,85,0.9));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  opacity: 0;
  transition: opacity 0.35s ease;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: center;
  padding: 0.5rem;
}

.tiktok-card:hover .tiktok-overlay {
  opacity: 1;
}

.tiktok-overlay i {
  font-size: 2.1rem;
  margin-bottom: 5px;
  color: #ff2d55;
}

/* ==========================================================================
   BOTÓN Y MENÚ DE COMPARTIR
   ========================================================================== */
.share-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.75);
  color: white;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 15;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.share-btn:hover {
  background: var(--primary);
  transform: scale(1.15);
}

.share-menu {
  position: absolute;
  bottom: 68px;
  right: 12px;
  background: rgba(0, 0, 0, 0.9);
  border-radius: 14px;
  padding: 12px 10px;
  display: none;
  flex-direction: column;
  gap: 10px;
  z-index: 20;
  box-shadow: 0 10px 35px rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
}

.share-menu.show {
  display: flex;
  animation: fadeInUp 0.3s ease;
}

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

.share-option {
  color: white;
  font-size: 1.45rem;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
  text-decoration: none;
}

.share-option:hover {
  transform: scale(1.25) rotate(8deg);
}

.whatsapp:hover { background: #25D366; }
.instagram:hover { background: linear-gradient(135deg, #f56040, #c13584, #405de6); }
.facebook:hover { background: #1877F2; }
.x:hover { background: #000000; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    align-items: flex-start;
  }

  nav ul {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 1rem;
  }

  nav ul.show {
    display: flex;
  }

  .menu-toggle {
    display: block;
    position: absolute;
    right: 1.5rem;
    top: 1.8rem;
  }

  .tiktok-grid {
    grid-template-columns: repeat(auto-fit, minmax(115px, 1fr)); /* Aún más chico en móvil */
    gap: 0.75rem;
  }
}

p {
  font-weight: 500;
  color: white;
}