/**
 * Hero Slider - Estilos
 */

:root {
  --pm-bg: #EFEEE8;
  --pm-aqua: #00AAAA;
  --pm-dark: #0F2D2D;
}

.pmtv-hero.sv-hero-wrapper {
  position: relative;
  width: 100%;
  min-height: var(--hero-height, 320px);
  overflow: hidden;
  margin-bottom: 26px;
  box-shadow: 0 26px 45px rgba(0,0,0,.08);
  background: #000;
}

@media (max-width: 768px) {
  .pmtv-hero.sv-hero-wrapper {
    margin-bottom: 20px;
  }
}

@media (max-width: 480px) {
  .pmtv-hero.sv-hero-wrapper {
    margin-bottom: 16px;
  }
}

.pmtv-hero .sv-hero-slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.pmtv-hero .sv-hero-slide {
  position: relative;
  width: 100%;
  min-height: var(--hero-height, 320px);
  display: none;
}

.pmtv-hero .sv-hero-slide.active {
  display: block;
}

/* Cuando fijamos la altura vía JS evita saltos al ocultar/mostrar la barra del navegador móvil. */
.pmtv-hero-envivo[style*="--pmtv-envivo-locked-height"] {
  min-height: var(--pmtv-envivo-locked-height);
  height: var(--pmtv-envivo-locked-height);
}

.pmtv-hero-envivo[style*="--pmtv-envivo-locked-height"] .sv-hero-slide,
.pmtv-hero-envivo[style*="--pmtv-envivo-locked-height"] .sv-hero-media {
  min-height: var(--pmtv-envivo-locked-height);
  height: var(--pmtv-envivo-locked-height);
}

.pmtv-hero .sv-hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  background: #000;
}

.pmtv-hero .sv-hero-media video,
.pmtv-hero .sv-hero-media img,
.pmtv-hero .sv-hero-media .sv-hero-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pmtv-envivo-expand {
  position: absolute;
  bottom: 18px;
  right: 18px;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(0,207,210,0.45);
  border-radius: 14px;
  background: rgba(15,45,45,0.4);
  color: #e6ffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  z-index: 6;
  box-shadow: 0 14px 40px rgba(0,0,0,0.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease, opacity 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  letter-spacing: 0.01em;
  opacity: 0.9;
}

.pmtv-envivo-expand:hover {
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 16px 44px rgba(0,0,0,0.38);
  opacity: 1;
  background: rgba(0,207,210,0.16);
  border-color: rgba(0,207,210,0.65);
}

.pmtv-envivo-play-toggle {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 74px;
  height: 74px;
  border-radius: 50%;
  border: 1px solid rgba(230, 255, 255, 0.5);
  background: rgba(0, 0, 0, 0.35);
  color: #e6ffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  cursor: pointer;
  z-index: 7;
  box-shadow: 0 16px 38px rgba(0,0,0,0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
  opacity: 0.95;
  visibility: visible;
}

.pmtv-envivo-play-toggle:hover {
  transform: translate(-50%, -50%) scale(1.03);
  box-shadow: 0 20px 44px rgba(0,0,0,0.5);
  background: rgba(0, 170, 170, 0.24);
  border-color: rgba(0, 170, 170, 0.85);
  opacity: 1;
}

.pmtv-envivo-play-toggle:focus-visible {
  outline: 3px solid rgba(0, 207, 210, 0.9);
  outline-offset: 3px;
  filter: drop-shadow(0 0 12px rgba(0,207,210,0.4));
}

.pmtv-envivo-play-toggle-hidden {
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -50%) scale(0.96);
  pointer-events: none;
}

.pmtv-envivo-play-icon {
  pointer-events: none;
}

.pmtv-envivo-expand:focus-visible {
  outline: 3px solid rgba(0,207,210,0.9);
  outline-offset: 2px;
  filter: drop-shadow(0 0 12px rgba(0,207,210,0.4));
}

.pmtv-expand-icon {
  font-size: 18px;
  line-height: 1;
}

@media (max-width: 768px) {
  .pmtv-envivo-expand {
    bottom: 14px;
    right: 14px;
    width: 44px;
    height: 44px;
    font-size: 17px;
  }
}

@media (max-width: 520px) {
  .pmtv-envivo-expand {
    width: 42px;
    height: 42px;
    justify-content: center;
  }
  .pmtv-expand-icon {
    font-size: 16px;
  }
  .pmtv-envivo-play-toggle {
    width: 64px;
    height: 64px;
    font-size: 24px;
  }
}

/* Overlay para Hero En Vivo */
.pmtv-envivo-overlay {
  position: fixed;
  inset: 0;
  display: none;
  visibility: hidden;
  opacity: 0;
  z-index: 999999;
}

.pmtv-envivo-overlay.open {
  display: block;
  visibility: visible;
  opacity: 1;
}

.pmtv-envivo-overlay .pmtv-video-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.pmtv-envivo-overlay .pmtv-video-shell {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(90vw, 960px);
  max-height: 90vh;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.pmtv-envivo-overlay .pmtv-video-shell:fullscreen,
.pmtv-envivo-overlay .pmtv-video-shell:-webkit-full-screen,
.pmtv-envivo-overlay .pmtv-video-shell:-moz-full-screen {
  width: 100vw;
  height: 100vh;
  max-height: 100vh;
  inset: 0;
  top: 0;
  left: 0;
  transform: none;
  border-radius: 0;
}

.pmtv-envivo-overlay .pmtv-video-player {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
}

.pmtv-envivo-overlay .pmtv-video-player:fullscreen,
.pmtv-envivo-overlay .pmtv-video-player:-webkit-full-screen,
.pmtv-envivo-overlay .pmtv-video-player:-moz-full-screen {
  width: 100vw;
  height: 100vh;
}

.pmtv-envivo-overlay .pmtv-video-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pmtv-envivo-overlay .pmtv-video-close:hover {
  background: rgba(0,0,0,0.8);
}

.pmtv-hero.sv-hero-wrapper::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background:
      linear-gradient(180deg,
          var(--pm-bg, #EFEEE8) 0%,
          transparent 15%,
          transparent 85%,
          var(--pm-bg, #EFEEE8) 100%),
      linear-gradient(90deg,
          var(--pm-bg, #EFEEE8) 0%,
          transparent 12%,
          transparent 88%,
          var(--pm-bg, #EFEEE8) 100%);
  pointer-events: none;
  z-index: 1;
  opacity: var(--hero-overlay-opacity, 1);
}

.pmtv-hero .sv-hero-content {
  position: relative;
  z-index: 2;
  padding: 34px 32px 32px;
  max-width: 540px;
  color: #fff;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: flex-end;
  gap: 8px;
}

@media (max-width: 768px) {
  .pmtv-hero .sv-hero-content {
    padding: 24px 20px 20px;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .pmtv-hero .sv-hero-content {
    padding: 20px 16px 16px;
  }
}

.pmtv-hero .sv-hero-tag {
  display: inline-block;
  background: rgba(15,45,45,.85);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 14px;
  color: #fff;
  text-decoration: none;
  max-width: 260px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  align-self: flex-start;
  width: auto;
}

.pmtv-hero-envivo .sv-hero-actions {
  margin-left: 0;
}

.pmtv-hero-envivo .sv-hero-tag {
  background: var(--envivo-tag-bg, rgba(15,45,45,.85));
  color: var(--envivo-text-color, #fff);
  position: absolute;
  top: 18px;
  left: 18px;
  bottom: auto;
  margin: 0;
  z-index: 6;
}

.pmtv-hero-envivo .sv-hero-title {
  color: var(--envivo-title-color, #fff);
}

.pmtv-hero-envivo .sv-hero-meta span,
.pmtv-hero-envivo .sv-hero-desc,
.pmtv-hero-envivo .sv-hero-desc p {
  color: var(--envivo-text-color, #fff);
}

@media (max-width: 768px) {
  .pmtv-hero-envivo .sv-hero-slide,
  .pmtv-hero-envivo .sv-hero-media {
    aspect-ratio: 16 / 9;
    min-height: auto;
    height: auto;
  }
  .pmtv-hero-envivo .sv-hero-media video,
  .pmtv-hero-envivo .sv-hero-media img {
    object-fit: cover;
  }
  .pmtv-hero-envivo .sv-hero-actions {
    margin-left: 0;
    padding-bottom: 8px;
  }

  .pmtv-hero-envivo .sv-hero-tag {
    left: 14px;
    top: 14px;
  }
}

.pmtv-hero-envivo .sv-hero-content {
  position: absolute;
  inset: 0;
  padding: 34px 32px 32px;
  max-width: 540px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  pointer-events: none;
}

.pmtv-hero-envivo .sv-hero-content > * {
  pointer-events: auto;
}

@media (max-width: 768px) {
  .pmtv-hero-envivo .sv-hero-content {
    padding: 24px 20px 20px;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .pmtv-hero-envivo .sv-hero-content {
    padding: 20px 16px 16px;
  }
}

@media (max-width: 1024px) {
  .pmtv-hero-envivo.sv-hero-wrapper,
  .pmtv-hero-envivo .sv-hero-slide,
  .pmtv-hero-envivo .sv-hero-media {
    min-height: var(--hero-height-tablet, auto);
  }
}

@media (max-width: 768px) {
  .pmtv-hero-envivo.sv-hero-wrapper,
  .pmtv-hero-envivo .sv-hero-slide,
  .pmtv-hero-envivo .sv-hero-media {
    min-height: var(--hero-height-mobile, auto);
    height: auto;
  }
}

.pmtv-hero .sv-hero-title {
  font-size: clamp(30px, 4vw, 40px);
  font-weight: 700;
  margin: 0 0 14px 0;
  text-shadow: 0 4px 16px rgba(0,0,0,.35);
  color: #fff;
  line-height: 1.2;
}

@media (max-width: 768px) {
  .pmtv-hero .sv-hero-title {
    font-size: clamp(24px, 5vw, 32px);
    margin: 0 0 12px 0;
  }
}

@media (max-width: 480px) {
  .pmtv-hero .sv-hero-title {
    font-size: clamp(20px, 6vw, 26px);
    margin: 0 0 10px 0;
  }
}

.pmtv-hero .sv-hero-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
  font-size: 13px;
  text-shadow: 0 2px 14px rgba(0,0,0,.4);
  flex-wrap: wrap;
}

.pmtv-hero .sv-hero-meta > span {
  color: #fff;
}

.pmtv-hero .sv-hero-badge {
  background: rgba(0,0,0,.35);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px;
}

.pmtv-hero .sv-hero-desc {
  font-size: 14px;
  line-height: 1.4;
  margin-bottom: 12px;
  margin-top: 8px;
  text-shadow: 0 2px 12px rgba(0,0,0,.35);
  color: #fff;
}

@media (max-width: 768px) {
  .pmtv-hero .sv-hero-desc {
    font-size: 13px;
    margin-bottom: 14px;
  }
}

@media (max-width: 480px) {
  .pmtv-hero .sv-hero-desc {
    font-size: 12px;
    margin-bottom: 12px;
  }
}

.pmtv-hero .sv-hero-desc p {
  margin: 0;
  color: #fff;
}

.pmtv-hero .sv-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 12px;
  align-self: flex-start;
  margin-left: 4px;
  padding-bottom: 8px;
}

.pmtv-hero .sv-btn-primary {
  background: var(--pm-aqua, #00AAAA);
  border: none;
  color: #fff;
  font-weight: 600;
  padding: 10px 26px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 10px 18px rgba(0,170,170,.35);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform .15s ease, box-shadow .15s ease;
}

.pmtv-hero .sv-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(0,170,170,.4);
  color: #fff;
}

.pmtv-hero .sv-btn-secondary {
  background: rgba(239,238,232,.05);
  border: 1px solid rgba(255,255,255,.35);
  color: #fff;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 999px;
  cursor: pointer;
  backdrop-filter: blur(4px);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background .15s ease, border-color .15s ease;
}

.pmtv-hero .sv-btn-secondary:hover {
  background: rgba(239,238,232,.15);
  border-color: rgba(255,255,255,.5);
  color: #fff;
}

.pmtv-hero .sv-hero-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.pmtv-hero .sv-hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
}

.pmtv-hero .sv-hero-dot:hover {
  background: rgba(255, 255, 255, 0.5);
  transform: scale(1.2);
}

.pmtv-hero .sv-hero-dot.active {
  background: #ffffff;
  transform: scale(1.2);
}

.pmtv-hero .sv-hero-mute {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  backdrop-filter: blur(6px);
}

.pmtv-hero .sv-hero-mute:hover {
  background: rgba(0, 0, 0, 0.7);
  transform: scale(1.1);
}

.pmtv-hero .sv-hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  backdrop-filter: blur(6px);
}

.pmtv-hero .sv-hero-nav:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.1);
}

.pmtv-hero .sv-hero-nav-prev {
  left: 20px;
}

.pmtv-hero .sv-hero-nav-next {
  right: 20px;
}

.pmtv-hero .sv-hero-nav svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 720px) {
  .pmtv-hero.sv-hero-wrapper {
    min-height: 300px;
  }
}

.pmtv-hero .sv-loading,
.pmtv-hero .sv-error {
  padding: 100px;
  text-align: center;
  color: #fff;
}

.sv-loading-skeleton {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 18px;
  align-items: end;
}

.sv-loading-skeleton .sv-load-visual {
  background: linear-gradient(90deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.12) 50%, rgba(255,255,255,0.05) 100%);
  background-size: 200% 100%;
  animation: svShimmer 1.2s ease-in-out infinite;
  height: 220px;
  border-radius: 16px;
}

.sv-loading-skeleton .sv-load-lines {
  display: grid;
  gap: 10px;
}

.sv-loading-skeleton .sv-load-line {
  height: 14px;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.12) 50%, rgba(255,255,255,0.05) 100%);
  background-size: 200% 100%;
  animation: svShimmer 1.2s ease-in-out infinite;
}

.sv-loading-skeleton .sv-load-line.short {
  width: 60%;
}

@keyframes svShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
