@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

/* ==========================================================================
   TIPOGRAFÍAS LOCALES: MOZILLA HEADLINE
   ========================================================================== */
@font-face {
  font-family: 'Mozilla Headline';
  src: url('../recursos/Mozilla_Headline/static/MozillaHeadline-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Mozilla Headline';
  src: url('../recursos/Mozilla_Headline/static/MozillaHeadline-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: 'Mozilla Headline';
  src: url('../recursos/Mozilla_Headline/static/MozillaHeadline-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: 'Mozilla Headline';
  src: url('../recursos/Mozilla_Headline/static/MozillaHeadline-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}

/* ==========================================================================
   DASHBOARD SOBRIO Y GLASSMORPHIC - ESTILO PALANTIR
   ========================================================================== */

:root {
  /* Paleta Clara y Orgánica (Colores Tierra) */
  --bg-dark: #faf7f2;          /* Fondo arena/lino muy claro */
  --bg-card: rgba(255, 254, 252, 0.65); /* Cristal claro translúcido */
  --bg-card-hover: rgba(255, 255, 255, 0.85);
  --bg-input: rgba(18, 19, 22, 0.02);
  --border-color: rgba(18, 19, 22, 0.07);  /* Borde ultrafino oscuro */
  
  /* Acento Naranja Vibrante (#ff5700) */
  --accent: #ff5700;          
  --accent-rgb: 255, 87, 0;
  --accent-muted: rgba(255, 87, 0, 0.08);
  --accent-hover: #e04f00;
  
  /* Colores de Texto */
  --text-primary: #111215;      /* Carbón profundo */
  --text-secondary: #4a4e59;    /* Pizarra medio */
  --text-muted: #848995;        /* Gris suave */
  
  /* Tipografía */
  --font-display: 'Mozilla Headline', sans-serif;
  --font-body: 'Inter', sans-serif;
  --display-tracking: -0.01em;
  --display-transform: none;
  
  --transition-fast: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   CONFIGURACIÓN TAILWIND V4 TEMA
   ========================================================================== */

@theme {
  --color-bg-dark: var(--bg-dark);
  --color-bg-card: var(--bg-card);
  --color-bg-card-hover: var(--bg-card-hover);
  --color-accent: var(--accent);
  --color-accent-hover: var(--accent-hover);
  --color-text-primary: var(--text-primary);
  --color-text-secondary: var(--text-secondary);
  --color-text-muted: var(--text-muted);
  --color-border-brutal: var(--border-color);
  
  --font-display: var(--font-display);
  --font-body: var(--font-body);
}

/* ==========================================================================
   ESTILOS GENERALES
   ========================================================================== */

body {
  background-color: var(--bg-dark);
  color: var(--text-secondary);
  font-family: var(--font-body);
  transition: background-color var(--transition-normal);
  position: relative;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-family: var(--font-display);
  letter-spacing: var(--display-tracking);
  text-transform: var(--display-transform);
}

h1 {
  font-weight: 800;
}

p {
  color: var(--text-secondary);
}

/* Scrollbars Técnicos */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* ==========================================================================
   LUCES GLOW Y CUADRÍCULA DE FONDO (TECH ESTILO PALANTIR)
   ========================================================================== */

.bg-mesh {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 130vh;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  will-change: transform;
}

/* Fondo Cuadrícula Sutil */
.bg-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  pointer-events: none;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 1;
}

/* Textura de Grano de Cristal */
.bg-grain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  pointer-events: none;
  opacity: 0.02;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  z-index: 2;
}

.bg-light {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.42;
  animation: drift 28s infinite alternate ease-in-out;
  will-change: transform;
}

/* Orbes multicolores vibrantes y gigantes según la imagen de referencia (Fucsia, Cian, Amarillo, Naranja) */
.bg-light-1 {
  top: -10%;
  left: 10%;
  width: 75vw;
  height: 75vw;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.38) 0%, rgba(250,247,242,0) 75%); /* Fucsia */
}

.bg-light-2 {
  bottom: -15%;
  right: 5%;
  width: 80vw;
  height: 80vw;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.32) 0%, rgba(250,247,242,0) 75%); /* Cian */
  animation-delay: -6s;
}

.bg-light-3 {
  top: 25%;
  right: 15%;
  width: 70vw;
  height: 70vw;
  background: radial-gradient(circle, rgba(234, 179, 8, 0.28) 0%, rgba(250,247,242,0) 75%); /* Amarillo */
  animation-delay: -12s;
}

.bg-light-4 {
  bottom: 20%;
  left: -10%;
  width: 65vw;
  height: 65vw;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.26) 0%, rgba(250,247,242,0) 75%); /* Naranja */
  animation-delay: -18s;
}

@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(3%, 3%) scale(1.05); }
}

/* ==========================================================================
   ESTILOS COMPONENTES GLASSMORPHIC
   ========================================================================== */

/* Tarjetas Glassmorphic */
.brutal-card {
  background-color: var(--bg-card);
  backdrop-filter: blur(20px) saturate(120%);
  -webkit-backdrop-filter: blur(20px) saturate(120%);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.4);
  transition: transform var(--transition-fast), border-color var(--transition-fast), background-color var(--transition-normal), box-shadow var(--transition-fast);
}

.brutal-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 30px 60px -10px rgba(0, 0, 0, 0.5), 0 0 20px rgba(var(--accent-rgb), 0.05);
  border-color: rgba(var(--accent-rgb), 0.2);
  background-color: var(--bg-card-hover);
}

/* Inputs de Texto Glassmorphic */
.brutal-input {
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: var(--font-body);
  padding: 12px 16px;
  width: 100%;
  outline: none;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
}

.brutal-input:focus {
  border-color: rgba(var(--accent-rgb), 0.4);
  background-color: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1), 0 0 12px rgba(var(--accent-rgb), 0.15);
}

/* Botón Principal (Sólido Tecnológico) */
.brutal-button {
  background-color: var(--accent);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: none;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
  cursor: pointer;
}

.brutal-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(var(--accent-rgb), 0.3);
  background-color: var(--accent-hover);
}

.brutal-button:active {
  transform: translateY(1px);
}

/* Botón Secundario (Cristal Translúcido) */
.brutal-button-secondary {
  background-color: rgba(18, 19, 22, 0.03);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
  text-transform: none;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast), background-color var(--transition-fast);
  cursor: pointer;
}

.brutal-button-secondary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.05);
  border-color: rgba(18, 19, 22, 0.12);
  background-color: rgba(18, 19, 22, 0.07);
}

.brutal-button-secondary:active {
  transform: translateY(1px);
}

/* Marquesina Tecnológica de Gran Tamaño (Gapless & Seamless) */
.marquee-container {
  overflow: hidden;
  white-space: nowrap;
  border-top: 1.5px solid var(--border-color);
  border-bottom: 1.5px solid var(--border-color);
  border-color: var(--border-color);
  background-color: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(10px);
  display: flex;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  position: relative;
}

.marquee-wrapper {
  display: flex;
  width: max-content;
  animation: marquee-infinite 65s linear infinite;
}

.marquee-content {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-primary);
  padding: 22px 0;
}

@keyframes marquee-infinite {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

/* ==========================================================================
   SCROLL REVEAL ANIMATIONS (Efecto de Desvelado)
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Tiempos de retraso secuenciales */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }

/* ==========================================================================
   SCROLL EXPERIENCE AND BENTO GRID STYLES
   ========================================================================== */

/* Secciones de scroll */
.scroll-section {
  min-height: auto;
  padding-top: 8rem;
  padding-bottom: 8rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 10;
  box-sizing: border-box;
}

/* Indicador de progreso / Navegación por puntos */
.dot-navigation {
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.nav-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
}

.nav-dot:hover {
  background-color: var(--accent);
  transform: scale(1.3);
}

.nav-dot.active {
  background-color: var(--accent);
  box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.5);
  transform: scale(1.3);
}

.nav-dot-tooltip {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%) translateX(10px);
  background-color: rgba(15, 15, 20, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-fast);
}

.nav-dot:hover .nav-dot-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* Canvas interactivo de fondo */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  background-color: transparent;
}

/* Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 20px;
}

@media (min-width: 768px) {
  .bento-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

