/****************************************
 * PSYCOPYME · CSS OPTIMIZADO
 * NAV PREMIUM + MASTERSTUDY + EMBEDS
 * SIN CAMBIAR TAMAÑOS
 ****************************************/


/* ========================================
   1) MENÚ INFERIOR MÓVIL · TECH / TRUST
======================================== */
.menu-inferior-movil{
  position: fixed !important;
  inset: auto 0 0 0 !important;
  z-index: 2147483647 !important;

  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 4px;

  padding: 10px 6px calc(10px + env(safe-area-inset-bottom));
  overflow: hidden;

  background:
    linear-gradient(
      135deg,
      #020b3a 0%,
      #071a74 30%,
      #0b3fb8 62%,
      #1698ff 100%
    );
  background-size: 280% 280%;
  animation: ppGradientFlow 10s ease-in-out infinite;

  border-top: 1px solid rgba(255,255,255,.14);

  box-shadow:
    0 -16px 34px rgba(0,0,0,.38),
    0 -1px 0 rgba(255,255,255,.05) inset,
    0 0 22px rgba(34,139,255,.14);

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  isolation: isolate;
}

/* glow / glass */
.menu-inferior-movil::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:1 !important;
  pointer-events:none;
  mix-blend-mode:screen;

  background:
    radial-gradient(700px 180px at 8% 0%, rgba(255,255,255,.14), transparent 58%),
    radial-gradient(700px 180px at 100% 100%, rgba(56,189,248,.24), transparent 56%),
    radial-gradient(500px 140px at 50% 120%, rgba(59,130,246,.18), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(0,0,0,.10));
}

/* línea superior */
.menu-inferior-movil::after{
  content:"";
  position:absolute;
  left:10px;
  right:10px;
  top:0;
  height:1px;
  z-index:1 !important;
  pointer-events:none;

  background: linear-gradient(
    90deg,
    transparent,
    rgba(147,197,253,.80),
    rgba(56,189,248,.95),
    transparent
  );
}

/* enlaces */
.menu-inferior-movil a{
  position: relative;
  z-index: 2 !important;

  flex: 1 1 0;
  min-width: 60px;

  text-align: center;
  text-decoration: none !important;
  color: rgba(255,255,255,.95) !important;

  font-size: 11px;
  line-height: 1.2;
  font-weight: 600;
  opacity: .96;

  transition:
    transform .18s ease,
    opacity .18s ease,
    filter .18s ease,
    color .18s ease;
}

.menu-inferior-movil a span{
  display:block;
  position: relative;
  z-index: 2 !important;

  font-size:20px;
  margin-bottom:4px;

  transition: transform .2s ease, filter .2s ease;

  filter:
    drop-shadow(0 2px 8px rgba(0,0,0,.34))
    drop-shadow(0 0 8px rgba(59,130,246,.18));
}

.menu-inferior-movil i{
  position: relative;
  z-index: 2 !important;
}

.menu-inferior-movil a:hover,
.menu-inferior-movil a:focus{
  transform: translateY(-2px);
  opacity:1;
  color:#ffffff !important;
  filter:brightness(1.08);
}

.menu-inferior-movil a:hover span,
.menu-inferior-movil a:focus span{
  transform:scale(1.08);
}

.menu-inferior-movil a.active{
  opacity:1;
  color:#ffffff !important;
}

.menu-inferior-movil a.active span{
  filter:
    drop-shadow(0 2px 10px rgba(0,0,0,.40))
    drop-shadow(0 0 12px rgba(125,211,252,.40))
    drop-shadow(0 0 18px rgba(37,99,235,.20));
}

@keyframes ppGradientFlow{
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@media (prefers-reduced-motion: reduce){
  .menu-inferior-movil{
    animation:none;
    background-size:100% 100%;
  }
}

@media (min-width:1025px){
  .menu-inferior-movil{
    display:none;
  }
}

@media (max-width:1024px){
  body{
    padding-bottom: 92px !important;
  }
}


/* ========================================
   2) MASTERSTUDY · TOPBAR MODERN
======================================== */
body.single-stm-courses .masterstudy-single-course-modern__topbar:before{
  background: linear-gradient(
    135deg,
    #1a0f3d 0%,
    #3c0d75 50%,
    #e0b84c 100%
  ) !important;
}


/* ========================================
   3) MASTERSTUDY · BREADCRUMBS / HEADER SPACING
======================================== */

/* Ocultar breadcrumbs / pagetitle */
body.single-stm-courses #breadcrumb-section,
body.single-stm-courses .breadcrumb-area,
body.single-stm-courses .dt__pagetitle{
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  overflow: hidden !important;

  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;

  background: transparent !important;
  box-shadow: none !important;
}

/* Quitar contenido interno */
body.single-stm-courses #breadcrumb-section *,
body.single-stm-courses .breadcrumb-area *,
body.single-stm-courses .dt__pagetitle *{
  display: none !important;
}

/* Evita que el contenido quede debajo del header */
body.single-stm-courses .site-content,
body.single-stm-courses .stm-lms-wrapper{
  padding-top:150px !important;
}

/* Evita dobles espacios */
body.single-stm-courses .masterstudy-single-course,
body.single-stm-courses .masterstudy-single-course__main,
body.single-stm-courses .masterstudy-single-course-whole,
body.single-stm-courses .masterstudy-single-course-wrapper,
body.single-stm-courses main.site-main,
body.single-stm-courses .site-main{
  margin-top:0 !important;
}

@media (max-width:1024px){
  body.single-stm-courses .site-content,
  body.single-stm-courses .stm-lms-wrapper{
    padding-top:60px !important;
  }
}


/* ========================================
   4) EMBEDS GENERALES · MASTERSTUDY
======================================== */

/* Evitar scroll / recorte dentro del reproductor */
.masterstudy-course-player,
.masterstudy-course-player iframe,
.masterstudy-course-player .course-content,
.masterstudy-course-player .course-content__inner{
  overflow: visible !important;
  max-height: none !important;
  height: auto !important;
}


/* ========================================
   5) GOOGLE FORMS
======================================== */
iframe[src*="docs.google.com/forms"]{
  width:100% !important;
  max-width:100% !important;
  min-height:4000px !important;
  border:0 !important;
  display:block !important;
}

/* ========================================
   LOOKER STUDIO · PÁGINAS NORMALES
======================================== */
iframe[src*="lookerstudio.google.com"]{
  width:100% !important;
  max-width:100% !important;
  min-height:700px !important;
  height:700px !important;
  border:0 !important;
  display:block !important;
}

/* ========================================
   LOOKER STUDIO · MASTERSTUDY
======================================== */
.masterstudy-course-player iframe[src*="lookerstudio.google.com"],
body.single-stm-courses iframe[src*="lookerstudio.google.com"]{
  width:100% !important;
  max-width:100% !important;
  min-height:3000px !important;
  height:3000px !important;
  border:0 !important;
  display:block !important;
}

/* ========================================
   7) GOOGLE SHEETS
======================================== */
iframe[src*="docs.google.com/spreadsheets"]{
  width: 100% !important;
  max-width: 100% !important;
  min-height: 1200px !important;
  height: 1200px !important;
  border: 0 !important;
  display: block !important;
}

.masterstudy-course-player iframe[src*="docs.google.com/spreadsheets"],
.masterstudy-course-player iframe[src*="/spreadsheets/"]{
  width: 100% !important;
  min-height: 1200px !important;
  height: 1200px !important;
  max-height: none !important;
  display: block !important;
}


/* ========================================
   8) YOUTUBE EMBEDS · PÁGINAS NORMALES
======================================== */
iframe[src*="youtube.com"],
iframe[src*="youtu.be"]{
  width: 100% !important;
  height: auto !important;
  min-height: unset !important;
  max-height: none !important;
  aspect-ratio: 16 / 9 !important;
  display: block !important;
}

.wp-block-embed__wrapper,
.wp-block-embed-youtube,
.wp-video,
.video-wrapper,
.responsive-video,
.fluid-width-video-wrapper{
  height: auto !important;
  min-height: unset !important;
  max-height: none !important;
  overflow: visible !important;
}

.wp-block-embed__wrapper iframe,
.wp-block-embed-youtube iframe,
.video-wrapper iframe,
.responsive-video iframe,
.fluid-width-video-wrapper iframe{
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 9 !important;
  display: block !important;
}


/* ========================================
   9) COMPRA · TEXTOS DEL DROPDOWN
======================================== */

/* Ocultar texto original */
.masterstudy-buy-button-dropdown__head-title{
  font-size: 0 !important;
  line-height: 0 !important;
}

/* Primer item */
.masterstudy-buy-button-dropdown > div:first-child .masterstudy-buy-button-dropdown__head-title::after{
  content: "Compra individual";
  display: inline-block;
  font-size: 16px;
  line-height: 1.3;
  font-weight: 500;
  color: #0f172a;
}

/* Último item */
.masterstudy-buy-button-dropdown > div:last-child .masterstudy-buy-button-dropdown__head-title::after{
  content: "Compra grupal";
  display: inline-block;
  font-size: 16px;
  line-height: 1.3;
  font-weight: 500;
  color: #0f172a;
}


/* ========================================
   10) TOP HEADER BLANCO · SOLO DESKTOP
======================================== */
@media (min-width:1025px){
  .header-widget .av-column-6,
  .top-header .av-column-6,
  .header-top .av-column-6,
  .above-header .av-column-6{
    background:#ffffff !important;
  }

  .header-widget .nav-link,
  .header-widget .contact-info,
  .header-widget .contact-info .title,
  .header-widget .nav-link i,
  .header-widget .contact-icon i{
    color:#111827 !important;
  }
}


/* ========================================
   11) RATINGS
======================================== */

/* Ocultar rating cuando no hay estrellas llenas */
.masterstudy-single-course-rating:not(:has(.masterstudy-single-course-rating__star_filled)){
  display:none;
}

/* Ocultar texto "X valoraciones" */
.masterstudy-single-course-rating__quantity{
  display:none !important;
}


/* ========================================
   12) TOPBAR TIMELESS · TEXTO Y FONDO
======================================== */

/* Texto blanco + sombra */
body.single-stm-courses .masterstudy-single-course-timeless__topbar h1,
body.single-stm-courses .masterstudy-single-course-timeless__topbar h2,
body.single-stm-courses .masterstudy-single-course-timeless__topbar span,
body.single-stm-courses .masterstudy-single-course-timeless__topbar div,
body.single-stm-courses .masterstudy-single-course-timeless__topbar p,
body.single-stm-courses .masterstudy-single-course-timeless__topbar a{
  color: #ffffff !important;
  text-shadow: 0px 2px 5px rgba(0, 0, 0, 0.7) !important;
}

/* Hover dorado */
body.single-stm-courses .masterstudy-single-course-timeless__topbar a:hover{
  color: #D4AF37 !important;
}

/* Fondo elegante */
body.single-stm-courses .masterstudy-single-course-timeless__topbar:before{
  background:
    linear-gradient(105deg, transparent 25%, rgba(212, 175, 55, 0.4) 30%, rgba(255, 215, 0, 0.9) 35%, rgba(212, 175, 55, 0.4) 40%, transparent 45%),
    radial-gradient(circle at 90% 10%, rgba(255, 204, 0, 0.3) 0%, transparent 40%),
    linear-gradient(135deg, #002B5C 0%, #000B1A 100%) !important;
}
