/**
 * ═══════════════════════════════════════════════════════════════
 * WELCOME.CSS - Estilos específicos para la página de inicio
 * ═══════════════════════════════════════════════════════════════
 */

/* ═══════════════════════════════════════════════════════════════
   CAROUSEL NAV - Botones de navegación del carrusel de noticias
   ═══════════════════════════════════════════════════════════════ */
.carousel-nav {
  background-color: #4CAF50;
  border: none;
  color: white;
  font-size: 24px;
  padding: 14px 20px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-nav:hover {
  background-color: #45a049;
  transform: scale(1.15);
}

.carousel-arrow-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ═══════════════════════════════════════════════════════════════
   SECTION DIVIDER - Divisores entre secciones
   ═══════════════════════════════════════════════════════════════ */
.section-divider {
  position: relative;
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  padding: 0;
  overflow: visible;
  z-index: 10;
}

.divider__wave {
  display: block;
  width: 100%;
  height: 40px;
}

.divider__wave svg {
  display: block;
  width: 100%;
  height: 100%;
}

.divider__content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 20;
}

.divider__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 20px rgba(46, 125, 50, .18);
  color: #2e7d32;
  font-size: 1.3rem;
  animation: pulse-leaf 2.5s ease-in-out infinite;
}

@keyframes pulse-leaf {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 4px 20px rgba(46, 125, 50, .18);
  }
  50% {
    transform: scale(1.08);
    box-shadow: 0 6px 28px rgba(46, 125, 50, .28);
  }
}

/* ═══════════════════════════════════════════════════════════════
   VIDEOTECA - Sección de videos
   ═══════════════════════════════════════════════════════════════ */

/* Reset Scope */
.vtk *,
.vtk *::before,
.vtk *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.vtk {
  --g1: #2e7d32;
  --g2: #43a047;
  --g3: #66bb6a;
  --ink: #212121;
  --sub: #666;
  --line: #e4e4e4;
  --bg: #fff;
  background: var(--bg);
  padding: 40px 0 50px;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--ink);
}

.vtk__container {
  max-width: 850px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ─── Section Title ─── */
.vtk__top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .55s ease, transform .55s ease;
}

.vtk__top.show {
  opacity: 1;
  transform: none;
}

.vtk__tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--g1);
  margin-bottom: 4px;
}

.vtk__tag i {
  font-size: .4rem;
  animation: vtkDot 2.4s infinite;
}

@keyframes vtkDot {
  0%, 100% { opacity: 1; }
  50% { opacity: .25; }
}

.vtk__h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  font-size: clamp(1.3rem, 2.8vw, 1.8rem);
  line-height: 1.2;
  color: var(--ink);
}

.vtk__h2 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--g1), var(--g3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.vtk__links {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.vtk__pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 40px;
  font-size: .75rem;
  font-weight: 600;
  text-decoration: none;
  transition: all .3s ease;
}

.vtk__pill--solid {
  background: var(--g1);
  color: #fff;
  box-shadow: 0 4px 14px rgba(46, 125, 50, .22);
}

.vtk__pill--solid:hover {
  background: var(--g2);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(46, 125, 50, .28);
  color: #fff;
}

.vtk__pill--ghost {
  border: 1.5px solid var(--line);
  color: var(--ink);
  background: transparent;
}

.vtk__pill--ghost:hover {
  border-color: var(--g2);
  color: var(--g1);
  transform: translateY(-2px);
}

.vtk__live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e53935;
  box-shadow: 0 0 0 2px rgba(229, 57, 53, .2);
  animation: vtkPulse 1.6s infinite;
}

@keyframes vtkPulse {
  0%, 100% { box-shadow: 0 0 0 2px rgba(229, 57, 53, .2); }
  50% { box-shadow: 0 0 0 7px rgba(229, 57, 53, 0); }
}

/* ─── Theater ─── */
.vtk__theater {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 6px 30px rgba(0, 0, 0, .06);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease .08s, transform .6s ease .08s;
}

.vtk__theater.show {
  opacity: 1;
  transform: none;
}

/* Player */
.vtk__screen {
  position: relative;
  background: #0a0a0a;
}

.vtk__screen-ratio {
  padding-top: 56.25%;
  position: relative;
}

.vtk__screen-ratio iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.vtk__screen-ratio.ld::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 32px;
  height: 32px;
  margin: -16px 0 0 -16px;
  border: 3px solid rgba(255, 255, 255, .15);
  border-top-color: var(--g3);
  border-radius: 50%;
  animation: vtkSp .65s linear infinite;
}

@keyframes vtkSp {
  to { transform: rotate(360deg); }
}

/* Info strip */
.vtk__info {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 20px;
  background: #fafafa;
  border-top: 1px solid var(--line);
}

.vtk__yt-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  flex-shrink: 0;
  background: #ff0000;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: .75rem;
}

.vtk__info-title {
  flex: 1;
  min-width: 0;
  font-weight: 700;
  font-size: .88rem;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vtk__info-badge {
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--g1);
  padding: 4px 12px;
  border-radius: 30px;
  background: rgba(46, 125, 50, .08);
  flex-shrink: 0;
}

/* ─── Carousel Row ─── */
.vtk__carousel {
  position: relative;
  padding: 12px 16px 14px;
  background: var(--bg);
  border-top: 1px solid var(--line);
}

.vtk__carousel-label {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--sub);
  margin-bottom: 10px;
}

.vtk__track-wrap {
  overflow: hidden;
  position: relative;
}

.vtk__track {
  display: flex;
  gap: 14px;
  transition: transform .45s cubic-bezier(.4, 0, .2, 1);
  will-change: transform;
}

.vtk__card {
  flex: 0 0 140px;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  background: #f5f5f5;
  border: 2px solid transparent;
  transition: border-color .25s, transform .3s, box-shadow .3s;
}

.vtk__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .1);
}

.vtk__card.on {
  border-color: var(--g1);
  box-shadow: 0 0 0 3px rgba(46, 125, 50, .12);
}

.vtk__card-img {
  aspect-ratio: 16/9;
  overflow: hidden;
  position: relative;
}

.vtk__card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}

.vtk__card:hover .vtk__card-img img {
  transform: scale(1.08);
}

.vtk__card-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .25);
  opacity: 0;
  transition: opacity .25s;
}

.vtk__card-play i {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .6rem;
  padding-left: 2px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
}

.vtk__card:hover .vtk__card-play {
  opacity: 1;
}

.vtk__card.on .vtk__card-play {
  opacity: 1;
  background: rgba(46, 125, 50, .35);
}

.vtk__card.on .vtk__card-play i {
  background: var(--g1);
  color: #fff;
}

.vtk__card-name {
  padding: 6px 8px;
  font-size: .7rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vtk__card.on .vtk__card-name {
  color: var(--g1);
}

/* Arrows */
.vtk__arr {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: #fff;
  color: var(--ink);
  font-size: .8rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .12);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  transition: background .2s, color .2s, opacity .2s;
  opacity: 0;
  pointer-events: none;
}

.vtk__carousel:hover .vtk__arr {
  opacity: 1;
  pointer-events: auto;
}

.vtk__arr:hover {
  background: var(--g1);
  color: #fff;
}

.vtk__arr--l {
  left: 6px;
}

.vtk__arr--r {
  right: 6px;
}

.vtk__arr[disabled] {
  opacity: 0 !important;
  pointer-events: none;
}

/* ─── Responsive ─── */
@media (max-width: 700px) {
  .vtk {
    padding: 32px 0 40px;
  }
  .vtk__top {
    flex-direction: column;
    align-items: flex-start;
  }
  .vtk__card {
    flex: 0 0 120px;
  }
  .vtk__info {
    flex-wrap: wrap;
  }
}

@media (max-width: 440px) {
  .vtk__card {
    flex: 0 0 100px;
  }
  .vtk__card-name {
    font-size: .65rem;
    padding: 5px 6px;
  }
}
