/* ===================================================
   SIIC - Animaciones 3D de Tarjetas y Efectos Orbitales
   Áreas: Extrusión, Telares, Conversión
   =================================================== */

/* ================= 3D CARD ROTATION CAROUSEL (LOGIN) ================= */
.carousel-3d-scene {
  perspective: 1200px;
  width: 100%;
  max-width: 480px;
  height: 290px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 30px auto 10px;
}

.carousel-3d-track {
  width: 100%;
  height: 100%;
  position: absolute;
  transform-style: preserve-3d;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-3d {
  position: absolute;
  width: 320px;
  min-height: 200px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25), 0 0 20px rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.7);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.8s ease, filter 0.8s ease;
  user-select: none;
}

.card-3d .card-header-icon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.card-3d .area-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: white;
}

.card-3d.extrusion .area-icon {
  background: linear-gradient(135deg, #0284c7, #0369a1);
}

.card-3d.telares .area-icon {
  background: linear-gradient(135deg, #059669, #047857);
}

.card-3d.conversion .area-icon {
  background: linear-gradient(135deg, #d97706, #b45309);
}

.card-3d.auditoria-siic .area-icon {
  background: linear-gradient(135deg, #4f46e5, #4338ca);
}

.card-3d .area-tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
}

.card-3d h4 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 6px;
}

.card-3d p {
  font-size: 0.82rem;
  color: #475569;
  line-height: 1.45;
}

.card-3d .benefit-metric {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 600;
  color: #1e3a8a;
}

/* Posicionamiento 3D de las tarjetas en rotación */
.card-3d[data-pos="0"] {
  /* Front Center (Active) */
  transform: translateX(0) translateZ(100px) scale(1.05);
  opacity: 1;
  z-index: 10;
  filter: blur(0);
}

.card-3d[data-pos="1"] {
  /* Right side */
  transform: translateX(160px) translateZ(0) scale(0.88) rotateY(-20deg);
  opacity: 0.75;
  z-index: 5;
  filter: blur(0.5px);
}

.card-3d[data-pos="2"] {
  /* Back center */
  transform: translateX(0) translateZ(-120px) scale(0.75);
  opacity: 0.35;
  z-index: 1;
  filter: blur(2px);
}

.card-3d[data-pos="3"] {
  /* Left side */
  transform: translateX(-160px) translateZ(0) scale(0.88) rotateY(20deg);
  opacity: 0.75;
  z-index: 5;
  filter: blur(0.5px);
}

/* Indicadores de rotación (dots) */
.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transition: all 0.3s;
  cursor: pointer;
}

.carousel-dot.active {
  width: 26px;
  border-radius: 10px;
  background: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan);
}

/* ================= VISTA ORBITAL ERP (ESTILO PLATAFORMA.JPG) ================= */
.orbital-portal-container {
  position: relative;
  width: 100%;
  max-width: 900px;
  height: 600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Anillos concéntricos */
.orbital-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(148, 163, 184, 0.35);
  pointer-events: none;
}

.orbital-ring.ring-inner {
  width: 320px;
  height: 320px;
  animation: rotateRing 80s linear infinite;
}

.orbital-ring.ring-middle {
  width: 520px;
  height: 520px;
  border-style: dotted;
  animation: rotateRingRev 110s linear infinite;
}

.orbital-ring.ring-outer {
  width: 720px;
  height: 720px;
}

@keyframes rotateRing {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes rotateRingRev {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

/* Nodo Central SIIC ERP */
.portal-center-node {
  width: 170px;
  height: 170px;
  background: radial-gradient(circle at 35% 35%, #ffffff 0%, #f1f5f9 70%, #e2e8f0 100%);
  border-radius: 50%;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.15), inset 0 2px 4px rgba(255,255,255,0.8), 0 0 0 10px rgba(255, 255, 255, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
  text-align: center;
  position: relative;
  border: 2px solid #cbd5e1;
}

.portal-center-node span.sub {
  font-size: 0.68rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #64748b;
  font-weight: 700;
}

.portal-center-node h1 {
  font-size: 1.9rem;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: 1px;
}

.portal-center-node span.erp-pill {
  background: #2563eb;
  color: white;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 10px;
  border-radius: 999px;
  margin-top: 4px;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
}

/* Nodos orbitales conectados */
.orbital-node {
  position: absolute;
  width: 220px;
  background: #ffffff;
  border-radius: 14px;
  padding: 12px 16px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  z-index: 8;
  text-decoration: none;
  color: inherit;
}

.orbital-node:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.15);
  border-color: #93c5fd;
}

.orbital-node.active-module {
  border-left: 4px solid #2563eb;
  background: linear-gradient(135deg, #ffffff, #f0f7ff);
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.2);
}

.node-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.node-text h5 {
  font-size: 0.85rem;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.2;
}

.node-text p {
  font-size: 0.72rem;
  color: #64748b;
  margin-top: 2px;
  line-height: 1.3;
}

/* Posiciones fijas de los 8 nodos como en plataforma.jpg */
.node-pos-top { top: 20px; left: 50%; transform: translateX(-50%); }
.node-pos-top-right { top: 75px; right: 20px; }
.node-pos-right { top: 50%; right: -20px; transform: translateY(-50%); }
.node-pos-bottom-right { bottom: 75px; right: 20px; }
.node-pos-bottom { bottom: 20px; left: 50%; transform: translateX(-50%); }
.node-pos-bottom-left { bottom: 75px; left: 20px; }
.node-pos-left { top: 50%; left: -20px; transform: translateY(-50%); }
.node-pos-top-left { top: 75px; left: 20px; }
