/**
 * MODIFICADO: 2026-04-07 - Cursor AI
 * - v1.4.0: banner home, filtros por familia, grid, tags, modal.
 * - Colores: #ffe8bc (crema), #f29021 (naranja), #333 (texto).
 */

/* ============================================================
   BANNER HOME
   ============================================================ */
.ps-mv-section {
  width: 100%;
  box-sizing: border-box;
  padding: 0 0 8px;
}

.ps-mv-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  border-radius: 14px;
  background: linear-gradient(135deg, #fffaf0 0%, #ffe8bc 40%, #fdd07a 100%);
  border: 1px solid rgba(242, 144, 33, 0.2);
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.04),
    0 4px 16px rgba(242, 144, 33, 0.1);
  text-decoration: none !important;
  color: #333 !important;
  transition: box-shadow 0.22s, transform 0.22s;
  overflow: hidden;
  position: relative;
}

.ps-mv-banner::after {
  content: "";
  position: absolute;
  top: -30%;
  right: -10%;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(242, 144, 33, 0.08);
  pointer-events: none;
}

.ps-mv-banner:hover,
.ps-mv-banner:focus-visible {
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.06),
    0 8px 28px rgba(242, 144, 33, 0.18);
  transform: translateY(-2px);
}

.ps-mv-banner__left {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  flex: 1 1 auto;
  z-index: 1;
}

.ps-mv-banner__icon {
  flex-shrink: 0;
  display: flex;
  filter: drop-shadow(0 3px 8px rgba(242, 144, 33, 0.4));
}

.ps-mv-banner__text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.ps-mv-banner__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.3;
}

.ps-mv-banner__sub {
  font-size: 0.85rem;
  color: #555;
  line-height: 1.4;
}

.ps-mv-banner__right {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1;
  background: #f29021;
  color: #fff;
  border-radius: 10px;
  padding: 10px 16px;
  min-width: 56px;
  box-shadow: 0 2px 8px rgba(242, 144, 33, 0.35);
}

.ps-mv-banner__count {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
}

.ps-mv-banner__count-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  margin-top: 2px;
}

/* Responsive banner */
@media (min-width: 768px) {
  .ps-mv-banner {
    padding: 26px 32px;
    gap: 24px;
  }
  .ps-mv-banner__title { font-size: 1.25rem; }
  .ps-mv-banner__sub   { font-size: 0.92rem; }
  .ps-mv-banner__icon svg { width: 48px; height: 48px; }
  .ps-mv-banner__count { font-size: 1.75rem; }
  .ps-mv-banner__right { padding: 12px 20px; }
  .ps-mv-banner::after { width: 240px; height: 240px; }
}

@media (max-width: 480px) {
  .ps-mv-banner {
    padding: 16px 14px;
    gap: 10px;
  }
  .ps-mv-banner__icon svg { width: 34px; height: 34px; }
  .ps-mv-banner__title { font-size: 0.95rem; }
  .ps-mv-banner__sub   { font-size: 0.78rem; }
  .ps-mv-banner__right {
    padding: 8px 12px;
    border-radius: 8px;
    min-width: 46px;
  }
  .ps-mv-banner__count { font-size: 1.2rem; }
  .ps-mv-banner__count-label { font-size: 0.6rem; }
}

/* ============================================================
   PÁGINA DE VÍDEOS — INTRO
   ============================================================ */
.ps-mv-page__intro {
  font-size: 0.95rem;
  color: #666;
  margin: 0 0 24px;
}

/* ============================================================
   FILTROS (PILLS)
   ============================================================ */
.ps-mv-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.ps-mv-filters__btn {
  padding: 7px 16px;
  border: 1px solid #ddd;
  border-radius: 20px;
  background: #fff;
  color: #555;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s;
  white-space: nowrap;
}

.ps-mv-filters__btn:hover {
  border-color: #f29021;
  color: #f29021;
}

.ps-mv-filters__btn--active {
  background: #f29021;
  border-color: #f29021;
  color: #fff;
}

.ps-mv-filters__btn--active:hover {
  background: #e07e10;
  border-color: #e07e10;
  color: #fff;
}

@media (max-width: 480px) {
  .ps-mv-filters {
    gap: 6px;
  }
  .ps-mv-filters__btn {
    padding: 6px 12px;
    font-size: 0.8rem;
  }
}

/* ============================================================
   GRID
   ============================================================ */
.ps-mv-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (min-width: 768px) {
  .ps-mv-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
  }
}

@media (min-width: 1200px) {
  .ps-mv-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }
}

/* ============================================================
   TARJETA
   ============================================================ */
.ps-mv-card {
  cursor: pointer;
}

.ps-mv-card__img {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: #eee;
  aspect-ratio: 16 / 9;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.2s, transform 0.2s;
}

.ps-mv-card:hover .ps-mv-card__img {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.16);
  transform: translateY(-2px);
}

.ps-mv-card__img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.ps-mv-card:hover .ps-mv-card__img img {
  transform: scale(1.04);
}

.ps-mv-card__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e0e0e0, #ccc);
}

.ps-mv-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.12);
  transition: background 0.2s;
}

.ps-mv-card:hover .ps-mv-card__overlay {
  background: rgba(0, 0, 0, 0.35);
}

.ps-mv-card__play {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(242, 144, 33, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s, background 0.2s;
}

.ps-mv-card__play svg { margin-left: 3px; }

.ps-mv-card:hover .ps-mv-card__play {
  background: #f29021;
  transform: scale(1.12);
}

.ps-mv-card__name {
  margin: 8px 0 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
  line-height: 1.3;
}

.ps-mv-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 5px 0 0;
}

.ps-mv-card__tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  background: #fff3e0;
  color: #b36b00;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: capitalize;
}

@media (min-width: 768px) {
  .ps-mv-card__name { font-size: 0.95rem; }
}

.ps-mv-empty {
  color: #888;
  font-size: 0.95rem;
  padding: 24px 0;
}

/* ============================================================
   MODAL
   ============================================================ */
.psmv-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.psmv-modal[hidden] {
  display: none !important;
}

.psmv-modal__bg {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  cursor: pointer;
  animation: psmv-fadein 0.15s ease;
}

@keyframes psmv-fadein {
  from { opacity: 0 }
  to   { opacity: 1 }
}

.psmv-modal__wrap {
  position: relative;
  width: 100%;
  max-width: 860px;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  animation: psmv-slideup 0.2s ease;
}

@keyframes psmv-slideup {
  from { transform: translateY(16px); opacity: 0 }
  to   { transform: translateY(0);    opacity: 1 }
}

.psmv-modal__x {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.psmv-modal__x:hover {
  background: rgba(255, 255, 255, 0.35);
}

.psmv-modal__frame {
  aspect-ratio: 16 / 9;
  width: 100%;
}

.psmv-modal__frame iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}
