/* Estilos adicionales para la página de comunidad */

.community-card {
  background-color: var(--color-glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--color-glass-border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  margin-bottom: 2rem;
  transition: var(--transition);
}

.community-card:hover {
  box-shadow: 0 10px 30px rgba(138, 108, 255, 0.05);
  transform: translateY(-7px);
}

.content-description {
  margin-bottom: 2rem;
}

.content-list {
  margin-top: 1rem;
  margin-bottom: 2rem;
}

.content-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

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

/* Estilos para los iconos de redes sociales en las tarjetas de servicio */
.service-card .service-icon span i {
  font-size: 2rem;
  background: linear-gradient(to right, var(--color-accent-1), var(--color-accent-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Estilos para los botones de redes sociales */
.service-btn {
  background: linear-gradient(to right, rgba(255, 62, 157, 0.1), rgba(138, 108, 255, 0.1));
  transition: var(--transition);
}

.service-card:hover .service-btn {
  background: linear-gradient(to right, var(--color-accent-1), var(--color-accent-3));
  color: white;
}

/* Estilos para la sección de testimonios */
.testimonial-author {
  font-size: 1rem;
}

/* Estilos para la sección de CTA */
.contact-card .cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.contact-card .btn {
  width: 100%;
}

/* Estilos para el contenedor de video */
.video-container {
  position: relative;
  width: 100%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin: 2rem 0;
  transition: var(--transition);
}

.video-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.video-container iframe {
  border-radius: var(--radius-lg);
}

/* Estilos para las estadísticas de redes sociales */
.social-stats-container {
  margin: 3rem 0;
}

.social-stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.social-stat-card {
  background-color: var(--color-glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--color-glass-border);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.social-stat-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

/* Eliminar fondos solo para los iconos de estadísticas sociales */
.social-stat-icon {
  background: none !important;
}

.social-stat-icon:hover {
  background: none !important;
}

.social-platform-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 1.5rem;
}

.social-stat-count {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: linear-gradient(to right, var(--color-accent-1), var(--color-accent-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.social-stat-label {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.social-stat-button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(to right, rgba(255, 62, 157, 0.1), rgba(138, 108, 255, 0.1));
  border-radius: var(--radius-full);
  color: var(--color-text);
  font-weight: 600;
  transition: var(--transition);
}

.social-stat-button:hover {
  background: linear-gradient(to right, var(--color-accent-1), var(--color-accent-3));
  color: white;
  transform: translateY(-3px);
}

/* Estilos específicos para cada red social */
.instagram-icon .social-stat-count {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.youtube-icon .social-stat-count {
  background: linear-gradient(to right, #ff0000, #cc0000);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tiktok-icon .social-stat-count {
  background: linear-gradient(to right, #25f4ee, #fe2c55);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Responsive */
@media (min-width: 768px) {
  .social-stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .contact-card .cta-buttons {
    flex-direction: row;
  }
}

/* Estilos para el carrusel de videos */
.video-carousel-container {
  width: 100%;
  margin: 3rem 0;
  overflow: hidden;
  position: relative;
}

.video-carousel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding: 2rem 0;
}

.video-item {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
  transform-style: preserve-3d;
  perspective: 1000px;
}

.video-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
  transform-style: preserve-3d;
  cursor: pointer;
}

.video-item:hover .video-wrapper {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.video-thumbnail {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* Aspect ratio 16:9 */
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.video-thumbnail img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.video-item:hover .video-thumbnail img {
  transform: scale(1.05);
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(255, 62, 157, 0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
  color: white;
  z-index: 2;
}

.video-item:hover .play-button {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.1);
}

.video-info {
  padding: 1.5rem;
  background: linear-gradient(to right, rgba(255, 62, 157, 0.1), rgba(138, 108, 255, 0.1));
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  transition: all 0.3s ease;
}

.video-info h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-text);
  transition: all 0.3s ease;
}

.video-info p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  transition: all 0.3s ease;
}

.video-item:hover .video-info {
  background: linear-gradient(to right, rgba(255, 62, 157, 0.2), rgba(138, 108, 255, 0.2));
}

.video-item:hover .video-info h3 {
  background: linear-gradient(to right, var(--color-accent-1), var(--color-accent-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Modal de video */
.video-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-modal.active {
  display: block;
  opacity: 1;
}

.modal-content {
  position: relative;
  margin: 5% auto;
  width: 80%;
  max-width: 900px;
  animation: modalFadeIn 0.5s;
}

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

.close-modal {
  position: absolute;
  top: -40px;
  right: 0;
  color: white;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  z-index: 1001;
  transition: all 0.3s ease;
}

.close-modal:hover {
  color: var(--color-accent-1);
  transform: scale(1.1);
}

.modal-video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.modal-video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
}

/* Responsive */
@media (max-width: 1024px) {
  .video-carousel {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .video-carousel {
    grid-template-columns: 1fr;
  }

  .modal-content {
    width: 90%;
  }
}

/* Video Grid Styles */
.video-grid-container {
  width: 100%;
  margin: 2rem 0;
  padding: 1rem;
  background-color: var(--color-glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--color-glass-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2rem;
  padding: 1rem;
}

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

@media (min-width: 1024px) {
  .video-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.video-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  transition: all 0.4s ease;
  background-color: #1a1e3a;
}

.video-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

.video-thumbnail {
  position: relative;
  width: 100%;
  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-item:hover .video-thumbnail img {
  transform: scale(1.05);
}

.video-info {
  padding: 1.25rem;
  background: linear-gradient(to bottom, rgba(26, 30, 58, 0.8), rgba(26, 30, 58, 1));
}

.video-info h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: white;
}

.video-info p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 0;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.6));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-item:hover .video-overlay {
  opacity: 1;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: linear-gradient(to right, var(--color-accent-1), var(--color-accent-3));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 2;
  box-shadow: 0 0 20px rgba(255, 62, 157, 0.5);
}

.video-item:hover .play-button {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.1);
}

.video-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(to right, var(--color-accent-1), var(--color-accent-3));
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 2;
}

/* Video Modal Styles */
.video-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
}

.modal-content {
  position: relative;
  width: 90%;
  max-width: 900px;
  animation: modalFadeIn 0.5s;
}

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

.close-modal {
  position: absolute;
  top: -40px;
  right: 0;
  color: white;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  z-index: 1001;
  transition: all 0.3s ease;
}

.close-modal:hover {
  color: var(--color-accent-1);
  transform: scale(1.1);
}

.modal-video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.modal-video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}
