/*
 * FatherGroup - Sistema de Diseño de Página de Destino Futurista
 * Estilos para la página de inicio en construcción
 */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;600;800;900&family=Rajdhani:wght@500;700&family=Space+Grotesk:wght@300;400;500&display=swap');

:root {
  --bg-color: #030308;
  --grid-color: rgba(0, 240, 255, 0.04);
  --neon-cyan: #00f0ff;
  --neon-cyan-glow: rgba(0, 240, 255, 0.5);
  --neon-magenta: #bd00ff;
  --neon-magenta-glow: rgba(189, 0, 255, 0.5);
  --text-primary: #ffffff;
  --text-secondary: #8b9bb4;
  --font-header: 'Orbitron', sans-serif;
  --font-tech: 'Rajdhani', sans-serif;
  --font-body: 'Space Grotesk', sans-serif;
  --border-radius: 12px;
  --cyber-panel-bg: rgba(10, 11, 26, 0.45);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-body);
  overflow-x: hidden;
  height: 100vh;
  width: 100vw;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* Cuadrícula Cibernética de Fondo */
.background-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  background-image: 
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: center center;
}

.background-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, transparent 20%, rgba(3, 3, 8, 0.8) 80%);
  pointer-events: none;
}

/* Línea de escaneo móvil */
.scanline {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 10px;
  background: linear-gradient(to bottom, transparent, rgba(0, 240, 255, 0.15), transparent);
  animation: scan 6s linear infinite;
  z-index: 1;
  pointer-events: none;
}

/* Capa superpuesta del Canvas de Partículas */
#particle-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* Fondo de brillo del cursor */
.cursor-glow {
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.08) 0%, rgba(189, 0, 255, 0.04) 40%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 1;
  transition: width 0.3s ease, height 0.3s ease;
}

/* Contenedor Principal del Mainframe */
.mainframe {
  position: relative;
  z-index: 10;
  width: 90%;
  max-width: 650px;
  padding: 40px;
  background: var(--cyber-panel-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 240, 255, 0.15);
  border-radius: var(--border-radius);
  box-shadow: 
    0 20px 50px rgba(0, 0, 0, 0.5),
    inset 0 0 20px rgba(0, 240, 255, 0.05);
  text-align: center;
  clip-path: polygon(
    0px 20px, 
    20px 0px, 
    100% 0px, 
    100% calc(100% - 20px), 
    calc(100% - 20px) 100%, 
    0px 100%
  );
}

.mainframe::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-top: 2px solid var(--neon-cyan);
  border-bottom: 2px solid var(--neon-magenta);
  opacity: 0.7;
  pointer-events: none;
}

/* Soportes de esquina para apariencia de ciencia ficción */
.bracket {
  position: absolute;
  width: 15px;
  height: 15px;
  border-color: var(--neon-cyan);
  border-style: solid;
  opacity: 0.6;
}
.bracket.top-left {
  top: 10px;
  left: 10px;
  border-width: 2px 0 0 2px;
}
.bracket.top-right {
  top: 10px;
  right: 10px;
  border-width: 2px 2px 0 0;
}
.bracket.bottom-left {
  bottom: 10px;
  left: 10px;
  border-width: 0 0 2px 2px;
}
.bracket.bottom-right {
  bottom: 10px;
  right: 10px;
  border-width: 0 2px 2px 0;
}

/* Etiqueta de En Construcción */
.badge-container {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(0, 240, 255, 0.07);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 30px;
  font-family: var(--font-tech);
  font-size: 0.85rem;
  letter-spacing: 2px;
  color: var(--neon-cyan);
  text-transform: uppercase;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.05);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #ff3e3e;
  border-radius: 50%;
  box-shadow: 0 0 10px #ff3e3e, 0 0 20px #ff3e3e;
  animation: pulse 1.5s infinite;
}

/* Sección de HUD y Logo */
.logo-hub {
  position: relative;
  width: 300px;
  height: 300px;
  margin: 0 auto 30px auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-container {
  position: relative;
  z-index: 5;
  width: 175px;
  height: 175px;
  display: flex;
  justify-content: center;
  align-items: center;
  filter: drop-shadow(0 0 15px rgba(0, 240, 255, 0.3));
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.logo-container:hover {
  transform: scale(1.08) rotate(5deg);
  filter: drop-shadow(0 0 25px rgba(0, 240, 255, 0.6)) drop-shadow(0 0 10px rgba(189, 0, 255, 0.5));
}

.logo-container svg,
.logo-container img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
}

/* Apuntamos a las rutas cargadas en el contenedor SVG */
.logo-container svg path {
  fill: var(--text-primary) !important;
  stroke: var(--neon-cyan);
  stroke-width: 0.5px;
  transition: fill 0.3s, stroke 0.3s;
}

.logo-container:hover svg path {
  fill: #fff !important;
  stroke: var(--neon-magenta);
}

/* Anillo de HUD Exterior */
.hud-ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hud-ring.outer {
  width: 275px;
  height: 275px;
  border: 1px dashed rgba(0, 240, 255, 0.2);
  border-top-color: var(--neon-cyan);
  border-bottom-color: var(--neon-magenta);
  animation: rotate-cw 20s linear infinite;
}

.hud-ring.outer::after {
  content: '';
  position: absolute;
  top: -5px;
  left: 50%;
  width: 8px;
  height: 8px;
  background: var(--neon-cyan);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--neon-cyan);
}

.hud-ring.middle {
  width: 225px;
  height: 225px;
  border: 1px double rgba(189, 0, 255, 0.15);
  border-left-color: var(--neon-magenta);
  border-right-color: rgba(0, 240, 255, 0.6);
  animation: rotate-ccw 14s linear infinite;
}

.hud-ring.inner {
  width: 192px;
  height: 192px;
  border: 2px solid transparent;
  border-top: 2px solid rgba(0, 240, 255, 0.4);
  border-bottom: 2px solid rgba(189, 0, 255, 0.4);
  animation: rotate-cw 6s linear infinite;
}

/* Estilos de Texto de Encabezado */
.title-container {
  margin-bottom: 10px;
}

.title {
  font-family: var(--font-header);
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: 6px;
  color: var(--text-primary);
  text-transform: uppercase;
  position: relative;
  display: inline-block;
}

/* Efecto Glitch Cyberpunk en el Título */
.title::before, .title::after {
  content: 'FATHERGROUP';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--cyber-panel-bg);
}

.title::before {
  left: 2px;
  text-shadow: -2px 0 var(--neon-cyan);
  clip: rect(44px, 450px, 56px, 0);
  animation: glitch-anim-1 5s infinite linear alternate-reverse;
}

.title::after {
  left: -2px;
  text-shadow: -2px 0 var(--neon-magenta), 0 0 20px var(--neon-magenta-glow);
  clip: rect(85px, 450px, 140px, 0);
  animation: glitch-anim-2 5s infinite linear alternate-reverse;
}

.subtitle {
  font-family: var(--font-tech);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 3px;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-bottom: 30px;
  min-height: 24px;
}

/* Indicador de Carga del Sistema */
.loader-container {
  width: 100%;
  max-width: 400px;
  margin: 0 auto 30px auto;
  text-align: left;
}

.loader-header {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-tech);
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
  letter-spacing: 1.5px;
}

.loader-status-val {
  color: var(--neon-cyan);
  font-weight: 700;
}

.loader-bar-bg {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.loader-bar-fill {
  height: 100%;
  width: 72%; /* Progreso simulado */
  background: linear-gradient(90deg, var(--neon-magenta), var(--neon-cyan));
  box-shadow: 0 0 10px var(--neon-cyan-glow);
  animation: fill-bar 3s cubic-bezier(0.4, 0, 0.2, 1) infinite alternate;
}

/* Texto de Descripción */
.description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 300;
}

/* Llamada a la acción y botones de contacto */
.interactive-zone {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.btn-cyber {
  position: relative;
  font-family: var(--font-tech);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 28px;
  color: #fff;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1;
  transition: all 0.3s;
}

.btn-cyber::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.15) 0%, rgba(189, 0, 255, 0.05) 100%);
  border: 1px solid rgba(0, 240, 255, 0.4);
  z-index: -1;
  clip-path: polygon(0 0, 90% 0, 100% 30%, 100% 100%, 10% 100%, 0 70%);
  transition: all 0.3s;
}

.btn-cyber::after {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-magenta));
  z-index: -2;
  clip-path: polygon(0 0, 90% 0, 100% 30%, 100% 100%, 10% 100%, 0 70%);
  opacity: 0;
  transition: all 0.3s;
}

.btn-cyber:hover {
  color: #030308;
  transform: translateY(-2px);
  text-shadow: none;
  box-shadow: 0 5px 15px rgba(0, 240, 255, 0.2);
}

.btn-cyber:hover::before {
  opacity: 0;
}

.btn-cyber:hover::after {
  opacity: 1;
}

/* Estilo de Botón Secundario */
.btn-cyber.secondary::before {
  background: transparent;
  border: 1px solid rgba(189, 0, 255, 0.3);
}

.btn-cyber.secondary:hover {
  color: #fff;
  box-shadow: 0 5px 15px rgba(189, 0, 255, 0.25);
}

.btn-cyber.secondary:hover::before {
  opacity: 1;
  background: rgba(189, 0, 255, 0.15);
  border-color: var(--neon-magenta);
}

.btn-cyber.secondary:hover::after {
  opacity: 0;
}

/* Elementos del Pie de Página */
.footer-info {
  margin-top: 40px;
  font-family: var(--font-tech);
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.35);
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-info span {
  color: var(--neon-cyan);
}

.footer-line.secondary-line {
  opacity: 0.8;
  font-size: 0.7rem;
}

.footer-line.instagram-line a {
  color: var(--neon-magenta);
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-line.instagram-line a:hover {
  color: var(--neon-cyan);
  text-shadow: 0 0 8px var(--neon-cyan-glow);
}

/* FOTOGRAMAS CLAVE (KEYFRAMES) PARA ANIMACIONES */

@keyframes scan {
  0% {
    top: -10%;
  }
  100% {
    top: 110%;
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.4;
  }
}

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

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

@keyframes fill-bar {
  0% {
    width: 60%;
  }
  50% {
    width: 85%;
  }
  100% {
    width: 72%;
  }
}

/* Fotogramas clave de Glitch Cibernético */
@keyframes glitch-anim-1 {
  0% {
    clip: rect(20px, 9999px, 66px, 0);
  }
  5% {
    clip: rect(72px, 9999px, 98px, 0);
  }
  10% {
    clip: rect(10px, 9999px, 45px, 0);
  }
  15% {
    clip: rect(85px, 9999px, 12px, 0);
  }
  20% {
    clip: rect(54px, 9999px, 84px, 0);
  }
  25% {
    clip: rect(2px, 9999px, 60px, 0);
  }
  30% {
    clip: rect(78px, 9999px, 95px, 0);
  }
  35% {
    clip: rect(15px, 9999px, 35px, 0);
  }
  40% {
    clip: rect(40px, 9999px, 50px, 0);
  }
  45% {
    clip: rect(92px, 9999px, 115px, 0);
  }
  50% {
    clip: rect(6px, 9999px, 85px, 0);
  }
  55% {
    clip: rect(70px, 9999px, 30px, 0);
  }
  60% {
    clip: rect(12px, 9999px, 90px, 0);
  }
  65% {
    clip: rect(82px, 9999px, 55px, 0);
  }
  70% {
    clip: rect(35px, 9999px, 75px, 0);
  }
  75% {
    clip: rect(98px, 9999px, 120px, 0);
  }
  80% {
    clip: rect(45px, 9999px, 5px, 0);
  }
  85% {
    clip: rect(25px, 9999px, 40px, 0);
  }
  90% {
    clip: rect(60px, 9999px, 80px, 0);
  }
  95% {
    clip: rect(18px, 9999px, 95px, 0);
  }
  100% {
    clip: rect(80px, 9999px, 110px, 0);
  }
}

@keyframes glitch-anim-2 {
  0% {
    clip: rect(65px, 9999px, 110px, 0);
  }
  5% {
    clip: rect(12px, 9999px, 45px, 0);
  }
  10% {
    clip: rect(90px, 9999px, 15px, 0);
  }
  15% {
    clip: rect(40px, 9999px, 75px, 0);
  }
  20% {
    clip: rect(3px, 9999px, 60px, 0);
  }
  25% {
    clip: rect(80px, 9999px, 95px, 0);
  }
  30% {
    clip: rect(54px, 9999px, 85px, 0);
  }
  35% {
    clip: rect(22px, 9999px, 115px, 0);
  }
  40% {
    clip: rect(70px, 9999px, 35px, 0);
  }
  45% {
    clip: rect(15px, 9999px, 50px, 0);
  }
  50% {
    clip: rect(85px, 9999px, 12px, 0);
  }
  55% {
    clip: rect(30px, 9999px, 90px, 0);
  }
  60% {
    clip: rect(95px, 9999px, 72px, 0);
  }
  65% {
    clip: rect(5px, 9999px, 40px, 0);
  }
  70% {
    clip: rect(60px, 9999px, 80px, 0);
  }
  75% {
    clip: rect(18px, 9999px, 95px, 0);
  }
  80% {
    clip: rect(78px, 9999px, 120px, 0);
  }
  85% {
    clip: rect(35px, 9999px, 6px, 0);
  }
  90% {
    clip: rect(82px, 9999px, 55px, 0);
  }
  95% {
    clip: rect(45px, 9999px, 85px, 0);
  }
  100% {
    clip: rect(10px, 9999px, 25px, 0);
  }
}

/* Ajustes Responsivos */
@media (max-width: 600px) {
  .mainframe {
    padding: 30px 20px;
    clip-path: polygon(
      0px 15px, 
      15px 0px, 
      100% 0px, 
      100% calc(100% - 15px), 
      calc(100% - 15px) 100%, 
      0px 100%
    );
  }
  
  .title {
    font-size: 1.8rem;
    letter-spacing: 4px;
  }
  
  .logo-hub {
    width: 240px;
    height: 240px;
  }
  
  .hud-ring.outer {
    width: 220px;
    height: 220px;
  }
  
  .hud-ring.middle {
    width: 180px;
    height: 180px;
  }
  
  .hud-ring.inner {
    width: 150px;
    height: 150px;
  }
  
  .logo-container {
    width: 130px;
    height: 130px;
  }
  
  .interactive-zone {
    flex-direction: column;
    gap: 12px;
  }
  
  .btn-cyber {
    width: 100%;
  }
}
