body{
    font-family: 'Expletus Sans', sans-serif;
     color: var(--text-100) !important;
     margin: 0;
     padding: 0;
     background-color: var(--bg-100);
     background:
        radial-gradient(circle at 15% 30%, rgba(0,186,150,0.25), transparent 35%),
        radial-gradient(circle at 85% 65%, rgba(111, 123, 105, 0.35), transparent 40%),
        linear-gradient(135deg, #161815, #161815) !important;
 }
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
}

.main-view{
    position: sticky;
    top: 0;
    z-index: 0;
    display: grid;
    /* Una sola fila: el header salió del flujo (es fijo y aparece al hacer
       scroll), así que el titular se centra en la pantalla completa en vez de
       quedar empujado hacia abajo por una cabecera que ya no está ahí. */
    grid-template-rows: 1fr;
    height: 100vh;
    height: 100svh;
    overflow: hidden;
}
.page-content{
    position: relative;
    z-index: 1;
    min-height: 100vh;
    border-radius: clamp(1.5rem, 4vw, 3.5rem) clamp(1.5rem, 4vw, 3.5rem) 0 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(0,186,150,0.18), transparent 30%),
        radial-gradient(circle at 88% 58%, rgba(111,123,105,0.24), transparent 35%),
        #161815;
    box-shadow: 0 -24px 80px rgba(0,0,0,0.38);
}

 ::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background-color: var(--bg-100);
}
::-webkit-scrollbar-thumb {
    background-color: var(--text-200);
}
::-webkit-scrollbar-thumb:hover {
    background-color: var(--primary-100);
}
 
 button:hover{
    cursor: pointer;
}
a:hover{
    cursor: pointer;
}
/* =========================================================
   CABECERA

   No se muestra sobre la portada: el primer golpe de vista es el titular, sin
   nada compitiendo alrededor. Aparece en cuanto el visitante empieza a bajar,
   que es cuando la navegación le sirve de algo.

   Fija y fuera del flujo, para poder acompañar al resto de la página. Oculta
   por transform y opacity —no por display— para que la entrada y la salida
   sean una transición y no un salto; pointer-events evita que mientras está
   invisible siga capturando clics.
========================================================= */
header{
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 60;

    height: 3.5em;
    padding: 1.1em 2em;
    display: flex;
    align-items: center;

    /* Cristal oscuro: la cabecera viaja sobre secciones de distinto color y
       tiene que seguir legible encima de todas. Sin línea inferior: el borde
       la separaba del contenido como si fuera una barra aparte, y lo que se
       busca es que flote sobre la página. */
    background: rgba(22, 24, 21, 0.72);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);

    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform .45s cubic-bezier(.22,.61,.36,1), opacity .3s ease;
}
header.is-visible{
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}
.left-header{
    width: 10%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: .5em;
}
.left-header img{
    width: 4em;
    height: auto;
    cursor: pointer;
}
.center-header{
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.center-header ul{
    padding: 0;
    margin: 0;
    display: flex;
    list-style: none;
}
.center-header li{
    margin: 0 2em;
    font-weight: 600;
    cursor: pointer;
    font-size: 1em;
    letter-spacing: 1px;
    transition: .5s;
    color: var(--text-200);
}
.center-header li:hover{
    color: var(--text-100);
}
.right-header{
    width: 10%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.right-header button{
    height: auto;
    width: auto;
    background-color: transparent;
    border: none;
    padding: 0;
}
.right-header .local-icon{
    color: var(--text-200);
    margin: 0;
    font-size: 1.3em;
    transition: .5s;
}
.right-header .local-icon:hover{
    color: var(--text-100);
}
.first-topic{
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
}
.first-topic h1{
    font-size: 3em;
    text-align: center;
    padding: 0 1em;
    color: var(--text-100);
}
.dag-h1{
    color: var(--primary-100);
}
.need-h1{
    text-decoration: underline;
}


/* =========================================================
   ANIMACIÓN DE LA PORTADA

   Dos gestos, nada más: unas líneas finas que cruzan el fondo y unos
   destellos que parpadean de vez en cuando. La idea es que la portada siga
   leyéndose limpia, así que todo pasa en el fondo, con opacidades bajas y
   ciclos largos y desfasados — si dos animaciones coincidieran en el tiempo,
   el conjunto empezaría a parecer un salvapantallas.

   .main-view es sticky con z-index 0, es decir, un contexto de apilamiento.
   Eso permite mandar la decoración a z-index -1: queda por encima del fondo y
   por debajo del header y del titular, sin tocar el z-index de ninguno.
========================================================= */
.hero-fx{
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.hero-line{
    position: absolute;
    /* Arranca fuera de cuadro por la izquierda. El recorrido va en vw, no en
       porcentaje: un porcentaje en translateX se mide sobre el ancho del
       propio elemento, así que cada línea recorrería una distancia distinta
       según lo larga que sea, y las cortas se apagarían a media pantalla. */
    left: -50%;
    height: 1px;
    /* El brillo va concentrado en el centro de la línea: así parece un haz
       que viaja, y no una regla que se desplaza. */
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0,186,150,0.35) 35%,
        rgba(0,192,201,0.75) 50%,
        rgba(0,186,150,0.35) 65%,
        transparent
    );
    opacity: 0;
    animation: hero-line-sweep 16s ease-in-out infinite;
}
.hero-line--1{ top: 27%; width: 55%; animation-duration: 15s; animation-delay: 0s; }
.hero-line--2{ top: 54%; width: 38%; animation-duration: 19s; animation-delay: 6s; }
.hero-line--3{ top: 73%; width: 66%; animation-duration: 17s; animation-delay: 11s; }

@keyframes hero-line-sweep{
    0%   { transform: translateX(0);     opacity: 0; }
    10%  { opacity: .85; }
    55%  { opacity: .85; }
    75%  { opacity: 0; }
    /* El resto del ciclo la línea está apagada y fuera de cuadro: el hueco es
       lo que evita que el movimiento se vuelva constante. */
    100% { transform: translateX(160vw); opacity: 0; }
}

.hero-glint{
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--text-100);
    box-shadow:
        0 0 6px 1px rgba(0,186,150,0.9),
        0 0 16px 4px rgba(0,186,150,0.3);
    opacity: 0;
    animation: hero-glint-twinkle 9s ease-in-out infinite;
}
.hero-glint--1{ top: 22%; left: 18%; animation-delay: 1.5s; }
.hero-glint--2{ top: 38%; left: 82%; animation-delay: 4s;   }
.hero-glint--3{ top: 68%; left: 30%; animation-delay: 6.5s; }
.hero-glint--4{ top: 80%; left: 70%; animation-delay: 8.5s; }

@keyframes hero-glint-twinkle{
    /* Encendido corto y apagado largo: un destello, no un latido. */
    0%, 100% { opacity: 0; transform: scale(.4); }
    4%       { opacity: 1; transform: scale(1); }
    12%      { opacity: 0; transform: scale(.4); }
}



.services-section{
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 7em;
    padding-bottom: 4em;
    }


.services-section h3{
    font-size: 2em;
    letter-spacing: .1em;
    color: var(--primary-100);
    margin-bottom: 1em;
}
.services-menu{
    width: 100%;
}
.services-menu h5{
    font-size: .9em;
    max-width: 10em;
    text-align: end;
}


.main-systems{
    margin: .5em;
    margin-top: 5em;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.main-systems h3{
    font-size: 1.4em;
    letter-spacing: .1em;
    color: var(--primary-100);
}

.systems-section{
    width: min(1180px, 92%);
    margin: 3em auto 0;
    padding: 5em 0 2em;
}
.systems-heading{
    max-width: 760px;
    margin: 0 auto 2em;
    text-align: center;
}
.systems-heading span{
    color: var(--primary-100);
    font-size: .9em;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.systems-heading h3{
    margin: .35em 0;
    color: var(--text-100);
    font-size: clamp(2em, 5vw, 3em);
    letter-spacing: .03em;
}
.systems-heading p{
    margin: 0;
    color: var(--text-200);
    line-height: 1.65;
}
.systems-grid{
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1em;
}
.system-card{
    min-height: 20rem;
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 1em;
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: .8em;
    background:
        linear-gradient(135deg, rgba(74,83,70,0.3), rgba(22,24,21,0.68));
    box-shadow: 0 18px 60px rgba(0,0,0,0.18);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    padding: 1.1em;
    text-decoration: none;
    transition: .35s ease;
}
.system-card:hover{
    border-color: rgba(0,186,150,0.58);
    box-shadow:
        0 16px 54px rgba(0,186,150,0.18),
        inset 0 1px 1px rgba(255,255,255,0.24);
    transform: translateY(-5px);
}
.system-card__logo{
    width: 4.7em;
    height: 4.7em;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: .8em;
    background: rgba(255,255,255,0.07);
    overflow: hidden;
}
.system-card__logo img{
    width: 78%;
    height: 78%;
    object-fit: contain;
}
.system-card__logo--wide{
    width: 8.5em;
}
.system-card__logo--wide img{
    width: 90%;
}
.system-card__logo--icon .local-icon{
    color: var(--primary-100);
    font-size: 2.1em;
}
.system-card__body h4{
    margin: 0 0 .5em;
    color: var(--text-100);
    font-size: 1.25em;
}
.system-card__body p{
    margin: 0;
    color: var(--text-200);
    font-size: .95em;
    line-height: 1.55;
}
.system-card__button{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.5em;
    border-radius: .5em;
    background: rgba(0,186,150,0.16);
    color: var(--primary-100);
    font-weight: 700;
    text-decoration: none;
    transition: .3s ease;
}
.system-card__button:hover{
    background: var(--primary-100);
    color: var(--bg-100);
}


.contact-section{
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 10em;
    padding-bottom: 4em;
}
.contact-section h3{
    font-size: 2em;
    letter-spacing: .1em;
    color: var(--primary-100);
    margin-bottom: 1em;
    text-align: center;
}
.social-media-frames{
    display: flex;
    flex-direction: row;
    width: 90%;
    margin-top: 2em;
}
.social-media-frame{
    display: flex;
    flex-direction: row;
    justify-self: space-between;
    align-items: center;
    border-radius: .8em;
    margin: 1em .5em;
    padding: 1em;
    text-decoration: none;
    transition: .5s;
    width: 100%;
    background: linear-gradient(
        135deg,
        rgba(74,83,70,0.35),
        rgba(22,24,21,0.6)
    );
    backdrop-filter: blur(16px) saturate(150%);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.22);
}
.social-media-frame:hover{
    border-color: rgba(0,186,150,0.6);
    box-shadow:
        0 14px 50px rgba(0,186,150,0.25),
        inset 0 1px 1px rgba(255,255,255,0.35);
    transform: translateY(-4px) scale(1.01);
}
.social-media-frame:hover .local-icon{
    color: var(--primary-100);
}
.square-frame{
    width: 7em;
    height: 7em;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: .5em;
}
.left-social-media .local-icon{
    font-size: 5em;
    color: var(--text-100);
    transition: .5s;
}

.right-social-media{
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: .5em;
    color: var(--text-100);
}
.right-social-media h5{
    margin: 0;
    padding: 0;
    font-size: 1.7em;
    margin-bottom: .7em;
}
.right-social-media p{
    margin: 0;
    padding: 0;
    font-size: 1em;
    text-align: center;
}


.dag-desc-section{
    position: relative;
    height: 340vh;
    margin-top: 6em;
}
.dag-desc-sticky{
    position: sticky;
    top: 0;
    display: grid;
    grid-template-rows: auto 1fr;
    width: min(1180px, 100%);
    height: 100vh;
    height: 100svh;
    margin: 0 auto;
    padding: clamp(4rem, 10vh, 7rem) 5% clamp(2rem, 6vh, 4rem);
    box-sizing: border-box;
    overflow: hidden;
}
.dag-desc-section h3{
    font-size: 2em;
    letter-spacing: .1em;
    color: var(--primary-100);
    margin: 0;
    text-align: center;
    will-change: transform;
}
.dag-info{
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(15rem, .48fr);
    align-items: center;
    gap: clamp(2rem, 6vw, 5rem);
    width: 100%;
    min-height: 0;
    margin: 0 auto;
}
.dag-info p{
    margin: 0;
    font-size: 1em;
    line-height: 1.6;
    text-align: justify;
}
.dag-p{
    color: var(--primary-100);
}
.main-logo{
    width: 100%;
    height: auto;
    margin: 0;
}
.main-logo img{
    width: 100%;
    height: auto;
    max-height: 42vh;
    object-fit: contain;
}

.scroll-effects .about-title{
    transform: translateY(var(--about-title-offset, 28vh));
}
.scroll-effects .about-copy{
    opacity: var(--about-copy-opacity, 0);
    transform: translateY(var(--about-copy-offset, 64px));
    will-change: opacity, transform;
}
.scroll-effects .about-logo{
    opacity: var(--about-logo-opacity, 0);
    transform: translateX(var(--about-logo-offset, 72px)) scale(var(--about-logo-scale, .94));
    will-change: opacity, transform;
}



.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s ease, transform 1s ease;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 1s ease, transform 1s ease;
}
.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}
.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 1s ease, transform 1s ease;
}
.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}



  footer{
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    background: #161815;
  }
  footer h5{
    margin: 0;
    padding: 1em;
    font-size: 1em;
    font-weight: 400;
  }


  @media (max-width:700px){
    header{
        padding: .9em 4%;
        margin: 0;
        justify-content: space-between;
    }
    .left-header{
        flex: 1;
    }
    .center-header{
        display: none;
    }
    .right-header{
        flex: 1;
    }
    .right-header .local-icon{
        font-size: 1.7em;
    }
    .first-topic img{
        height: auto;
        max-height: 22em;
      }
    
    
}
@media (max-width: 950px){
    .systems-grid{
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .system-card{
        min-height: 17rem;
    }
    .social-media-frames{
    display: flex;
    flex-direction: column !important;
    width: 95%;
    margin-top: 2em;
}
.social-media-frame{
    width: 100%;
    margin: .5em 0 !important;
}

    .dag-desc-section{
        height: auto;
        margin-top: 7em;
        padding: 4em 4% 7em;
    }
    .dag-desc-sticky{
        position: relative;
        display: block;
        width: 100%;
        height: auto;
        padding: 0;
        overflow: visible;
    }
    .dag-info{
        grid-template-columns: 1fr;
        gap: 2.5em;
        width: 95%;
        margin-top: 2.5em;
    }
    .main-logo{
        width: min(80%, 26rem);
        margin: 0 auto;
    }
    .scroll-effects .about-title,
    .scroll-effects .about-copy,
    .scroll-effects .about-logo{
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 620px){
    .systems-grid{
        grid-template-columns: 1fr;
    }
    .systems-section{
        width: 94%;
        padding-top: 3em;
    }
}

@media (prefers-reduced-motion: reduce){
    html{
        scroll-behavior: auto;
    }
    .main-view{
        position: relative;
    }
    .dag-desc-section{
        height: auto;
        padding: 6em 0;
    }
    .dag-desc-sticky{
        position: relative;
        height: auto;
        overflow: visible;
    }
    .scroll-effects .about-title,
    .scroll-effects .about-copy,
    .scroll-effects .about-logo,
    .reveal,
    .reveal-left,
    .reveal-right{
        opacity: 1;
        transform: none;
        transition: none;
    }
    /* La decoración de la portada es sólo movimiento: sin él no aporta nada,
       así que se retira en vez de dejarla congelada en un fotograma. */
    .hero-fx{
        display: none;
    }
    header{
        transition: none;
    }
}

/* Sin JavaScript nadie añadiría .is-visible y la navegación quedaría
   inalcanzable para siempre: mejor visible desde el principio. */
.no-js header{
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}
