
  /* ===== ESTILOS GENERALES DE LA PÁGINA ===== */
  body {
    padding-top: 120px;
    /* Más margen para web */
  }

  /* ===== FONDO DE LA SECCIÓN GALERÍA ===== */
  .galeria-section-bg {
    background-color: #254934;
    padding: 100px 0;
    /* Más padding para mejor espaciado */
    margin-top: 0;
  }

  .galeria-section-bg .section-title h2,
  .galeria-section-bg .section-title p {
    color: white;
  }

  .galeria-section-bg .section-title h2 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-size: 2.5rem;
  }

  .galeria-section-bg .section-title p {
    font-size: 1.1rem;
    margin-bottom: 0;
  }

  /* ===== ESTILOS PARA GALERÍA DE IMÁGENES ===== */
  .galeria-principal {
    margin-bottom: 40px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  }

  .galeria-swiper {
    width: 100%;
  }

  .galeria-item {
    position: relative;
    overflow: hidden;
    height: 500px;
  }

  .galeria-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
  }

  .galeria-item:hover img {
    transform: scale(1.05);
  }

  .galeria-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 25px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    font-size: 1.3rem;
    font-weight: 600;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
  }

  .swiper-button-next,
  .swiper-button-prev {
    color: white;
    background: rgba(0, 146, 69, 0.8);
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
  }

  .swiper-button-next:hover,
  .swiper-button-prev:hover {
    background: rgba(0, 146, 69, 1);
    transform: scale(1.1);
  }

  .swiper-button-next:after,
  .swiper-button-prev:after {
    font-size: 22px;
    font-weight: bold;
  }

  .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
  }

  .swiper-pagination-bullet-active {
    background: var(--accent-color);
    width: 14px;
    height: 14px;
  }

  /* Botón Ver Galería */
  .btn-ver-galeria {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-color: #39b54a;
    color: white;
    padding: 15px 35px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  }

  .btn-ver-galeria:hover {
    background-color: #2d8f3a;
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
  }

  .btn-ver-galeria i {
    font-size: 1.3rem;
    transition: transform 0.3s ease;
  }

  .btn-ver-galeria:hover i {
    transform: translateY(3px);
  }

  /* Contenedor de miniaturas con animación */
  .galeria-miniaturas-container {
    overflow: hidden;
    transition: all 0.6s ease;
    max-height: 0;
  }

  .galeria-miniaturas-container.show {
    max-height: 3000px;
  }

  .galeria-miniaturas {
    padding-top: 20px;
  }

  .galeria-miniatura {
    position: relative;
    height: 220px;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  }

  .galeria-miniatura:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    border-color: #39b54a;
  }

  .galeria-miniatura.active {
    border-color: var(--accent-color);
    transform: translateY(-5px);
  }

  .galeria-miniatura img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
  }

  .galeria-miniatura:hover img {
    transform: scale(1.1);
  }

  .galeria-miniatura-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 12px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    font-size: 0.95rem;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
  }

  .galeria-miniatura:hover .galeria-miniatura-caption {
    opacity: 1;
  }

  /* ===== ESTILOS PARA CANAL DE YOUTUBE ===== */
  .youtube-info {
    padding: 35px;
    background-color: var(--surface-color);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    height: 100%;
  }

  .youtube-stats {
    display: flex;
    margin-bottom: 25px;
  }

  .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--heading-color);
  }

  .stat-label {
    font-size: 0.95rem;
    color: var(--default-color);
    opacity: 0.8;
  }

  .btn-youtube-subscribe {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-color: #FF0000;
    color: white;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
  }

  .btn-youtube-subscribe:hover {
    background-color: #CC0000;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 0, 0, 0.2);
    color: white;
    text-decoration: none;
  }

  .youtube-featured-video {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  }

  .youtube-video-card {
    background-color: var(--surface-color);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
  }

  .youtube-video-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  }

  .video-thumbnail {
    position: relative;
    display: block;
    overflow: hidden;
  }

  .video-thumbnail img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    transition: transform 0.5s ease;
  }

  .video-thumbnail:hover img {
    transform: scale(1.08);
  }

  .play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 3.5rem;
    opacity: 0.9;
    transition: all 0.3s ease;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  }

  .video-thumbnail:hover .play-button {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.15);
  }

  .video-info {
    padding: 18px;
  }

  .video-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .video-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--default-color);
    opacity: 0.7;
    margin-bottom: 8px;
  }

  .video-description {
    font-size: 0.9rem;
    color: var(--default-color);
    opacity: 0.8;
    margin-top: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
  }

  .btn-ver-mas {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--accent-color);
    color: white;
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
  }

  .btn-ver-mas:hover {
    background-color: color-mix(in srgb, var(--accent-color), black 15%);
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
    color: white;
    text-decoration: none;
  }

  .btn-ver-mas i {
    transition: transform 0.3s ease;
  }

  .btn-ver-mas:hover i {
    transform: translateX(5px);
  }

  /* ===== ESTILOS PARA BANNER DEL CANAL ===== */
  .youtube-channel-banner {
    margin-bottom: 50px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  }

  .banner-image-custom {
    height: 220px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    background-color: #254934;
  }

  .banner-overlay-custom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.2));
    padding: 25px 0;
  }

  .channel-avatar {
    width: 90px;
    height: 90px;
    margin-bottom: 15px;
  }

  .channel-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  }

  .channel-info-overlay {
    color: white;
  }

  .channel-title {
    color: white;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
  }

  .channel-handle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 10px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  }

  .channel-stats-inline {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  }

  .channel-stats-inline span {
    margin-right: 10px;
  }

  .btn-youtube-subscribe-banner {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #FF0000;
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
  }

  .btn-youtube-subscribe-banner:hover {
    background-color: #CC0000;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.4);
    color: white;
    text-decoration: none;
  }

  .youtube-info-detailed {
    padding: 35px;
    background-color: var(--surface-color);
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    height: 100%;
  }

  .youtube-info-detailed h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
  }

  .stat-item-detailed {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
  }

  .stat-item-detailed:hover {
    background: rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
  }

  .stat-item-detailed .stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--heading-color);
  }

  .stat-item-detailed .stat-label {
    font-size: 0.9rem;
    color: var(--default-color);
    opacity: 0.8;
    margin-top: 5px;
  }

  /* Banner de respaldo con gradiente */
  .banner-fallback {
    background: linear-gradient(135deg, #254934 0%, #39b54a 100%);
    height: 220px;
    position: relative;
  }

  .banner-pattern {
    background-image:
      radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
      radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
      radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  }

  /* Mejorar el avatar con respaldo SVG */
  .channel-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    background-color: #39b54a;
  }

  /* Badge de estado de API */
  .api-status-badge {
    margin-top: 5px;
  }

  .api-status-badge small {
    background-color: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
  }

  /* Responsive para banner de respaldo */
  @media (max-width: 768px) {
    .banner-fallback {
      height: 160px;
    }
  }

  @media (max-width: 576px) {
    .banner-fallback {
      height: 140px;
    }
  }

  /* ===== RESPONSIVE MEJORADO ===== */
  @media (max-width: 992px) {
    body {
      padding-top: 120px;
    }

    .galeria-item {
      height: 400px;
    }

    .galeria-miniatura {
      height: 180px;
    }

    .youtube-info {
      margin-bottom: 30px;
    }

    .banner-image-custom {
      height: 180px;
    }

    .channel-avatar {
      width: 70px;
      height: 70px;
      margin-bottom: 10px;
      flex-shrink: 0;
      /* Evita que se comprima */
    }

    .channel-title {
      font-size: 1.5rem;
    }
  }

  @media (max-width: 768px) {
    body {
      padding-top: 140px;
    }

    .galeria-item {
      height: 300px;
    }

    .galeria-miniatura {
      height: 150px;
    }

    .stat-number {
      font-size: 1.5rem;
    }

    .youtube-video-card {
      margin-bottom: 20px;
    }

    /* Mejoras específicas para el banner en tablets */
    .banner-image-custom {
      height: 160px;
    }

    .banner-overlay-custom {
      padding: 20px 0;
    }

    .banner-overlay-custom .container {
      padding-left: 20px;
      padding-right: 20px;
    }

    .channel-avatar {
      width: 65px;
      height: 65px;
      margin-bottom: 0;
      margin-right: 15px;
      flex-shrink: 0;
    }

    .channel-info-overlay {
      color: white;
      flex: 1;
      min-width: 0;
    }

    .channel-title {
      font-size: 1.4rem;
      margin-bottom: 5px;
      line-height: 1.2;
    }

    .channel-handle {
      font-size: 0.9rem;
      margin-bottom: 8px;
      opacity: 0.9;
    }

    .channel-stats-inline {
      font-size: 0.85rem;
      opacity: 0.9;
    }

    .btn-youtube-subscribe-banner {
      padding: 10px 18px;
      font-size: 0.85rem;
      flex-shrink: 0;
    }
  }

  @media (max-width: 576px) {
    body {
      padding-top: 160px;
    }

    .galeria-item {
      height: 250px;
    }

    .galeria-caption {
      padding: 15px;
      font-size: 1rem;
    }

    .swiper-button-next,
    .swiper-button-prev {
      width: 40px;
      height: 40px;
    }

    .youtube-stats {
      flex-wrap: wrap;
      justify-content: center;
      gap: 20px;
    }

    .galeria-miniatura {
      height: 120px;
    }

    /* Mejoras específicas para móviles */
    .banner-image-custom {
      height: 140px;
    }

    .banner-overlay-custom {
      padding: 15px 0;
    }

    .banner-overlay-custom .container {
      padding-left: 15px;
      padding-right: 15px;
    }

    .banner-overlay-custom .row {
      align-items: center !important;
      margin: 0;
    }

    .banner-overlay-custom .col-auto:first-child {
      padding-right: 10px;
      padding-left: 0;
    }

    .banner-overlay-custom .col {
      padding-left: 0;
      padding-right: 10px;
      flex: 1;
      min-width: 0;
    }

    .banner-overlay-custom .col-auto:last-child {
      padding-left: 0;
      padding-right: 0;
    }

    .channel-avatar {
      width: 55px;
      height: 55px;
      margin-bottom: 0;
      margin-right: 0;
      flex-shrink: 0;
    }

    .channel-avatar img {
      border: 3px solid white;
    }

    .channel-info-overlay {
      text-align: left;
    }

    .channel-title {
      font-size: 1.2rem;
      margin-bottom: 3px;
      line-height: 1.1;
    }

    .channel-handle {
      font-size: 0.8rem;
      margin-bottom: 5px;
    }

    .channel-stats-inline {
      font-size: 0.75rem;
    }

    .channel-stats-inline span {
      margin-right: 5px;
    }

    .btn-youtube-subscribe-banner {
      padding: 8px 14px;
      font-size: 0.8rem;
      gap: 6px;
    }
  }

  @media (max-width: 480px) {
    body {
      padding-top: 180px;
    }

    .banner-image-custom {
      height: 130px;
    }

    .banner-overlay-custom {
      padding: 12px 0;
    }

    .banner-overlay-custom .container {
      padding-left: 12px;
      padding-right: 12px;
    }

    .channel-avatar {
      width: 50px;
      height: 50px;
    }

    .channel-avatar img {
      border: 2px solid white;
    }

    .channel-title {
      font-size: 1.1rem;
      margin-bottom: 2px;
    }

    .channel-handle {
      font-size: 0.75rem;
      margin-bottom: 4px;
    }

    .channel-stats-inline {
      font-size: 0.7rem;
    }

    .btn-youtube-subscribe-banner {
      padding: 6px 12px;
      font-size: 0.75rem;
      gap: 4px;
    }
  }

  @media (max-width: 400px) {
    body {
      padding-top: 200px;
    }

    .banner-image-custom {
      height: 120px;
    }

    .banner-overlay-custom {
      padding: 10px 0;
    }

    .banner-overlay-custom .container {
      padding-left: 10px;
      padding-right: 10px;
    }

    .channel-avatar {
      width: 45px;
      height: 45px;
    }

    .channel-title {
      font-size: 1rem;
      margin-bottom: 2px;
    }

    .channel-handle {
      font-size: 0.7rem;
      margin-bottom: 3px;
    }

    .channel-stats-inline {
      font-size: 0.65rem;
    }

    .btn-youtube-subscribe-banner {
      padding: 5px 10px;
      font-size: 0.7rem;
      gap: 3px;
    }

    .btn-youtube-subscribe-banner i {
      font-size: 0.8rem;
    }
  }

  /* Asegurar que el avatar siempre mantenga su forma circular */
  .channel-avatar {
    position: relative;
    overflow: hidden;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .channel-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
  }

