/* ============================================
   OUTCOMY — Ajustes personalizados
   (este archivo se suma al CSS original, no lo pisa)
   ============================================ */

/* 1) Ocultar seccion "Productos Outcomy" por ahora */
#productos {
  display: none !important;
}

/* 2) Nombre de cada seccion, chiquito y en gris, al costado */
.oc-section-label {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  rotate: 180deg;
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(100, 116, 139, 0.45);
  user-select: none;
  pointer-events: none;
  z-index: 5;
  white-space: nowrap;
}

.oc-section-label--dark {
  color: rgba(148, 163, 184, 0.35);
}

@media (max-width: 767px) {
  .oc-section-label {
    display: none;
  }
}

/* 3) Hero: Comy se arma al scrollear (en el lugar del robot saludando) */
#hero {
  background: #f9f8f9 !important; /* color real del fondo del video */
}

/* En el hero queda UNICAMENTE el video de ensamblaje:
   cualquier otra imagen o video original desaparece siempre */
#hero img {
  display: none !important;
}
#hero video:not(#oc-hero-video) {
  display: none !important;
}
#oc-hero-video {
  display: block !important;
}
/* boton de sonido del video viejo y sombra azul de abajo: fuera */
#hero button[class*="bottom-6"][class*="right-6"] {
  display: none !important;
}
#hero div[class*="blur-2xl"] {
  display: none !important;
}

/* La imagen original de la seccion laboratorio se reemplaza por el video */
#que-hacemos img[src*="solutions"] {
  display: none !important;
}

#oc-solutions-video {
  display: block;
}

#hero.oc-hero-pinned {
  height: 290vh;
  overflow: visible !important; /* necesario para que el contenido quede fijo mientras se arma Comy */
  padding-top: 140px !important; /* contenido mas arriba, mas cerca del header */
}

/* El envoltorio general recorta el eje X con "hidden" y eso rompe el
   fijado (sticky). "clip" recorta igual pero sin romperlo. */
.min-h-screen.overflow-x-hidden {
  overflow-x: clip !important;
  overflow-y: visible !important;
}

/* La pagina queda TOTALMENTE fija desde que entras hasta que Comy
   termina de armarse: el tope coincide con la posicion inicial exacta,
   asi no hay ningun movimiento raro al empezar a scrollear. */
#hero.oc-hero-pinned > div:first-child {
  position: sticky;
  top: 140px; /* mismo valor que el padding: cero movimiento al scrollear */
}

.oc-hero-scrub {
  background: #f9f8f9;
  display: block;
  width: 100%;
  height: auto;
}

/* Efecto lente: centro super enfocado; hacia afuera desenfoque
   gaussiano y fundido casi a blanco */
.oc-hero-fade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 62% 62% at 50% 50%,
              rgba(249, 248, 249, 0) 52%,
              rgba(249, 248, 249, 0.55) 78%,
              rgba(249, 248, 249, 0.96) 100%);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, transparent 42%, black 78%);
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, transparent 42%, black 78%);
}

#oc-intro-hint {
  position: absolute;
  bottom: -46px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #94a3b8;
  transition: opacity 0.4s;
  animation: ocHintBounce 2s ease-in-out infinite;
  pointer-events: none;
  z-index: 50;
}

@keyframes ocHintBounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 6px); }
}

/* 4) Cursor robotito (solo con mouse, no en tactil) */
@media (pointer: fine) {
  /* el puntero comun solo se oculta cuando el robotito ya esta activo */
  html.oc-cursor-on * { cursor: none !important; }
  html.oc-cursor-on input, html.oc-cursor-on textarea, html.oc-cursor-on select { cursor: auto !important; }

  #oc-cursor {
    position: fixed;
    left: 0;
    top: 0;
    width: 52px;
    height: 52px;
    pointer-events: none;
    z-index: 999999;
    will-change: transform;
    transform: translateZ(0);
    contain: strict;
  }

  #oc-cursor img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  #oc-cursor .oc-cur-click { display: none; }
  #oc-cursor.oc-click .oc-cur-normal { display: none; }
  #oc-cursor.oc-click .oc-cur-click { display: block; }

  #oc-cursor.oc-hidden {
    opacity: 0;
  }
}

@media (pointer: coarse) {
  #oc-cursor { display: none; }
}

/* 5) Pantalla de bienvenida estilo videojuego */
#oc-welcome {
  position: fixed;
  inset: 0;
  z-index: 999990;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(249, 248, 249, 0.55);
  transition: opacity 0.6s ease;
  font-family: 'Manrope', sans-serif;
}

/* la pagina de fondo se desenfoca a si misma: mismo efecto visual,
   muchisimo mas liviano para la placa de video */
#root.oc-page-blur {
  filter: blur(16px);
  transition: filter 0.5s ease;
}

#oc-welcome.oc-w-out {
  opacity: 0;
  pointer-events: none;
}

.oc-w-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  padding: 40px;
  text-align: center;
}

.oc-w-comy {
  width: 300px;
  height: auto;
  filter: drop-shadow(0 18px 40px rgba(15, 23, 42, 0.18));
}

.oc-w-btn {
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  background-color: #ffffff;
  background-image: linear-gradient(90deg, #7dd3fc, #38bdf8);
  background-size: 0% 100%;
  background-repeat: no-repeat;
  border: 2px solid #bae6fd;
  border-radius: 99px;
  padding: 16px 44px;
  box-shadow: 0 12px 34px rgba(37, 99, 255, 0.22);
  transition: background-size 0.3s ease, transform 0.15s ease;
  animation: ocWBtn 0.5s ease;
}

.oc-w-btn:hover {
  transform: translateY(-2px);
}

.oc-w-btn.oc-w-loading {
  pointer-events: none;
}

@keyframes ocWBtn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 6) Planes: showcase horizontal 3D */
#planes .container-x > div.grid {
  display: none !important; /* la grilla plana original se reemplaza por la escena 3D */
}

/* panel "Evolucion continua / creditos de evolucion": fuera */
#planes .container-x > div[class*="mt-10"] {
  display: none !important;
}

#oc-plans-stage {
  position: relative;
  width: 100%;
  height: 625px;
  margin-top: 36px;
  perspective: 1800px;
  transform-style: preserve-3d;
  z-index: 3;
}

#oc-plans-word {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', 'Manrope', sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(160px, 20vw, 360px);
  line-height: 0.9;
  letter-spacing: -0.05em;
  color: #DCE5FF;
  opacity: 0.55;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
  transform: translateZ(-260px) scale(1.15);
  transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1), transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

#oc-plans-word.oc-word-out-l { opacity: 0; transform: translateZ(-260px) scale(1.15) translateX(-40px); }
#oc-plans-word.oc-word-out-r { opacity: 0; transform: translateZ(-260px) scale(1.15) translateX(40px); }

.oc-plan-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 370px;
  height: 520px;
  margin: -262px 0 0 -185px;
  background: linear-gradient(165deg, #0D1B38 0%, #081226 55%, #060D1D 100%);
  border-radius: 26px;
  padding: 26px 24px 22px 24px;
  box-shadow: 0 24px 60px rgba(6, 13, 29, 0.45);
  border: 1px solid rgba(124, 156, 255, 0.14);
  display: flex;
  flex-direction: column;
  font-family: 'Manrope', sans-serif;
  text-align: left;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.oc-plan-card.oc-role-center {
  border: 2px solid rgba(108, 148, 255, 0.55);
  box-shadow: 0 24px 70px rgba(42, 100, 255, 0.35);
}

.oc-role-center .oc-pc-btn {
  background: linear-gradient(90deg, #2A64FF 0%, #6C3BFF 100%);
  color: #fff;
  border: none;
}

.oc-role-center { transform: translate3d(0, 0, 0); z-index: 4; opacity: 1; }
.oc-role-left   { transform: translate3d(-31vw, 8px, -40px) rotateY(72deg) scale(0.92); z-index: 2; opacity: 1; }
.oc-role-right  { transform: translate3d(31vw, 8px, -40px) rotateY(-72deg) scale(0.92); z-index: 2; opacity: 1; }
.oc-role-hidden { transform: translate3d(56vw, 8px, -80px) rotateY(-84deg) scale(0.86); z-index: 1; opacity: 0; pointer-events: none; }

.oc-pc-badge {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #2A64FF 0%, #6C3BFF 100%);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 22px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(70, 102, 255, 0.3);
}

.oc-pc-tag { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #6C9EFF; }
.oc-pc-title { font-size: 28px; font-weight: 800; line-height: 1.05; color: #FFFFFF; margin-top: 4px; display: flex; align-items: center; }

/* led vertical prendido, un color por plan */
.oc-pc-title::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 22px;
  border-radius: 3px;
  margin-right: 11px;
  background: var(--oc-led, #38BDF8);
  box-shadow: 0 0 8px var(--oc-led, #38BDF8), 0 0 18px var(--oc-led, #38BDF8);
}

.oc-plan-card[data-id="builder"] { --oc-led: #22C55E; } /* verde */
.oc-plan-card[data-id="starter"] { --oc-led: #FACC15; } /* amarillo */
.oc-plan-card[data-id="partner"] { --oc-led: #E649C2; } /* magenta */
.oc-plan-card[data-id="studio"]  { --oc-led: #38BDF8; } /* celeste outcomy */
.oc-pc-sub { font-size: 15px; line-height: 1.35; color: #9AA8C7; margin-top: 6px; }
.oc-pc-price { font-size: 32px; font-weight: 800; line-height: 1; color: #FFFFFF; margin-top: 16px; }
.oc-pc-price span { font-size: 16px; font-weight: 500; color: #9AA8C7; }
.oc-pc-helper { font-size: 14px; font-weight: 500; line-height: 1.35; color: #7DA7FF; margin-top: 4px; }

.oc-pc-feats { list-style: none; margin: 14px 0 0 0; padding: 0; flex: 1; }
.oc-pc-feats li {
  position: relative;
  font-size: 14px;
  line-height: 1.4;
  color: #B7C3DC;
  padding-left: 26px;
  margin-bottom: 8px;
}
.oc-pc-feats li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(108, 158, 255, 0.16);
  color: #7DA7FF;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.oc-pc-ideal { font-size: 13.5px; line-height: 1.45; color: #9AA8C7; margin-bottom: 14px; }
.oc-pc-ideal b { color: #FFFFFF; }

.oc-pc-bottom { display: flex; align-items: center; gap: 12px; }
.oc-pc-btn {
  flex: 1;
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 13px 20px;
}

/* las tarjetas laterales se tocan para traerlas al frente */
.oc-role-left, .oc-role-right {
  cursor: pointer;
}

#oc-plans-dots {
  position: absolute;
  left: 0;
  right: 0;
  top: 8px; /* ARRIBA de las tarjetas */
  margin: 0 auto;               /* centrado a prueba de todo */
  width: max-content;
  display: flex;
  gap: 20px;
  z-index: 50;
}
#oc-plans-dots button {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  padding: 0;
  box-sizing: content-box;
  border: 6px solid transparent; /* area de click mas grande, invisible */
  background-clip: padding-box;
  background-image: radial-gradient(circle at 34% 28%, rgba(255,255,255,0.95) 0%, var(--c) 55%);
  background-color: var(--c);
  opacity: 0.35;
  transition: opacity 0.3s, scale 0.3s, box-shadow 0.3s, filter 0.3s;
  filter: saturate(0.7);
}
/* un led por plan, con su color */
#oc-plans-dots button:nth-child(1) { --c: #FACC15; } /* Starter amarillo */
#oc-plans-dots button:nth-child(2) { --c: #22C55E; } /* Builder verde */
#oc-plans-dots button:nth-child(3) { --c: #38BDF8; } /* Studio celeste */
#oc-plans-dots button:nth-child(4) { --c: #E649C2; } /* Partner magenta */
#oc-plans-dots button.on {
  opacity: 1;
  scale: 1.35;
  filter: saturate(1.2);
  box-shadow: 0 0 6px var(--c), 0 0 14px var(--c), 0 0 26px var(--c); /* led prendido */
}

@media (max-width: 767px) {
  #oc-plans-stage { height: 610px; }
  #oc-plans-dots { top: 0; }
  .oc-plan-card { width: 84vw; margin-left: -42vw; }
  .oc-role-left  { transform: translate3d(-64vw, 8px, -40px) rotateY(45deg) scale(0.92); }
  .oc-role-right { transform: translate3d(64vw, 8px, -40px) rotateY(-45deg) scale(0.92); }
  .oc-role-hidden { transform: translate3d(90vw, 8px, -80px) rotateY(-60deg) scale(0.86); }
  #oc-plans-word { font-size: clamp(72px, 18vw, 140px); }
}

/* explosion del puntero comun al entrar a la web (una sola vez) */
#oc-burst {
  position: fixed;
  left: 0;
  top: 0;
  pointer-events: none;
  z-index: 999998;
}
#oc-burst span {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  animation: ocBurst 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes ocBurst {
  from { transform: translate(0, 0) scale(1); opacity: 1; }
  to { transform: translate(var(--dx), var(--dy)) scale(0.15); opacity: 0; }
}

/* avatares del equipo en la seccion Nosotros */
#oc-team-avatars {
  float: right;
  width: 250px;
  height: auto;
  margin: 0 0 12px 20px;
  /* el texto rodea la silueta real de los tres, no un rectangulo */
  shape-outside: url('/team-avatars.png');
  shape-image-threshold: 0.2;
  shape-margin: 14px;
  filter: drop-shadow(0 20px 40px rgba(8, 40, 36, 0.16));
}

/* ojitos del robot de Contacto que siguen al puntero */
#oc-eyes {
  position: absolute;
  pointer-events: none;
  z-index: 50; /* siempre por encima de la imagen del robot */
}
.oc-eye {
  position: absolute;
  background: #020C15; /* color exacto de la cara */
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* parpadeo */
#oc-eyes.oc-blink .oc-eye i {
  transform: scaleY(0.06) !important;
}
.oc-eye i { transition: transform 0.09s ease; }
.oc-eye i {
  display: block;
  width: 72%;
  height: 76%;
  border-radius: 999px;
  background: linear-gradient(180deg, #20EAF3, #18cfe0);
  box-shadow: 0 0 10px rgba(32, 234, 243, 0.8);
  will-change: transform;
}

/* 9) Apps: iPod con Cover Flow (solo lectura) */
/* la seccion toma el blanco del render del iPod: queda integrado, sin recuadro */
#apps {
  background: #fcfcfc !important;
}

#oc-ipod {
  position: relative;
  width: min(100%, 520px);
  aspect-ratio: 818 / 890;
  margin: 0 auto;
  user-select: none;
  touch-action: none;
}

.oc-ipod-render {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.oc-ipod-screen {
  position: absolute;
  left: 34.108%;
  top: 6.18%;
  width: 49.756%;
  height: 33.483%;
  z-index: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: linear-gradient(180deg, #1d2a36 0%, #05080b 76%);
  color: #e9eef4;
  font-family: 'Manrope', sans-serif;
}

.oc-stage {
  position: relative;
  flex: 1;
  perspective: 60em;
  perspective-origin: 50% 44%;
}

.oc-flow {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}

.oc-cover {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--card, 60px);
  height: var(--card, 60px);
  transform-style: preserve-3d;
  will-change: transform;
}

.oc-cover-art,
.oc-cover-mirror {
  position: absolute;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 2px;
}

.oc-cover-art {
  top: 0;
  background: #2b3744;
  box-shadow: 0 0.6em 1.4em rgba(0, 0, 0, 0.55);
}

.oc-cover-mirror {
  top: 100%;
  transform: scaleY(-1);
  opacity: 0.28;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent 60%);
  mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent 60%);
}

.oc-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.oc-ipod-labelbar {
  padding: 0.1em 0.8em 0.55em;
  text-align: center;
}

.oc-ipod-name {
  display: block;
  font-size: 1.12em;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.oc-ipod-count {
  font-size: 0.8em;
  color: #8b9dae;
  letter-spacing: 0.08em;
}

.oc-ipod-wheel {
  position: absolute;
  left: 40.954%;
  top: 45.506%;
  width: 36.919%;
  height: 33.933%;
  border-radius: 50%;
  border: 0;
  background: none;
  z-index: 2;
  touch-action: none;
}

.oc-ipod-center {
  position: absolute;
  left: 51.956%;
  top: 55.843%;
  width: 14.059%;
  height: 12.809%;
  border-radius: 50%;
  border: 0;
  background: none;
  z-index: 3;
}

.oc-ipod-center:active {
  background: rgba(0, 0, 0, 0.05);
}

/* popup easter egg: portada grande, cruz y fondo oscurecido */
#oc-app-modal {
  position: fixed;
  inset: 0;
  z-index: 999980;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(3, 8, 18, 0.74);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#oc-app-modal.oc-on {
  opacity: 1;
  pointer-events: auto;
}

.oc-am-card {
  position: relative;
  width: min(78vw, 560px);
  transform: scale(0.94);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

#oc-app-modal.oc-on .oc-am-card {
  transform: scale(1);
}

.oc-am-card img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 76vh;
  object-fit: contain;
  border-radius: 20px;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6);
}

.oc-am-name {
  margin-top: 16px;
  text-align: center;
  color: #ffffff;
  font-family: 'Manrope', sans-serif;
  font-size: 18px;
  font-weight: 700;
}

.oc-am-close {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: #ffffff;
  color: #08122E;
  font-size: 17px;
  font-weight: 700;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
  z-index: 2;
}

/* ============================================
   10) RESPONSIVE MOBILE (segun secuencia de Pablo)
   ============================================ */
@media (max-width: 767px) {

  /* 2) Hero: texto primero, robot despues; el armado va con el scroll
     natural (sin frenado, que en pantalla chica tapa el contenido) */
  #hero.oc-hero-pinned {
    height: auto !important;
    padding-top: 110px !important;
    padding-bottom: 40px !important;
  }
  #hero.oc-hero-pinned > div:first-child {
    position: static;
  }
  #oc-hero-wrap {
    position: relative !important;
    width: min(86vw, 420px) !important;
    max-width: none !important;
    margin: 26px auto 0;
  }
  #oc-intro-hint {
    display: none;
  }
  /* el efecto lente es para pantalla grande: en el celular lava al robot */
  .oc-hero-fade {
    display: none;
  }

  /* 3) Laboratorio: el video lateral se elimina por completo */
  #oc-solutions-video {
    display: none !important;
  }

  /* 5) Apps: el iPod ocupa bien el ancho, debajo del texto */
  #oc-ipod {
    width: min(92vw, 420px);
    margin-top: 10px;
  }

  /* 7) Nosotros: titulo/texto -> foto de los tres -> tarjetas */
  #nosotros div:has(> #oc-team-avatars) {
    display: flex;
    flex-direction: column;
  }
  #oc-team-avatars {
    float: none;
    order: 99;
    width: min(64vw, 260px);
    margin: 26px auto 0;
    shape-outside: none;
  }

  /* 1) Splash comodo en pantalla chica */
  .oc-w-comy { width: min(58vw, 240px); }
  .oc-w-btn { font-size: 14px; padding: 14px 30px; }
}

/* ojitos del Comy de bienvenida siguen al puntero (solo escritorio) */
.oc-w-comywrap {
  position: relative;
  display: inline-block;
}
.oc-w-eye {
  position: absolute;
  background: transparent; /* la cara ya viene vacia: solo dibujamos los ojos */
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: transform 0.09s ease;
}

/* parpadeo */
.oc-w-comywrap.oc-w-blink .oc-w-eye {
  transform: scaleY(0.08);
}
.oc-w-eye i {
  display: block;
  width: 62%;
  height: 74%;
  border-radius: 999px;
  background: linear-gradient(180deg, #35F0F7 0%, #17CFE2 100%);
  box-shadow: 0 0 10px rgba(32, 234, 243, 0.9), 0 0 22px rgba(32, 234, 243, 0.5);
  will-change: transform;
}
