@import url('https://fonts.cdnfonts.com/css/br-segma');
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;500;700;900&display=swap');

/* Reset */

/* Fondo con animación 3D */
.ciber-body {
  position: relative;
  font-family: 'BR Segma';
  color: white;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 0 0 20px;
  overflow: hidden;
  background: linear-gradient(to bottom, #000000 0%, #0a0a2a 50%, #000000 100%);
}

/* Canvas para la animación 3D con ID específico */
#ciberCubeSphereCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none; /* Permitir interacción con el contenido */
}

/* Mejorar el overlay para más contraste */
.ciber-body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.74) 0%,
    rgba(0, 0, 0, 0.342) 15%,
    rgba(0, 0, 0, 0.014) 40%,
    rgba(0, 0, 0, 0.007) 60%,
    rgba(0, 0, 0, 0.5) 85%,
    rgba(0, 0, 0, 0.788) 100%
  );
  z-index: 1;
}

/* Subir el contenido para que quede encima */
.ciber-container {
  position: relative;
  z-index: 2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

    .ciber-container {
      margin-bottom: 150px; 
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 150px;
      max-width: 1200px;
      width: 100%;
      flex-wrap: wrap;
    }

    /* Contenedor circular */
    .ciber-circle {
      position: relative;
      width: 480px;
      aspect-ratio: 1/1;
      border-radius: 50%;
      background: rgba(1, 1, 25, 0.452);
      color: white;
      display: flex;
      justify-content: center;
      align-items: center;
      text-align: center;
      font-size: 1.2rem;
      line-height: 1.4;
      padding: 20px;
      margin-top: 10px;
      animation: fadeSlideLeft 1.2s ease forwards;
      backdrop-filter: blur(5px);
      border: 1px solid rgba(255, 255, 255, 0.1);
      box-shadow: 
        0 0 50px rgba(238, 1, 255, 0.171),
        inset 0 0 20px rgba(255, 255, 255, 0.007);
    }

    .ciber-circle::before {
      content: "";
      position: absolute;
      inset: 0;
      border-radius: 50%;
      padding: 6px;
      background: white;
      -webkit-mask:
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
      -webkit-mask-composite: xor;
      mask-composite: exclude;
      z-index: -1;
    }

.ciber-circle::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  padding: 8px;
  background: linear-gradient(
    to bottom, 
    #ee01ff 0%,
    #ee01ff 25%,
    #a201ff 25%,
    #a201ff 50%,
    #007bff 50%,
    #007bff 75%,
    #00fcff 75%,
    #00fcff 100%
  );
  -webkit-mask:
    linear-gradient(to right, transparent 50%, white 50%) content-box, 
    linear-gradient(to right, transparent 50%, white 50%);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  filter: blur(2px);
  z-index: -2;
}

    /* Cards */
    .ciber-cards {
      flex: 2 1 500px;
      display: flex;
      flex-direction: column;
      gap: 20px;
    }

    .ciber-card {
      position: relative;
      background: rgba(1, 1, 1, 0.25);
      backdrop-filter: blur(15px);
      padding: 20px 25px 20px 60px;
      border-radius: 50px;
      font-size: 1.1rem;
      line-height: 1.5;
      opacity: 0;
      transform: translateY(30px);
      animation: fadeUp 1s ease forwards;
      border: 1px solid rgba(255, 255, 255, 0.15);
      box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
      transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .ciber-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    }

    .ciber-card:nth-child(1) { animation-delay: 0.3s; margin-left: 5px; }
    .ciber-card:nth-child(2) { animation-delay: 0.6s; margin-left: 65px; }
    .ciber-card:nth-child(3) { animation-delay: 0.9s; margin-left: 65px; }
    .ciber-card:nth-child(4) { animation-delay: 1.2s; margin-left: 5px; }

    /* Números flotantes */
    .ciber-card .number {
      position: absolute;
      left: -20px;
      top: 50%;
      transform: translateY(-50%);
      width: 50px;
      height: 50px;
      border-radius: 50%;
      background: #fff;
      color: #000000;
      display: flex;
      padding-top: 5px;
      align-items: center;
      justify-content: center;
      font-family: "BR Segma", sans-serif;
      font-size: 2.1rem;
      box-shadow: 
        0 4px 15px rgba(0,0,0,0.4),
        0 0 20px rgba(3, 141, 252, 0.3);
      transition: all 0.3s ease;
    }

    .ciber-card:hover .number {
      box-shadow: 
        0 6px 20px rgba(0,0,0,0.5),
        0 0 30px rgba(3, 141, 252, 0.5);
      transform: translateY(-50%) scale(1.05);
    }

    /* Guías + puntos */
    .ciber-card::before {
      content: "";
      position: absolute;
      left: -100px;
      top: 50%;
      width: 90px;
      height: 2px;
      background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.7));
    }

    .ciber-card::after {
      content: "";
      position: absolute;
      left: -110px;
      top: 50%;
      transform: translateY(-50%);
      width: 14px;
      height: 14px;
      border-radius: 50%;
      border: 5px solid rgba(255, 255, 255, 0.8);
      transition: all 0.3s ease;
    }

    /* Colores personalizados con brillo */
    .ciber-card:nth-child(1)::after { 
      background: #ee01ff;
      color: #ee01ff;
    }
    .ciber-card:nth-child(2)::after { 
      background: #a201ff;
      color: #a201ff;
    }
    .ciber-card:nth-child(3)::after { 
      background: #007bff;
      color: #007bff;
    }
    .ciber-card:nth-child(4)::after { 
      background: #00fcff;
      color: #00fcff;
    }

    /* Animaciones */
    @keyframes fadeSlideLeft {
      0% { opacity: 0; transform: translateX(-80px); }
      100% { opacity: 1; transform: translateX(0); }
    }

    @keyframes fadeUp {
      0% { opacity: 0; transform: translateY(40px); }
      100% { opacity: 1; transform: translateY(0); }
    }

    /* Estado inicial SIN animación */
    .ciber-circle:not(.animate-circle) {
      opacity: 0;
      transform: translateX(-80px);
      animation: none !important;
    }

    .ciber-card:not(.animate-card) {
      opacity: 0;
      transform: translateY(40px);
      animation: none !important;
    }


@media (max-width: 1400px) {

.ciber-card {    
    padding: 25px 25px 25px 60px;
    font-size: .9rem; 
}
.ciber-card .number{
    font-size: 1.5rem;
}

.ciber-circle {

    font-size: 1rem;
    line-height: 1.4;

}

.ciber-circle {
    width: 420px;
}

}


/* Ajustes responsivos para smartphones */
@media (max-width: 768px) {
  .ciber-card {
    padding: 15px 20px 15px 50px;
    font-size: 1rem;
  }

  .ciber-card .number {
    left: -15px;
    width: 40px;
    height: 40px;
    font-size: 1.6rem;
  }

  .ciber-card::before {
    left: -60px;
    width: 50px;
  }

  .ciber-card::after {
    left: -70px;
    width: 10px;
    height: 10px;
    border: 3px solid rgba(255, 255, 255, 0.8);
  }
}

@media (max-width: 480px) {
  .ciber-circle {
    max-width: 250px;
    font-size: 1rem;
    padding: 15px;
  }

  .ciber-card {
    padding: 12px 18px 12px 45px;
    font-size: 0.95rem;
  }

  .ciber-card .number {
    left: -12px;
    width: 35px;
    height: 35px;
    font-size: 1.4rem;
  }

  .ciber-card::before {
    left: -10px;
    width: 20px;
  }

  .ciber-card::after {
    left: -20px;
    width: 8px;
    height: 8px;
    border: 2px solid rgba(255, 255, 255, 0.8);
  }
}

/* Efectos de brillo adicionales */
@keyframes sparkle {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

.glow-effect {
  position: absolute;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, transparent 70%);
  filter: blur(20px);
  animation: sparkle 3s infinite ease-in-out;
  z-index: 0;
}