/* =========================
   Video Equipo - Nosotros
========================= */

.nosotros-video-equipo {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 84px 0 88px;
  background:
    radial-gradient(circle at 12% 18%, rgba(70, 120, 255, 0.12), transparent 30%),
    radial-gradient(circle at 88% 20%, rgba(209, 116, 255, 0.14), transparent 32%),
    radial-gradient(circle at 52% 92%, rgba(255, 150, 205, 0.16), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f7f8ff 48%, #ffffff 100%);
}

.nosotros-video-equipo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(120deg, transparent 0%, rgba(78, 116, 255, 0.06) 35%, transparent 62%),
    linear-gradient(240deg, transparent 0%, rgba(193, 95, 255, 0.07) 42%, transparent 70%);
  pointer-events: none;
}

.nosotros-video-equipo-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

.nosotros-video-glow,
.nosotros-video-orb {
  position: absolute;
  display: block;
  border-radius: 999px;
  filter: blur(8px);
}

.nosotros-video-glow-one {
  width: 360px;
  height: 360px;
  left: -130px;
  top: 42px;
  background: rgba(62, 107, 255, 0.16);
}

.nosotros-video-glow-two {
  width: 390px;
  height: 390px;
  right: -150px;
  bottom: 18px;
  background: rgba(212, 95, 255, 0.14);
}

.nosotros-video-orb-one {
  width: 92px;
  height: 92px;
  left: 8%;
  bottom: 16%;
  background:
    radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.95), rgba(99, 144, 255, 0.24) 42%, rgba(99, 144, 255, 0.08) 100%);
  box-shadow: 0 24px 80px rgba(65, 91, 255, 0.16);
}

.nosotros-video-orb-two {
  width: 62px;
  height: 62px;
  right: 10%;
  top: 18%;
  background:
    radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.95), rgba(255, 142, 205, 0.24) 42%, rgba(190, 91, 255, 0.08) 100%);
  box-shadow: 0 24px 80px rgba(190, 91, 255, 0.16);
}

.nosotros-video-equipo-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.72fr);
  align-items: center;
  gap: 64px;
}

.nosotros-video-content {
  max-width: 650px;
}

.nosotros-video-content h2 {
  margin: 16px 0 22px;
  color: #11162f;
  font-size: clamp(2.25rem, 3.45vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.06em;
  font-weight: 800;
}

.nosotros-video-content h2 span {
  display: block;
  background: linear-gradient(90deg, #2563ff 0%, #7b3dff 46%, #d95dff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nosotros-video-content p {
  max-width: 575px;
  margin: 0;
  color: rgba(28, 34, 62, 0.72);
  font-size: 0.98rem;
  line-height: 1.76;
}

.nosotros-video-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.nosotros-video-highlights span {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 9px 16px;
  border: 1px solid rgba(91, 121, 255, 0.16);
  border-radius: 999px;
  color: #222a55;
  font-size: 0.86rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 16px 42px rgba(72, 91, 160, 0.08);
  backdrop-filter: blur(14px);
}

.nosotros-video-highlights span::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-120%);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.78),
    transparent
  );
  transition: transform 0.8s ease;
}

.nosotros-video-highlights span:hover::before {
  transform: translateX(120%);
}

.nosotros-video-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.nosotros-video-actions .btn {
  position: relative;
  overflow: hidden;
  font-size: 0.94rem;
}

.nosotros-video-actions .btn-primary {
  border: 0;
  color: #ffffff;
  background: linear-gradient(135deg, #2563ff 0%, #7b3dff 52%, #d95dff 100%);
  box-shadow:
    0 18px 48px rgba(69, 92, 255, 0.26),
    0 8px 22px rgba(198, 78, 255, 0.16);
}

.nosotros-video-actions .btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-115%);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.5),
    transparent
  );
  transition: transform 0.7s ease;
}

.nosotros-video-actions .btn-primary:hover {
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow:
    0 24px 58px rgba(69, 92, 255, 0.32),
    0 12px 28px rgba(198, 78, 255, 0.2);
}

.nosotros-video-actions .btn-primary:hover::before {
  transform: translateX(115%);
}

/* =========================
   Preview / SVG Phone
========================= */

.nosotros-video-preview {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.nosotros-video-preview::before {
  content: "";
  position: absolute;
  width: 330px;
  height: 330px;
  top: 50%;
  left: 50%;
  z-index: -1;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.95), transparent 28%),
    radial-gradient(circle at 50% 50%, rgba(86, 119, 255, 0.24), rgba(216, 92, 255, 0.16) 46%, transparent 72%);
  filter: blur(2px);
}

.nosotros-video-device {
  position: relative;
  width: min(100%, 330px);
  aspect-ratio: 490 / 920;
  margin-inline: auto;
  overflow: visible;
  filter: drop-shadow(0 34px 70px rgba(36, 50, 120, 0.22));
  transition:
    transform 0.35s ease,
    filter 0.35s ease;
}

.nosotros-video-device:hover {
  transform: translateY(-8px) rotate(-1deg);
  filter: drop-shadow(0 44px 90px rgba(36, 50, 120, 0.28));
}

/*
  El SVG tiene un lienzo interno más grande.
  Se escala por alto y se centra para que el marco conserve su forma real.
*/
.nosotros-video-frame {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 4;
  display: block;
  width: auto;
  max-width: none;
  height: 100%;
  transform: translateX(-50%);
  pointer-events: none;
}

/*
  Pantalla real del celular.
  Aquí vive el video MP4 subido a WordPress.
*/
.nosotros-video-embed {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 7.45%;
  width: 70.7%;
  height: 84.4%;
  overflow: hidden;
  border-radius: 34px;
  transform: translateX(-50%);
  background: #101833;
}

.nosotros-video-player {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
  object-position: center center;
  background: #101833;
}

/* 
  Pantalla completa:
  Dentro del celular se mantiene cover para verse premium.
  Al abrir fullscreen, se fuerza contain para que el video vertical se vea completo.
*/
.nosotros-video-player:fullscreen {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  border-radius: 0 !important;
  transform: none !important;
  object-fit: contain !important;
  object-position: center center !important;
  background: #202020 !important;
}

.nosotros-video-player:-webkit-full-screen {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  border-radius: 0 !important;
  transform: none !important;
  object-fit: contain !important;
  object-position: center center !important;
  background: #202020 !important;
}

.nosotros-video-player:-moz-full-screen {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  border-radius: 0 !important;
  transform: none !important;
  object-fit: contain !important;
  object-position: center center !important;
  background: #202020 !important;
}

.nosotros-video-player:-ms-fullscreen {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  border-radius: 0 !important;
  transform: none !important;
  object-fit: contain !important;
  object-position: center center !important;
  background: #202020 !important;
}

/* Fallback por si el navegador manda a pantalla completa el contenedor */
:fullscreen .nosotros-video-player {
  width: 100vw !important;
  height: 100vh !important;
  object-fit: contain !important;
  object-position: center center !important;
  border-radius: 0 !important;
  background: #202020 !important;
}

:-webkit-full-screen .nosotros-video-player {
  width: 100vw !important;
  height: 100vh !important;
  object-fit: contain !important;
  object-position: center center !important;
  border-radius: 0 !important;
  background: #202020 !important;
}

/* Brillo sutil encima del video y debajo del SVG */
.nosotros-video-device::after {
  content: "";
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 7.45%;
  width: 70.7%;
  height: 84.4%;
  border-radius: 34px;
  transform: translateX(-50%);
  pointer-events: none;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.1), transparent 34%),
    linear-gradient(20deg, rgba(255, 255, 255, 0.04), transparent 45%);
}

/* Se ocultan porque el SVG ya trae notch y barra */
.nosotros-video-notch,
.nosotros-video-home-indicator {
  display: none;
}

/* =========================
   Responsive
========================= */

@media (max-width: 1200px) {
  .nosotros-video-content h2 {
    font-size: clamp(2.1rem, 4.2vw, 3.55rem);
  }

  .nosotros-video-content p {
    font-size: 0.96rem;
  }
}

@media (max-width: 980px) {
  .nosotros-video-equipo {
    padding: 82px 0;
  }

  .nosotros-video-equipo-inner {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .nosotros-video-content {
    max-width: 760px;
    text-align: center;
    margin: 0 auto;
  }

  .nosotros-video-content h2 {
    font-size: clamp(2.25rem, 8vw, 3.6rem);
    letter-spacing: -0.055em;
  }

  .nosotros-video-content p {
    margin: 0 auto;
  }

  .nosotros-video-highlights,
  .nosotros-video-actions {
    justify-content: center;
  }

  .nosotros-video-device {
    width: min(100%, 320px);
  }
}

@media (max-width: 640px) {
  .nosotros-video-equipo {
    padding: 68px 0;
  }

  .nosotros-video-content h2 {
    margin-top: 14px;
    font-size: clamp(2rem, 12vw, 3rem);
    letter-spacing: -0.052em;
  }

  .nosotros-video-content p {
    font-size: 0.94rem;
    line-height: 1.7;
  }

  .nosotros-video-highlights {
    gap: 10px;
    margin-top: 24px;
  }

  .nosotros-video-highlights span {
    min-height: 38px;
    padding: 9px 13px;
    font-size: 0.8rem;
  }

  .nosotros-video-actions {
    margin-top: 28px;
  }

  .nosotros-video-actions .btn {
    font-size: 0.9rem;
  }

  .nosotros-video-preview::before {
    width: 270px;
    height: 270px;
  }

  .nosotros-video-device {
    width: min(100%, 290px);
  }

  .nosotros-video-embed,
  .nosotros-video-device::after {
    border-radius: 30px;
  }
}