:root {
  --primary: #6C63FF;
  --primary-light: #a29bfe;
  --secondary: #FF6584;
  --accent: #42C6FF;
  --dark: #2D3748;
  --light: #F7FAFC;
  --text: #2D3748;
  --text-light: #718096;
  --bg: #FFFFFF;
  --bg-secondary: #F8F9FA;
  --font-main: 'Poppins', sans-serif;
  --font-heading: 'Comfortaa', cursive;
  --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  --radius: 16px;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.12);
}

/* Estilos generales */
body {
  font-family: var(--font-main);
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.6;
}

/* Hero Section */
.video-hero {
  position: relative;
  height: 40vh;
  min-height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  overflow: hidden;
  color: white;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  width: 100%;
  padding: 0 2rem;
  text-align: center;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  animation: fadeInDown 1s ease;
}

.hero-subtitle {
  font-size: 1.5rem;
  max-width: 700px;
  margin: 0 auto 3rem;
  font-weight: 300;
  opacity: 0.9;
  animation: fadeIn 1.5s ease;
}

.platform-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 3rem;
  animation: fadeInUp 1s ease;
}

.platform-tab {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.platform-tab i {
  font-size: 1.1rem;
}

.platform-tab:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
}

.platform-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 5px 15px rgba(108, 99, 255, 0.4);
}

.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  color: var(--bg);
  z-index: 3;
}

/* Video Content Section */
.video-content-section {
  padding: 6rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.section-header {
  margin-bottom: 4rem;
  text-align: center;
}

.section-title-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.title-icon {
  color: var(--primary);
  font-size: 1.8rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto;
}

.video-counter {
  background: var(--primary);
  color: white;
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
}

/* Video Grid */
.video-grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.video-card {
  background: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
}

.video-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.video-thumbnail {
  position: relative;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  overflow: hidden;
}

.video-thumbnail img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.video-card:hover .video-thumbnail img {
  transform: scale(1.05);
}

.thumbnail-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
  z-index: 2;
}

.video-card:hover .thumbnail-overlay {
  opacity: 1;
}

.play-button {
  width: 60px;
  height: 60px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  transform: scale(0.8);
}

.video-card:hover .play-button {
  transform: scale(1);
}

.play-button:hover {
  background: var(--primary-light);
  transform: scale(1.1) !important;
}

.platform-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: white;
  z-index: 3;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.youtube-badge {
  background: #FF0000;
}

.facebook-badge {
  background: #3b5998;
}

.instagram-badge {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.tiktok-badge {
  background: #010101;
}

.video-duration {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 500;
  z-index: 3;
}

.video-info {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.video-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  color: var(--dark);
}

.video-description {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex: 1;
}

.video-meta {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--text-light);
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.video-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
}

.tag {
  background: var(--bg-secondary);
  color: var(--text-light);
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* CTA Section */
.video-cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: var(--radius);
  padding: 3rem;
  text-align: center;
  color: white;
  margin-top: 4rem;
  box-shadow: var(--shadow);
}

.cta-content {
  max-width: 600px;
  margin: 0 auto;
}

.cta-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 1rem;
}

.cta-text {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

.newsletter-form {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
}

.form-group {
  display: flex;
  width: 100%;
  background: white;
  border-radius: 50px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-group input {
  flex: 1;
  padding: 0.8rem 1.5rem;
  border: none;
  outline: none;
  font-size: 1rem;
}

.cta-button {
  background: var(--secondary);
  color: white;
  border: none;
  padding: 0 1.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cta-button:hover {
  background: #ff4d6d;
}

.cta-button i {
  font-size: 1rem;
}

/* Video Modal */
.video-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(5px);
}

.modal-content {
  position: relative;
  width: 90%;
  max-width: 1000px;
  background: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.close-modal {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 2;
  transition: var(--transition);
}

.close-modal:hover {
  background: var(--secondary);
  transform: rotate(90deg);
}

.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Floating Scroll Button */
.floating-scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 5px 20px rgba(108, 99, 255, 0.3);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.floating-scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.floating-scroll-top:hover {
  background: var(--primary-light);
  transform: translateY(-5px);
}

/* Animaciones */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease forwards;
}

/* Responsive */
@media (max-width: 992px) {
  .hero-title {
    font-size: 2.8rem;
  }

  .hero-subtitle {
    font-size: 1.3rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .video-grid-container {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
}

@media (max-width: 768px) {
  .video-hero {
    height: auto;
    min-height: auto;
    padding: 8rem 0 6rem;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .platform-tabs {
    flex-wrap: wrap;
  }

  .video-cta {
    padding: 2rem;
  }

  .cta-title {
    font-size: 1.8rem;
  }

  .newsletter-form {
    flex-direction: column;
    gap: 1rem;
  }

  .form-group {
    flex-direction: column;
    border-radius: var(--radius);
  }

  .form-group input,
  .cta-button {
    width: 100%;
    border-radius: var(--radius);
    padding: 0.8rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.8rem;
  }

  .section-title {
    font-size: 1.6rem;
    flex-direction: column;
    gap: 0.5rem;
  }

  .video-counter {
    margin-top: 1rem;
  }

  .video-grid-container {
    grid-template-columns: 1fr;
  }
}