body{
            background-color: var(--bluesky);
            display: grid;
            color: white;
            padding: 0;
            margin: 0;
            font-family: "Veintiuno", sans-serif;
        }
:root{
    --blue: #014880;
    --bluesky: #02cfee;
    --bluelite:#6DD0E1;
    --bluemid:#1B75A7;
    --heading: 3.150rem;
    --text: 1.25rem;
    --nav-bg:#0d4a7a;
      --nav-accent:#6DD0E1;
      --nav-text:#ffffff;
      --icon-size: 28px;
      --transition: 0.45s cubic-bezier(0.77, 0, 0.175, 1);
}

*{box-sizing: border-box;}


@font-face {
    font-family: Veintiuno;
    src: url(fonts/Veintiuno-Regular.ttf);
    font-weight: 400;
}
@font-face {
    font-family: Veintiuno;
    src: url(fonts/Veintiuno-Medium.ttf);
    font-weight: 600;
}
@font-face {
    font-family: Veintiuno;
    src: url(fonts/Veintiuno-Bold.ttf);
    font-weight: 800;
}
h1, h2, h3{
    font-family: "Veintiuno";
    font-weight: 400;
}

.bajada{
    font-size: var(--heading);
}
.text{
    font-size: var(--text);
}

/*MENU*/

/* ── header ── */
    .site-header {
      position: absolute;
      top: 0;
      right: 0;
      z-index: 1000;
      display: flex;
      align-items: center;
      gap: 1.25rem;
      padding: 1.25rem 1.75rem;
    }
 
    /* ── icon buttons ── */
    .nav-icon-btn {
      background: none;
      border: none;
      cursor: pointer;
      color: var(--nav-text);
      padding: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      width: var(--icon-size);
      height: var(--icon-size);
      transition: opacity 0.2s;
    }
    .nav-icon-btn:hover { opacity: 0.75; }
    .nav-icon-btn svg   { width: 100%; height: 100%; }
 
    /* ── hamburger ── */
    .hamburger {
      position: relative;
      width: var(--icon-size);
      height: var(--icon-size);
    }
    .hamburger__icon {
      position: absolute;
      inset: 0;
      transition: opacity 0.25s, transform 0.25s;
    }
    /* X hidden by default */
    .hamburger__close {
      opacity: 0;
      transform: rotate(-90deg);
    }
 
    /* open state */
    .nav-open .hamburger__bars  { opacity: 0; transform: rotate(90deg); }
    .nav-open .hamburger__close { opacity: 1; transform: rotate(0deg); }
 
    /* ── fullscreen overlay ── */
    .nav-overlay {
      position: fixed;
      inset: 0;
      z-index: 999;
      background-color: var(--nav-bg);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
 
      /* hidden state */
      opacity: 0;
      visibility: hidden;
      transition:
        opacity var(--transition),
        visibility var(--transition);
    }
 
    .nav-open .nav-overlay {
      opacity: 1;
      visibility: visible;
    }
 
    /* ── nav list ── */
    .nav-menu {
      list-style: none;
      margin: 0;
      padding: 0;
      text-align: center;
    }
 
    .nav-menu li {
      overflow: hidden; /* clip the slide-up */
      margin: 0;
    padding: 0;
    }
 
    .nav-menu a {
      display: block;
      font-size: clamp(2rem, 5vw, 3.5rem);
      font-weight: 400;
      letter-spacing: 0;
      color: var(--nav-text);
      text-decoration: none;
      padding: 1rem 0;
      line-height: 1.1;
      /* slide-up animation */
      transform: translateY(110%);
      transition:
        transform var(--transition),
        color 0.2s;
    }
    .nav-menu a:hover {
      color: var(--nav-accent);
    }
    /*.nav-menu a[aria-current="page"],
    .nav-menu a.active {
      color: var(--nav-accent);
    }/*
 
    /* staggered reveal when open */
    .nav-open .nav-menu li:nth-child(1) a { transform: translateY(0); transition-delay: 0.05s; }
    .nav-open .nav-menu li:nth-child(2) a { transform: translateY(0); transition-delay: 0.10s; }
    .nav-open .nav-menu li:nth-child(3) a { transform: translateY(0); transition-delay: 0.15s; }
    .nav-open .nav-menu li:nth-child(4) a { transform: translateY(0); transition-delay: 0.20s; }
    .nav-open .nav-menu li:nth-child(5) a { transform: translateY(0); transition-delay: 0.25s; }
 
    /* ── scroll lock ── */
    body.scroll-locked {
      overflow: hidden;
    }

section.hero {
    color: white;
    text-align: center;
    height: 100vh;
    background-image: url(../img/herobg.svg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center top;
}
.hero .content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /*padding-top: 200px;*/
    height: 100%;
}
section.hero:after {
    content: "";
    display: block;
    width: 100%;
    height: 400px;
    background: linear-gradient(0deg, #02cfee, transparent);
    position: absolute;
    left: 0;
    bottom: 0;
}


.hero h1{
    font-size: 3.125rem;
}
.heading {
    position: relative;
    margin-bottom: 3rem;
}
section.about {
    text-align: center;
    padding: 4rem 0 0 0;
    color: var(--blue);
   
}
.about .content {
    display: flex;
    flex-direction: column;
    color: white;
}
.small-caps {
    font-size: 1.4rem;
}
.about h2 {
    font-size: 3.125rem;
    line-height: 105%;
    
}
.images-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
}
.images-wrapper img {
    max-width: 100%;
}

  .logo-wrapper {
            width: 100%;
            max-width: 728px;
            padding: 2rem 3rem;
            margin: 0 auto;
            box-sizing: border-box;
            position: absolute;
            bottom: 0;
            transform: translateX(-50%);
            left: 50%;
        }
 .members-wrapper {
            display: flex;
            margin: auto;
            gap: 4rem;
            width: 100%;
            justify-content: center;
            font-size: 0.75rem;
            background: url(../img/VEINTIUNO-b.jpg);
            background-size: 100%;
            background-repeat: no-repeat;
            background-color: white;
            /*padding-bottom: 5rem;*/
            background-position: top;
            min-height: 280px;
            position: relative;
        }


.members-wrapper:after {
    content: "";
    display: block;
    width: 100%;
    height: 210px;
    background: linear-gradient(0deg, white, transparent);
    position: absolute;
    left: 0;
    bottom: 0;
}
.heading-wrapper {
            background-color: #02cfee;
            /*background-image: url(../img/members-top.jpg);
            background-size: 100%;
            background-repeat: no-repeat;
            background-position: bottom;*/
        }
.content-wrapper {
            width: 100%;
            max-width: 1280px;
            margin: auto;
        }
.names {
            width: 48%;
             max-width: 400px;
             position: relative;
              color:var(--blue);
    z-index: 2;
        }
 .names h3 {
            font-size: 2.5rem;
            line-height: 90%;
            margin: 0;
            
            font-weight: 600;
           
        }
.names h4 {
         font-size: 1.23rem;
         font-weight: 400;
        }
.mails a {
            color: #014880;
            text-decoration: none;
        }
.temp-subheading{
            padding: 1rem;
        }
.temp-subheading h2 {
            color: #014880;
            font-size: 1rem;
        }
.trabajos{
    background-color: white;
}   
.trabajos .content {
    display: grid;
    grid-template-columns: auto auto;
    row-gap: 0px;
}
.trabajos .heading, .colaboradores .heading, .servicios .heading, .clientes .heading{
    text-align: center;
    color: var(--blue);
    padding: 1rem 0;
}
.work-item{position: relative; transition: all 0.3s ease;}
.work-item:hover {
    filter: brightness(0.7);
}
.work-item img {
    width: 100%;
    object-fit: cover;
    height: 100%;
}

.map {
    display: block;
    overflow: hidden;
    max-width: 730px;
    margin: auto;
    width: 100%;
}


.work-name {
    position: absolute;
    left: 0;
    bottom: 0;
    padding: 24px;
    background: linear-gradient(360deg, black 3%, transparent 100%);
    width: 100%;
    font-size: 0.85rem;
}
section.colaboradores, .servicios, .clientes {
    background: white;
    padding: 4rem 1.5rem 0 1.5rem;
}
.servicios .content-wrapper h3, .clientes .heading h3 {
    font-size: 3.125rem;
}
.servicios .content-wrapper h3{margin-bottom: 5rem;}
.services-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1.5rem;
      max-width: 1280px;
      margin-inline: auto;
      padding: 0;
      list-style: none;
      line-height: 90%;
      margin: 8rem auto;
    }

    /*.services-grid {
    display: flex;
    align-items: flex-start;
    max-width: 1280px;
    margin: 8.5rem auto;
    gap: 1rem; /* el gap que ya tengas
    }*/

    .services-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem; /* ídem */
    will-change: transform;
    }

    /* ── shared card base ── */
    .card {
      border-radius: 16px;
    overflow: hidden;
    min-height: 500px;
    transition: all 0.4s ease;
    }
    .card:hover{filter: brightness(0.9);}
    .card--photo {
  overflow: hidden;    /* evita que la imagen desborde el borde redondeado */
  min-height: 500px;   /* el valor que ya tenías */
}
    /* ── photo cards ── */
    .card--photo img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }
 
    /* ── colored label cards ── */
    .card--label {
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: center;
      padding: 1.5rem;
      color: #fff;
      font-size: 3.125rem;
      line-height: 90%;
    }
 
    .card--blue   { background-color: var(--bluesky); }
    .card--bluelite { background-color: var(--bluelite); }
    .card--bluemid { background-color: var(--bluemid); }
    
    section.clientes {
        padding-top: 8rem;
    }

    ul.clients-wrap {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    margin: auto;
    max-width: 980px;
    justify-content: center;
    list-style: none;
    padding: 0;
    gap: 24px 0;
}
.content-clientes {
    margin: auto;
    width: 100%;
    max-width: 1280px;
}

.clientes {
    background: linear-gradient(0deg, #035981 0%, #73C9E7 50%, white 100%);
}

li.client {
    min-height: 100px;
    min-width: 230px;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Estado inicial (oculto) */
    opacity: 0;
    transform: translateY(25px) scale(0.95);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    /* transition-delay se asigna dinámicamente por JS, ver abajo */
    
}
.client.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
li.client img {
    max-height: 90px;
}
.footer-content {
    display: flex;
    width: 100%;
    max-width: 1280px;
    margin: auto;
    justify-content: space-between;
    padding: 0 0 3rem 0;
}
.mails {
    font-size: 3.125rem;
    line-height: 120%;
    display: grid;
    gap: 0;
}
p.mail {
    margin: 0;
}
.adress {
    font-size: 1.3rem;
    line-height: 150%;
}
.adress p {
    line-height: 110%;
}
.adress p:last-child {
    margin: 0;
}
.mails-data {
    display: grid;
    gap: 4rem;
}
.short-logo {
    width: 100%;
    max-width: 410px;
}
section.clientes .contact-cta h3 {
    margin: 12rem auto 2rem;
    font-size: 3rem;
    color: var(--blue);
    text-align: center;
    font-weight: 400;
}
section.clientes .contact-cta h3:last-child {
    margin: 0 0 18.5rem 0;
}

/*LIGHTBOX*/
#lb-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
#lb-overlay.active {
  display: flex;
}
#lb-container {
  position: relative;
  width: 90vw;
  max-width: 960px;
  aspect-ratio: 16 / 9;
}
#lb-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}
#lb-close {
  position: absolute;
  top: -2rem;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

/* --- Animación fade-in --- */
 
  .fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  }
 
  .fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
 
  /* Variante opcional: fade simple sin desplazamiento */
  .fade-in.no-move {
    transform: none;
  }

@media (width <= 1024px) {
             .coming-soon {
                background-image: url(proximamente-bg-xs.jpg);
             }
             .logo-wrapper {
                padding: 2rem;
             }
             .temp-text-wrapper {
            padding-bottom: 3rem;
            }
            .services-grid {
            grid-template-columns: repeat(2, 1fr);}
            .members-wrapper{padding: 0 1.5rem;}
             
        }

@media (width <= 768px) {   
    .hero .content{padding-top: 0;}
    .hero h1 {font-size: 2.75rem;}
    .heading{margin-bottom: 2rem;}
    .members-wrapper{padding: 1.5rem; min-height: 96px;}
    .members-wrapper .names h3 {
    font-size: 20px;
    }
    .members-wrapper .names h4 {
    font-size: 0.85rem;
    }
    .about h2 {
    font-size: 1.35rem;
    }
    section.colaboradores{padding: 2rem 0;}
    .map{padding: 24px;}
    .map img {width: 100%;}
    .trabajos .content{grid-template-columns: auto;}
    .services-grid{gap: 1rem;}
    .card--label {
    padding: 1rem;
    font-size: 1.2rem;
    }
    .footer-content{
        padding: 1.5rem;
        flex-direction: column;
    }
    
    .mails-data{text-align: center;}
    .mails, section.clientes .contact-cta h3 {font-size: 1.35rem; margin: 2rem;}
    section.clientes .contact-cta h3:last-child{margin-bottom: 7rem;}
    .contact-cta {padding: 0rem;}
    .card{min-height: 320px;}
    .servicios .content-wrapper h3, .clientes .heading h3 {
        font-size: 1.35rem;
    }
    li.client {
    min-height: 0;
    min-width: 200px;
    }
    .trabajos .heading, .colaboradores .heading, .servicios .heading, .clientes .heading{padding: 1rem;}
    section.hero{padding: 3rem 1.5rem 0 1.5rem;}
    .heading-wrapper{padding: 1.5rem;}
    .footer-content{padding: 0;}
    .adress p{font-size: 0.95rem;}
    .short-logo{margin: 2rem auto;}
    .mails-data{gap: 1rem;}
}

@media (width <= 480px) {  
    .images-wrapper{
        overflow: hidden;
        align-items: center;
        position: relative;
    }
    .images-wrapper img {
        max-width: fit-content;
        width: 140%;
    }
    .members-wrapper {background-image: none;}
    .about .content .images-wrapper:after {
        content: "";
        display: block;
        position: absolute;
        width: 100%;
        height: 80px;
        background: linear-gradient(0deg, white, transparent);
        bottom: 0;
        left: 0;
    }
    .card {
        min-height: 230px;
    }
}