

@import url('floating-unified.css');    /* ← ÚLTIMO */
@import url('reset.css');      /* General reset: MUST come first */
@import url('footer-header.css');     /* floatingheaderfooter*/
@import url('layout.css');     /* Layout styles for structure */
@import url('components2.css'); /* Component-specific styles */
@import url('utilities.css');  /* Helper classes and utilities */
@import url('animations.css'); /* Animations */
@import url('responsive.css');  /*Media queries and responsive design */



/* General Styles */
body {
    margin: 0;
    background: #f0f0f0; /* Set a fallback background color */
    margin: 0;
    font-family: 'Poppins', 'Chivo Mono', 'Roboto', sans-serif;
    font-size: 16px; /* Tamaño base */
    line-height: 1.5; /* Espaciado entre líneas */
    
}




/* Canvas for Links */
.wrapper {
    display: grid; /* Initially hidden */
    grid-template-columns: repeat(8, 1fr); /* 9 columnas iniciales */
    grid-auto-rows: minmax(150px, auto); /* Altura adaptable para las filas */
    grid-template-areas:
    ". c . . a . . . "
    ". . g . . b . . "
    ". f j . d . . . "
    ". h . i . e . . "
    ". . . . . . . . ";
    contain: layout style;
    will-change: transform;
    width: 100vw; /* Ocupa todo el ancho del contenedor padre */
    gap: 20px;
    position: relative; /* Relativo para posicionar sus elementos */
    height: 100vh;
    min-height: 100vh; /* Match viewport height */
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #000000, #2d2d2d); /* Softer gradient */
    background-size: cover;
    transition: opacity 1s ease; /* Smooth transition for fading in */

}


/* Prevent Overflow Clipping */
.wrapper > * {
    z-index: 1; /* Ensure interactive items appear on top */
}

@supports not (display: grid) {
    .wrapper {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
    }
  }

.animation-layer {
    position: fixed;
    z-index: 10;
    pointer-events: none;
}

#animation-area {
    position: relative;   /* Para que los elementos absolutamente posicionados se sitúen respecto a este contenedor */
    
    width: 100vw;         /* 100% del ancho de la ventana */
    height: 100vh;        /* 100% del alto de la ventana */
    background-color: #000;  /* Fondo oscuro para contrastar con las letras blancas */
    overflow: hidden;     /* Evita que elementos salgan fuera del contenedor */
  }
  

  .link-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: white;
    border-radius: 50%;
    margin-bottom: 6px;
    margin-right: 10px;
    flex-shrink: 0;
  }
  
  #chaoticCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1000;
    background: linear-gradient(135deg, #121212, #333333);
    overflow: hidden;
    font-family: 'Chivo Mono', monospace;
}



/* Sections */
.section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
      padding: 5rem 1.5rem;
      text-align: left;
  }
  

  

.connections-svg {
    will-change: transform;
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none; /* Evita interferencia en la interacción */
    z-index: 1; /* Debajo de los links pero sobre el fondo */
}

.connection-line {
    stroke: rgba(255, 255, 255, 0.4);
    stroke-width: .5px;
    transition: opacity 0.5s ease, filter 0.5s ease;
}

.connection-line.blur {
    filter: blur(6px);
    opacity: 0.2;
    stroke-width: 2px;
}



@keyframes pulseLines {
    0% { stroke-width: 1px; opacity: 0.4; }
    50% { stroke-width: 2px; opacity: 0.6; }
    100% { stroke-width: 1px; opacity: 0.4; }
}

.connection-line {
    animation: pulseLines 5s infinite ease-in-out;
}


