/* Sección Todo Deporte */
.todo-deporte {
    position: relative;
    width: 100%;
    padding: 60px 20px;
    background-color: #01C063;
    overflow: hidden;
    z-index: 1;
  }
  
  /* Patrón de fondo */
  .todo-deporte .grid-overlay {
    background-size: 30px 30px;
    background-image: linear-gradient(to right, rgba(200, 200, 200, 0.1) 1px, transparent 1px),
                      linear-gradient(to bottom, rgba(200, 200, 200, 0.1) 1px, transparent 1px);
  }
  
  /* Contenedor principal */
  .todo-deporte__container {
    /* Layout flexible */
    display: flex;
    flex-direction: column;
    align-items: center;
    
    /* Dimensiones */
    width: 100%;
    /* max-width: 1200px; Eliminamos esto para que el carrusel pueda ser full-width */
    
    /* Posición y apariencia */
    position: relative;
    z-index: 2;
    padding: 2rem 0; /* Eliminamos padding horizontal para que el carrusel pueda expandirse */
  }
  
  /* Encabezado de la sección */
  .todo-deporte__header {
    margin-bottom: 3rem;
    text-align: center;
    width: 100%;
    max-width: 1200px; /* Aplicamos el max-width aquí para centrar el título y subtítulo */
    padding: 0 2rem; /* Añadimos padding aquí si es necesario para el header */
    align-self: center; /* Asegurar que el header se centre si el container es flex */
  }
  
  .todo-deporte__logo {
    max-width: 300px;
    height: auto;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
    filter: drop-shadow(3px 3px 6px rgba(0, 0, 0, 0.3));
  }
  
  .todo-deporte__logo:hover {
    transform: scale(1.05);
  }
  
  .todo-deporte__subtitle {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
  }
  
  /* Información del conductor */
  .todo-deporte__conductor {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    border: 2px solid rgba(255, 232, 90, 0.3);
    max-width: fit-content;
    margin-left: auto;
    margin-right: auto;
    transition: all 0.3s ease;
  }
  
  .todo-deporte__conductor:hover {
    background: rgba(255, 232, 90, 0.2);
    border-color: rgba(255, 232, 90, 0.6);
    transform: translateY(-2px);
  }
  
  .todo-deporte__conductor-icon {
    font-size: 1.5rem;
    animation: bounce 2s infinite;
  }
  
  .todo-deporte__conductor-text {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.1rem;
    color: #fff;
    font-weight: 500;
  }
  
  .todo-deporte__conductor-text strong {
    color: #FFE85A;
    font-weight: 700;
  }
  
  @keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
      transform: translateY(0);
    }
    40% {
      transform: translateY(-5px);
    }
    60% {
      transform: translateY(-3px);
    }
  }
  
  /* ----------------- CARRUSEL DE TIKTOK ----------------- */
  .todo-deporte__tiktok-carousel {
    position: relative;
    width: 100%;
    margin-bottom: 3rem;
    overflow: visible;
  }

  .todo-deporte__tiktok-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    padding: 10px 25px 30px 25px;
  }

  /* Ocultar scrollbar pero mantener funcionalidad */
  .todo-deporte__tiktok-slider::-webkit-scrollbar {
    display: none;
  }

  .todo-deporte__tiktok-item {
    flex: 0 0 auto;
    width: min(100%, 380px);
    scroll-snap-align: center;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s ease;
    background: transparent;
  }

  .todo-deporte__tiktok-item:hover {
    transform: scale(1);
  }

  /* Ajuste específico para TikTok embeds */
  .todo-deporte__tiktok-item .tiktok-embed {
    border: none !important;
    margin: 0 !important;
    max-width: 100% !important;
    min-width: 100% !important;
  }

  /* Estilos para la info debajo del video */
  .todo-deporte__tiktok-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    padding: 8px 12px;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    text-align: left;
  }

  .todo-deporte__tiktok-username {
    color: white;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    margin: 0;
  }

  .todo-deporte__tiktok-caption {
    color: rgba(255, 255, 255, 0.8);
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.8rem;
    margin: 2px 0 0 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* ----------------- CONTROLES DEL CARRUSEL ----------------- */
  .todo-deporte__tiktok-control {
    background: #FFE85A;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #01C063;
    font-size: 1.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  }

  .todo-deporte__tiktok-prev {
    left: 25px;
  }

  .todo-deporte__tiktok-next {
    right: 25px;
  }

  .todo-deporte__tiktok-control:hover {
    background: #01C063;
    color: #FFE85A;
    transform: translateY(-50%) scale(1.1);
  }

  .control-arrow {
    font-weight: bold;
  }
  
  /* Contenido principal */
  .todo-deporte__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
  }
  
  @media (max-width: 768px) {
    .todo-deporte__content {
      grid-template-columns: 1fr;
    }
  }
  
  /* Columna de texto */
  .todo-deporte__text-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  
  .todo-deporte__text {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.2rem;
    line-height: 1.5;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.1);
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid #FFE85A;
  }
  
  .todo-deporte__text strong {
    color: #FFE85A;
  }
  
  /* Columna de imagen */
  .todo-deporte__image-column {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .todo-deporte__image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
  }
  
  .todo-deporte__image:hover {
    transform: scale(1.03);
  }
  
  /* Características */
  .todo-deporte__features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
  }
  
  .todo-deporte__feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #74E525 0%, #008F47 100%);
    border-radius: 12px;
    color: white;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .todo-deporte__feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
  }
  
  .todo-deporte__feature-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
  }
  
  .todo-deporte__feature-title {
    font-family: 'Anton', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #FFE85A;
  }
  
  .todo-deporte__feature-text {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1rem;
  }
  
  /* CTA */
  .todo-deporte__cta-container {
    text-align: center;
    margin-top: 2.5rem;
    width: 100%;
    max-width: 1200px;
    padding: 0 2rem;
    align-self: center;
  }
  
  .todo-deporte__cta {
    display: inline-block;
    font-family: 'Anton', sans-serif;
    font-size: 1.2rem;
    text-transform: uppercase;
    text-decoration: none;
    color: #01C063;
    background-color: #FFE85A;
    padding: 15px 30px;
    border-radius: 50px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    position: relative;
    overflow: hidden;
  }
  
  .todo-deporte__cta::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(135deg, rgba(1, 192, 99, 0.3) 0%, rgba(1, 192, 99, 0) 50%, rgba(1, 192, 99, 0.3) 100%);
    transform: rotate(45deg);
    animation: cta-shine 3s infinite;
    pointer-events: none;
  }
  
  .todo-deporte__cta:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.3);
    background-color: #fff;
  }
  
  @keyframes cta-shine {
    0% {
      left: -50%;
    }
    100% {
      left: 150%;
    }
  }
  

  
  /* Responsividad */
  @media (max-width: 992px) {
    .todo-deporte__logo {
      max-width: 250px;
    }
    
    .todo-deporte__features {
      grid-template-columns: repeat(2, 1fr);
    }

    .todo-deporte__tiktok-prev {
      left: 20px;
    }

    .todo-deporte__tiktok-next {
      right: 20px;
    }

    .todo-deporte__tiktok-control {
      width: 50px;
      height: 50px;
    }
    
    /* Ajustes para conductor */
    .todo-deporte__conductor-text {
      font-size: 1rem;
    }
    
    /* Ajustes para sección de clubs */
    .todo-deporte__club-title {
      font-size: 1.8rem;
    }
    
    .todo-deporte__club-subtitle {
      font-size: 1.2rem;
    }
  }
  
  @media (max-width: 768px) {
    .todo-deporte {
      padding: 40px 15px;
    }
    
    .todo-deporte__logo {
      max-width: 200px;
    }
    
    .todo-deporte__subtitle {
      font-size: 1.2rem;
    }
    
    .todo-deporte__content {
      grid-template-columns: 1fr;
    }
    
    .todo-deporte__image-column {
      order: -1;
    }
    
    .todo-deporte__features {
      grid-template-columns: 1fr;
    }

    .todo-deporte__tiktok-slider {
      padding: 10px 15px 30px 15px;
    }

    .todo-deporte__tiktok-prev {
      left: 15px;
    }

    .todo-deporte__tiktok-next {
      right: 15px;
    }

    .todo-deporte__tiktok-control {
      width: 40px;
      height: 40px;
      font-size: 1.4rem;
    }
    
    /* Ajustes para conductor */
    .todo-deporte__conductor {
      padding: 10px 20px;
      gap: 10px;
    }
    
    .todo-deporte__conductor-text {
      font-size: 0.95rem;
    }
    
    /* Ajustes para sección de clubs */
    .todo-deporte__club-section {
      margin: 2rem auto 1.5rem;
      padding: 1.5rem;
    }
    
    .todo-deporte__club-title {
      font-size: 1.6rem;
    }
    
    .todo-deporte__club-subtitle {
      font-size: 1.1rem;
    }
    
    .todo-deporte__club-button {
      padding: 18px 22px;
    }
    
    .todo-deporte__club-action {
      font-size: 1.1rem;
    }
  }
  
  @media (max-width: 480px) {
    .todo-deporte__logo {
      max-width: 180px;
    }
    
    .todo-deporte__subtitle {
      font-size: 1rem;
    }
    
    .todo-deporte__text {
      font-size: 1rem;
    }
    
    .todo-deporte__cta {
      width: 100%;
      padding: 12px 20px;
      font-size: 1rem;
    }

    .todo-deporte__tiktok-slider {
      padding: 10px 10px 30px 10px;
    }
    
    .todo-deporte__tiktok-prev {
      left: 10px;
    }

    .todo-deporte__tiktok-next {
      right: 10px;
    }

    .todo-deporte__tiktok-control {
      width: 35px;
      height: 35px;
      font-size: 1.2rem;
    }
    
    /* Ajustes para conductor */
    .todo-deporte__conductor {
      padding: 8px 16px;
      gap: 8px;
    }
    
    .todo-deporte__conductor-text {
      font-size: 0.9rem;
    }
    
    .todo-deporte__conductor-icon {
      font-size: 1.3rem;
    }
    
    /* Ajustes para sección de clubs */
    .todo-deporte__club-section {
      margin: 1.5rem auto 1rem;
      padding: 1.2rem;
    }
    
    .todo-deporte__club-title {
      font-size: 1.4rem;
    }
    
    .todo-deporte__club-subtitle {
      font-size: 1rem;
    }
    
    .todo-deporte__club-button {
      padding: 15px 20px;
      flex-direction: column;
      gap: 8px;
      text-align: center;
    }
    
    .todo-deporte__club-action {
      font-size: 1rem;
    }
    
    .todo-deporte__club-handle {
      font-size: 0.9rem;
    }
    
    .todo-deporte__club-arrow {
      display: none;
    }
  }
  
  /* ----------------- SECCIÓN INTERACTIVA DE CLUBS ----------------- */
  .todo-deporte__club-section {
    width: 100%;
    max-width: 600px;
    margin: 3rem auto 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 2px solid rgba(255, 232, 90, 0.2);
    text-align: center;
    position: relative;
    overflow: hidden;
  }
  
  .todo-deporte__club-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 232, 90, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
    pointer-events: none;
  }
  
  @keyframes rotate {
    from {
      transform: rotate(0deg);
    }
    to {
      transform: rotate(360deg);
    }
  }
  
  .todo-deporte__club-question {
    position: relative;
    z-index: 2;
    margin-bottom: 1.5rem;
  }
  
  .todo-deporte__club-title {
    font-family: 'Anton', sans-serif;
    font-size: 2rem;
    color: #FFE85A;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
  }
  
  .todo-deporte__club-subtitle {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.3rem;
    color: #fff;
    margin: 0;
    opacity: 0.9;
  }
  
  .todo-deporte__club-interactive {
    position: relative;
    z-index: 2;
  }
  
  .todo-deporte__club-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    padding: 20px 25px;
    background: linear-gradient(135deg, #FFE85A 0%, #FDD835 100%);
    border-radius: 60px;
    text-decoration: none;
    color: #01C063;
    font-weight: 700;
    box-shadow: 0 8px 25px rgba(255, 232, 90, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
  }
  
  .todo-deporte__club-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
  }
  
  .todo-deporte__club-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(255, 232, 90, 0.6);
    background: linear-gradient(135deg, #01C063 0%, #008F47 100%);
    color: #FFE85A;
  }
  
  .todo-deporte__club-button:hover::before {
    left: 100%;
  }
  
  .todo-deporte__club-icon {
    font-size: 1.8rem;
    animation: pulse 2s infinite;
  }
  
  .todo-deporte__club-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
  }
  
  .todo-deporte__club-action {
    font-family: 'Anton', sans-serif;
    font-size: 1.2rem;
    text-transform: uppercase;
    line-height: 1;
  }
  
  .todo-deporte__club-handle {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1rem;
    opacity: 0.8;
    margin-top: 2px;
  }
  
  .todo-deporte__club-arrow {
    font-size: 1.5rem;
    font-weight: bold;
    transition: transform 0.3s ease;
  }
  
  .todo-deporte__club-button:hover .todo-deporte__club-arrow {
    transform: translateX(5px);
  }
  
  @keyframes pulse {
    0%, 100% {
      transform: scale(1);
    }
    50% {
      transform: scale(1.1);
    }
  }
  
  /* Efecto de resplandor para el botón de clubs */
  .todo-deporte__club-button.glow-effect {
    box-shadow: 0 0 20px rgba(255, 232, 90, 0.8), 0 0 40px rgba(255, 232, 90, 0.6), 0 0 60px rgba(255, 232, 90, 0.4);
    animation: glow-pulse 1s ease-in-out;
  }
  
  @keyframes glow-pulse {
    0% {
      box-shadow: 0 8px 25px rgba(255, 232, 90, 0.4);
    }
    50% {
      box-shadow: 0 0 30px rgba(255, 232, 90, 0.8), 0 0 50px rgba(255, 232, 90, 0.6), 0 0 70px rgba(255, 232, 90, 0.4);
    }
    100% {
      box-shadow: 0 8px 25px rgba(255, 232, 90, 0.4);
    }
  }