/**
 * MODIFICADO: 2026-04-08 - Cursor AI
 * - v1.4.4: dos columnas; derecha crema (no blanco) para que el alpha del PNG
 *   no se vea como “fondo blanco”.
 */

/**
 * MODIFICADO: 2026-04-14 - Cursor AI
 * - Home (sección .ps-mv-section--home-premium): desktop 776×415, fondo tejido,
 *   icono play en CSS, tipografía Lora; móvil conserva el bloque naranja actual.
 * - Hoja sustitutiva de front.css para pruebas con el PHP -cursor (misma URL en producción tras renombrado).
 */

/**
 * MODIFICADO: 2026-04-14 - Cursor AI
 * - Alto del banner desktop fijado a 415px (ancho 776px) para no consumir tanto scroll en la home.
 * - Imagen de fondo renovada (PNG horizontal); posición del fondo pensada para la zona más limpia a la izquierda.
 */

/**
 * MODIFICADO: 2026-04-14 - Cursor AI
 * - Ajuste a la maqueta banner_1: el CTA va centrado dentro de la mitad izquierda (no en todo el ancho ni pegado al borde).
 * - Línea bajo el título al ancho del propio título; play más “cristal” crema; proporciones pensadas para 415/776 respecto al cuadrado.
 */

@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,600;0,700;1,400&display=swap');

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

/**
 * MODIFICADO: 2026-04-14 - Cursor AI
 * - Eliminada la regla #index .container:has(...) con padding-inline 30/45px: el tema ya aplica sangría
 *   en niveles superiores; sumar otro gutter encogía el área útil y desplazaba el banner hacia la derecha.
 */

/* ============================================================
   BANNER — BASE (mobile-first)
   ============================================================ */
.ps-mv-banner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 200px;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none !important;
  color: #fff !important;
  background: linear-gradient(135deg, #f29021 0%, #ffc157 60%, #fdd07a 100%);
  border: 1px solid rgba(242, 144, 33, 0.35);
  transition: box-shadow 0.22s, transform 0.22s;
  box-shadow: 0 2px 12px rgba(242, 144, 33, 0.12);
}

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

/* ── Solo mobile: imagen con mix-blend-mode:multiply (blanco → transparente sobre naranja) ── */
.ps-mv-banner__bg-mobile {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-color: transparent;
  background-size: 100% auto;
  background-position: center center;
  background-repeat: no-repeat;
  mix-blend-mode: multiply;
}

/* Fondo fotográfico desktop (banda); oculto en móvil */
/* MODIFICADO: 2026-04-16 - Cursor AI
 * - Transición para zoom suave del fondo al hacer hover en desktop.
 */
.ps-mv-banner__desktop-bg {
  display: none;
  transition: transform 0.4s ease;
}

.ps-mv-banner__media {
  display: none;
}

.ps-mv-banner__img {
  display: block;
}

/* ── Contenido: icono play (CSS) → título → subtítulo ── */
.ps-mv-banner__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  flex: 1 1 auto;
  gap: 6px;
  padding: 24px 20px;
  width: 100%;
  box-sizing: border-box;
}

/**
 * MODIFICADO: 2026-04-14 - Cursor AI
 * - Botón play a anillos y triángulo CSS (sin SVG), efecto cristal suave.
 */
.ps-mv-banner__play {
  position: relative;
  flex-shrink: 0;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #f39200;
  background: linear-gradient(
    165deg,
    rgba(255, 220, 180, 0.55) 0%,
    rgba(255, 170, 90, 0.35) 45%,
    rgba(242, 144, 33, 0.42) 100%
  );
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.45),
    0 4px 18px rgba(0, 0, 0, 0.2);
  margin-bottom: 4px;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.ps-mv-banner__play-triangle {
  display: block;
  width: 18px;
  height: 22px;
  margin-left: 5px;
  background: #f9f7f2;
  clip-path: polygon(0% 10%, 0% 90%, 12% 100%, 100% 50%, 12% 0%);
}

.ps-mv-banner__title {
  font-family: 'Lora', Georgia, 'Times New Roman', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
  margin: 0;
}

.ps-mv-banner__sub {
  display: inline-block;
  max-width: 100%;
  background: rgba(35, 30, 28, 0.82);
  color: #fff;
  font-family: 'Lora', Georgia, 'Times New Roman', serif;
  font-size: 0.8rem;
  line-height: 1.4;
  padding: 6px 10px;
  border-radius: 4px;
}

/* ============================================================
   BANNER — DESKTOP (≥ 768px): maqueta Bloque 9 (776 × 415)
   ============================================================ */
@media (min-width: 768px) {
  /**
   * MODIFICADO: 2026-04-14 - Cursor AI
   * - Alineación fina con el carrusel de destacados: padding-inline 10px en la sección (valor comprobado
   *   visualmente). No usar el gutter grande del tema sobre el .container del módulo (p. ej. 45px): duplicaba
   *   la sangría y corría el bloque a la derecha.
   * - Solo #index y ≥768px: en móvil no aplica; en la página de vídeos del módulo no hay esta sección premium.
   */
  /* MODIFICADO: 2026-04-16 - Cursor AI
   * - Eliminado padding-inline: 10px (sobraba con el nuevo layout float).
   */
  #index .protectsofamodelvideos-home .ps-mv-section.ps-mv-section--home-premium {
    box-sizing: border-box;
  }

  .ps-mv-section--home-premium .ps-mv-banner__bg-mobile {
    display: none;
  }

  .ps-mv-section--home-premium .ps-mv-banner__desktop-bg {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-color: #e8dfd4;
    background-size: cover;
    background-position: left center;
    background-repeat: no-repeat;
  }

  .ps-mv-section--home-premium .ps-mv-banner {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    width: 776px;
    max-width: 100%;
    height: 415px;
    min-height: 415px;
    max-height: 415px;
    margin: 0;
    border-radius: 0;
    border: none;
    background: transparent;
    /* Sombra sin componente negativa en X (evita “mancha” a la izquierda del borde físico) */
    box-shadow: 2px 10px 26px rgba(45, 38, 32, 0.09);
    color: #3a312a !important;
    box-sizing: border-box;
  }

  /* MODIFICADO: 2026-04-16 - Cursor AI
   * - Hover mejorado: elevación -5px, sombra cálida, zoom suave del fondo.
   */
  .ps-mv-section--home-premium .ps-mv-banner:hover,
  .ps-mv-section--home-premium .ps-mv-banner:focus-visible {
    transform: translateY(-5px);
    box-shadow: 0 18px 42px rgba(45, 38, 32, 0.18);
  }
  .ps-mv-section--home-premium .ps-mv-banner:hover .ps-mv-banner__desktop-bg,
  .ps-mv-section--home-premium .ps-mv-banner:focus-visible .ps-mv-banner__desktop-bg {
    transform: scale(1.04);
  }

  /**
   * MODIFICADO: 2026-04-14 - Cursor AI
   * - Columna izquierda ~50% del ancho: bloque centrado en X e Y dentro de esa franja (como maqueta cuadrada), no en todo el banner.
   */
  .ps-mv-section--home-premium .ps-mv-banner__content {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    bottom: auto;
    width: 50%;
    max-width: 388px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    padding: clamp(22px, 4.5vw, 38px) 20px 16px 24px;
    gap: clamp(8px, 1.8vw, 11px);
    background: transparent;
    box-sizing: border-box;
    z-index: 2;
  }

  /**
   * MODIFICADO: 2026-04-14 - Cursor AI
   * - Play más cercano a referencia: relleno crema suave, borde dorado y halo cálido (todo CSS).
   */
  .ps-mv-section--home-premium .ps-mv-banner__play {
    width: clamp(52px, 9.5vw, 58px);
    height: clamp(52px, 9.5vw, 58px);
    min-width: 52px;
    min-height: 52px;
    margin-bottom: 0;
    border: 2px solid #e07a18;
    background: linear-gradient(
      165deg,
      rgba(255, 252, 248, 0.96) 0%,
      rgba(255, 238, 214, 0.88) 42%,
      rgba(255, 214, 170, 0.55) 100%
    );
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.65),
      0 0 22px rgba(242, 144, 33, 0.42),
      0 8px 20px rgba(58, 49, 42, 0.12);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
  }

  .ps-mv-section--home-premium .ps-mv-banner__play-triangle {
    width: clamp(16px, 3.2vw, 20px);
    height: clamp(20px, 4vw, 24px);
    min-width: 16px;
    min-height: 20px;
    margin-left: 5px;
    background: #ffffff;
    clip-path: polygon(0% 10%, 0% 90%, 12% 100%, 100% 50%, 12% 0%);
  }

  .ps-mv-section--home-premium .ps-mv-banner__title {
    display: inline-block;
    max-width: 100%;
    /* Misma anchura útil que en el cuadrado 776; altura menor → clamp en lugar de escalar todo al 53 %. */
    font-size: clamp(1.7rem, 0.55rem + 2.1vw, 2.15rem);
    font-weight: 700;
    color: #3d3229;
    text-shadow: none;
    position: relative;
    padding-bottom: clamp(8px, 1.2vw, 12px);
    line-height: 1.18;
  }

  .ps-mv-section--home-premium .ps-mv-banner__title::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(
      to right,
      rgba(58, 49, 42, 0),
      rgba(58, 49, 42, 0.32) 18%,
      rgba(58, 49, 42, 0.32) 82%,
      rgba(58, 49, 42, 0)
    );
  }

  .ps-mv-section--home-premium .ps-mv-banner__sub {
    display: block;
    max-width: 17.5em;
    margin: 0;
    padding: 0;
    background: transparent;
    color: rgba(61, 50, 41, 0.82);
    font-size: clamp(0.92rem, 0.78rem + 0.45vw, 1.05rem);
    font-weight: 400;
    line-height: 1.48;
    font-family: 'Lora', Georgia, 'Times New Roman', serif;
  }
}

@media (min-width: 992px) {
  .ps-mv-section--home-premium .ps-mv-banner__title {
    font-size: clamp(1.85rem, 0.65rem + 2.2vw, 2.28rem);
  }

  .ps-mv-section--home-premium .ps-mv-banner__sub {
    font-size: clamp(0.98rem, 0.82rem + 0.45vw, 1.08rem);
  }
}

@media (min-width: 1200px) {
  .ps-mv-section--home-premium .ps-mv-banner__title {
    font-size: clamp(1.95rem, 0.7rem + 2.2vw, 2.38rem);
  }
}

/* ============================================================
   PÁGINA DE VÍDEOS
   ============================================================ */
/* MODIFICADO: 2026-04-16 - Cursor AI
 * - El <p> ha pasado a <h2> en el TPL para semántica correcta.
 * - Se reinician los estilos por defecto del <h2> para que en mobile
 *   siga viéndose igual que antes (pequeño, grisáceo).
 * - En desktop (≥768px) se le da tamaño y peso propios de un heading.
 */
.ps-mv-page__intro {
  font-size: 0.95rem;
  font-weight: 400;
  color: #666;
  margin: 0 0 24px;
  font-family: inherit;
  line-height: 1.4;
}

@media (min-width: 768px) {
  .ps-mv-page__intro {
    font-size: clamp(1.35rem, 0.9rem + 1vw, 1.7rem);
    font-family: 'Lora', Georgia, serif;
    font-weight: 600;
    color: #3d3229;
    margin: 0 0 28px;
    letter-spacing: -0.01em;
  }
}

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

/* MODIFICADO: 2026-04-16 - Cursor AI
 * - Más separación entre filtros y grid en desktop.
 */
@media (min-width: 768px) {
  .ps-mv-filters {
    margin-bottom: 32px;
    gap: 10px;
  }
}

.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;
}

/* MODIFICADO: 2026-04-16 - Cursor AI
 * - Gap aumentado en desktop para que las tarjetas respiren mejor.
 */
@media (min-width: 768px) {
  .ps-mv-grid { grid-template-columns: repeat(3, 1fr); gap: 28px; }
}

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

/* ============================================================
   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;
}

/* MODIFICADO: 2026-04-16 - Cursor AI
 * - Nombre de tarjeta ligeramente más grande en desktop para mejor legibilidad.
 */
@media (min-width: 768px) { .ps-mv-card__name { font-size: 1.05rem; } }

.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;
}

/* MODIFICADO: 2026-04-16 - Cursor AI
 * - Tags ligeramente más grandes y con más padding en desktop.
 */
@media (min-width: 768px) {
  .ps-mv-card__tag {
    font-size: 0.78rem;
    padding: 3px 10px;
  }
}

.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;
}
