:root {
  --background: #141414;
  --foreground: #f9f9f9;
  --primary: #e50914;
  --primary-glow: #ff3344;
  --border: #333;
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --transition-speed: 0.3s;
}

/* General Reset */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: var(--background);
  color: var(--foreground);
  scroll-behavior: smooth;
}

/* Improved text rendering and animations */
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a, button, .btn-primary, .badge, .hero-images img {
  transition: all var(--transition-speed) ease;
}

/* Containers */
.container {
  width: 92%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(20,20,20,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 50;
  transition: all var(--transition-speed) ease;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  flex-wrap: wrap;
  gap: 1rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #fff;
  font-size: 0.95rem;
}

/* BOTÓN COMPRAR */
.btn-comprar {
  background: var(--primary);
  color: #fff;
  padding: 6px 14px;
  border-radius: 6px;
  font-weight: bold;
  display: flex;
  align-items: center;
}

@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    padding: 1rem 0;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
  }

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

  .cta-buttons button {
    flex: 1;
    max-width: 150px;
  }
}

.logo-box {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.logo-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 2px solid var(--primary);
}

.logo-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  color: #aaa;
  text-decoration: none;
  transition: 0.3s;
}

.nav-links a:hover {
  color: var(--foreground);
  transform: scale(1.05);
}

.cta-buttons {
  display: flex;
  gap: 1rem;
}

.btn-outline {
  border: 2px solid var(--primary);
  background: transparent;
  color: var(--primary);
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: all var(--transition-speed) ease;
  letter-spacing: 0.5px;
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(229, 9, 20, 0.3);
}

.btn-red {
  background: var(--primary);
  color: white;
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: all var(--transition-speed) ease;
  letter-spacing: 0.5px;
}

.btn-red:hover {
  background: var(--primary-glow);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(229, 9, 20, 0.3);
}

/* Hero Section */
.hero {
  min-height: 50vh;
  position: relative;
  background: linear-gradient(135deg, var(--primary) 0%, var(--background) 100%);
  display: flex;
  align-items: center;
  padding: clamp(6rem, 15vh, 8rem) 0 var(--spacing-lg);
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.8) 100%);
  opacity: 0.2;
}

.hero-content {
  position: relative;
  z-index: 10;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: bold;
  line-height: 1.1;
}

.hero-text h1 span {
  color: var(--primary);
  display: block;
}

.hero-text p {
  font-size: clamp(1rem, 3vw, 1.2rem);
  max-width: 500px;
  color: #ccc;
}

.platforms {
  margin-top: 1rem;
  opacity: 0.8;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.75rem;
  margin-top: 0.75rem;
}

@media (max-width: 968px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .hero-text p {
    margin: 0 auto;
  }

  .platform-grid {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 480px) {
  .platform-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.badge {
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  text-align: center;
  font-weight: bold;
  color: white;
}

.badge.netflix { background: #e50914; }
.badge.prime { background: #0466c8; }
.badge.hulu { background: #1ce783; }
.badge.hbo { background: #8338ec; }
.badge.iptv { background: #ff8500; }
.badge.paramount { background: #4f46e5; }
.badge.crunchyroll { background: #ff8500; }

.btn-primary {
  margin-top: 1.5rem;
  padding: 0.8rem 1.2rem;
  font-size: 1rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  box-shadow: 0 10px 30px -10px rgba(229, 9, 20, 0.3);
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--primary-glow);
}

/* Images */
.hero-images {
  position: relative;
}

.laptop {
  width: 100%;
  max-width: 500px;
  border-radius: 10px;
  box-shadow: 0 8px 32px -8px rgba(0,0,0,0.4);
}

.mobile {
  position: absolute;
  bottom: -20px;
  right: -30px;
  width: 180px;
  border-radius: 12px;
  box-shadow: 0 10px 30px -10px rgba(229, 9, 20, 0.3);
}

@media (max-width: 640px) {
  .mobile {
    width: 120px;
    right: -10px;
    bottom: -10px;
  }
}

/* -------- Pel铆cula de la Semana -------- */
.bg-gradient-dark {
  background: linear-gradient(180deg, #1a1a1a 0%, #000 100%);
  color: var(--foreground);
}

.bg-gradient-card {
  background: linear-gradient(135deg, #1f1f1f 0%, #141414 100%);
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.bg-gradient-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.border-border\/20 {
  border-color: rgba(255,255,255,0.2);
}

.shadow-card {
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.rounded-lg {
  border-radius: 12px;
}

.aspect-video {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 ratio */
}

.aspect-video video,
.aspect-video img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.aspect-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  border: 0;
}

/* Tipograf铆a */
.text-muted-foreground {
  color: #aaa;
}
.text-3xl {
  font-size: 1.75rem;
}
.text-xl {
  font-size: 1.25rem;
}

/* Bot贸n Ver ahora */
.bg-primary {
  background: var(--primary);
}
.bg-primary:hover {
  background: var(--primary-glow);
}

/* -------- Contacto -------- */
.bg-gradient-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--background) 100%);
}

.hover\:shadow-elegant:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.bg-muted\/20 {
  background: rgba(255,255,255,0.05);
}

.backdrop-blur-sm {
  backdrop-filter: blur(4px);
}

/* Grids y Layout */
.grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.bg-gradient-card {
  background: linear-gradient(135deg, rgba(31, 31, 31, 0.6) 0%, rgba(20, 20, 20, 0.8) 100%);
  backdrop-filter: blur(10px);
}

/* Estilos para la secci贸n de contacto */
#contact .bg-gradient-card {
  max-width: 340px;
  min-height: 420px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
}

@media (max-width: 480px) {
  #contact .bg-gradient-card {
    min-height: auto;
    padding-bottom: 2rem;
  }
}

#contact .bg-gradient-card:hover {
  transform: translateY(-5px);
}

#contact button {
  position: relative;
  overflow: hidden;
  background-color: #25D366;
  font-weight: 600;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--transition-speed) ease;
}

#contact button:hover {
  background-color: #128C7E;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

/* Utility classes */
.py-20 { padding-top: clamp(3rem, 10vh, 5rem); padding-bottom: clamp(3rem, 10vh, 5rem); }
.mb-16 { margin-bottom: clamp(2rem, 8vh, 4rem); }
.mb-4 { margin-bottom: 1rem; }
.mt-16 { margin-top: 4rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-2xl { max-width: 42rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-6xl { max-width: 72rem; }
.text-4xl { font-size: clamp(1.75rem, 8vw, 2.25rem); }
.text-5xl { font-size: clamp(2rem, 10vw, 3rem); }
.font-bold { font-weight: 700; }
.leading-relaxed { line-height: 1.625; }
.inline-flex { display: inline-flex; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.flex-col { flex-direction: column; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.relative { position: relative; }
.absolute { position: absolute; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.overflow-hidden { overflow: hidden; }

/* Carrusel Styles */
.carousel {
  position: relative;
  margin-top: 2rem;
}
.carousel-viewport {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.carousel-viewport::-webkit-scrollbar {
  display: none;
}
.carousel-track {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 1.5rem;
}
.carousel-item {
  flex: 0 0 250px;
  scroll-snap-align: start;
  position: relative;
}

@media (max-width: 640px) {
  .carousel-item {
    flex: 0 0 200px;
  }
}

@media (max-width: 480px) {
  .carousel-item {
    flex: 0 0 160px;
  }
  .carousel-track {
    gap: 1rem;
  }
}

/* Tooltip styles */
.movie-tooltip {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(20, 20, 20, 0.9);
  backdrop-filter: blur(8px);
  color: #f9f9f9;
  padding: 1.2rem;
  border-radius: 8px;
  font-size: 0.85rem;
  line-height: 1.5;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 10;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  overflow-y: auto;
}

.carousel-item:hover .movie-tooltip {
  opacity: 1;
  visibility: visible;
}

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

.carousel-item .card {
  display: block;
  background: #222;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: white;
  transition: transform 0.3s ease;
  position: relative;
}
.carousel-item .card:hover {
  transform: scale(1.05);
}
.carousel-item img {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
}
.carousel-item .card-body {
  padding: 1rem;
}
.carousel-item .card-title {
  font-size: 1rem;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.carousel-item .card-meta {
  font-size: 0.8rem;
  color: #aaa;
  margin-top: 0.5rem;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  font-size: 1.5rem;
}
.carousel-btn.prev { left: -20px; }
.carousel-btn.next { right: -20px; }
@media (max-width: 768px) {
  .carousel-btn {
    display: none;
  }
}

.carousel-status {
  text-align: center;
  margin-top: 1rem;
  color: #aaa;
}

.login-link {
  color: #666;
  font-size: 0.8rem;
  margin-left: 10px;
  opacity: 0.6;
  transition: opacity 0.3s;
}

.login-link:hover {
  opacity: 1;
  color: var(--primary);
}

/* ============================= */
/* 📱 RESPONSIVE BLOG PAGES */
/* (Netflix, HBO, Prime, IPTV, etc.) */
/* ============================= */

/* Tablets */
@media (max-width: 1024px) {
  .blog-container {
    margin-top: 90px;
    padding: 0 16px;
  }

  .blog-content h1 {
    font-size: 2.2rem;
  }

  .blog-content h2 {
    font-size: 1.6rem;
  }

  .blog-image {
    margin: 1.5rem 0;
  }
}

/* Móviles grandes */
@media (max-width: 768px) {
  .blog-container {
    margin-top: 80px;
    padding: 0 14px;
  }

  .blog-content {
    font-size: 1rem;
    line-height: 1.7;
  }

  .blog-content h1 {
    font-size: 1.9rem;
    text-align: center;
  }

  .blog-content h2 {
    font-size: 1.4rem;
  }

  .step-list {
    margin-left: 1rem;
  }

  /* CTA WhatsApp */
  #comprar {
    padding: 1.5rem 1rem !important;
  }

  #comprar a {
    display: block !important;
    width: 100%;
    margin: 8px 0 !important;
  }
}

/* Móviles pequeños */
@media (max-width: 480px) {
  .blog-container {
    margin-top: 70px;
    padding: 0 12px;
  }

  .blog-content h1 {
    font-size: 1.6rem;
  }

  .blog-content h2 {
    font-size: 1.2rem;
  }

  .blog-content {
    font-size: 0.95rem;
  }

  .blog-image {
    border-radius: 8px;
  }

  .back-link {
    font-size: 0.9rem;
  }

  /* Botones CTA */
  #comprar h2 {
    font-size: 1.3rem;
  }

  #comprar p {
    font-size: 0.9rem;
  }
}

/* ============================= */
/* 📱 HEADER MEJORADO MOBILE */
/* ============================= */

@media (max-width: 600px) {
  .logo-text {
    font-size: 1.1rem;
  }

  .logo-circle {
    width: 32px;
    height: 32px;
  }

  .nav-links a {
    font-size: 0.85rem;
  }
}

/* ============================= */
/* 📱 IMÁGENES MÁS RESPONSIVAS */
/* ============================= */

@media (max-width: 768px) {
  img {
    max-width: 100%;
    height: auto;
  }
}

/* ============================= */
/* 📱 ESPACIADOS GENERALES */
/* ============================= */

@media (max-width: 480px) {
  .py-20 {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  .mb-16 {
    margin-bottom: 2rem;
  }
}

/* ============================= */
/* 📱 FIX BOTONES WHATSAPP MOBILE */
/* ============================= */

@media (max-width: 768px) {
  #comprar a {
    display: flex !important;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    justify-content: center;
    text-align: center;
    white-space: normal; /* permite salto de línea */
    line-height: 1.4;
    padding: 12px;
  }
}