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



/* ===== HEADER ===== */
.header {
position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 100px);
  max-width: 1500px;
  height: 70px;
  border-radius: 20px;
  overflow: hidden;
  z-index: 1000000;

}

@media (max-width: 768px) {
  .header {
position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 50px);
  max-width: 1500px;
  height: 70px;
  border-radius: 20px;
  overflow: hidden;
  z-index: 1000000;
}
}


/* Fondo glass */
.header-bg {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(20px);
}

/* ===== TOP BAR ===== */
.header-top {
  position: relative;
  z-index: 2;
  height: 70px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
@media (max-width: 768px) {
.header-top {
  padding: 0 20px;

}
}


/* Logo */
.logo {
  display: block;
  height: 50px;
}

.logo img {
  display: block;
  height: 100%;
  width: auto;
}

/* ===== BURGER ===== */
.burger {
  width: 25px;
  height: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.burger span {
  height: 2px;
  width: 100%;
  background: #fff;
  transition: transform 0.4s ease, opacity 0.3s ease;
}

.burger.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* ===== MENU ===== */
.mega {
  position: relative;
  z-index: 1;
}

.mega-mobile-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  padding: 36px 32px 48px;
}

.mobile-link {
  font-size: 20px;
  letter-spacing: 0.14em;
text-transform: uppercase;
 font-weight: 300;
  color: #ffffff;
}

/* ===== ESTADO EXPANDIDO ===== */

.header-expanded .burger span {
  background: #ffffff;
}

body { 
    
  background:
  radial-gradient(circle at 20% 30%, #000000, transparent 40%),
  radial-gradient(circle at 80% 25%, #303644, transparent 45%),
  radial-gradient(circle at 50% 80%, #131518, transparent 50%),
  radial-gradient(circle at 70% 60%, #2f3a52, transparent 45%),
  #0b0d10;

background-size: 220% 220%;
background-position: 35% 25%;
    background-attachment: fixed;
    min-height: 100vh;
    font-family: 'Figtree', sans-serif;
    color: #333;
    max-width: 1600px;
    margin: auto;
}



/* Ruido */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http:/www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}



.container{
  display: flex;
  flex-wrap: wrap;
  margin-top: 30px;
  margin-left: 35px;
  margin-right: 35px;
  padding-left: 35px; 
  padding-right: 35px;
}

@media (max-width: 768px) {
  .container{
  margin-top: 10px;
  margin-left: 0px;
  margin-right: 0px;
  padding-left: 25px; 
  padding-right: 25px;
}
}


.textos {
padding-bottom: 20px;
}

.servicioshome {
width: 50%;
min-width: 400px;
padding-top: 10px;
padding-bottom: 10px;
}
@media (max-width: 768px) {
  .servicioshome{
    width: 100%;
    min-width: 0; 
  }
}

.clientes {
padding: 50px 60px 50px 60px;
}

@media (max-width: 768px) {
.clientes {
padding: 50px 30px 50px 30px;
}
}

.clientes img{
  width: 100%;
  max-width: 180px;
  height: auto;
}

hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin: 10px 0;
}

h1 {
  font-family: 'Gabarito', sans-serif;
    font-size: 42px;
    margin-bottom: 20px;
    padding-top: 20px;
    font-weight: 100;                                
    color: #fff;
}

h2 {
  font-family: 'Gabarito', sans-serif;
    font-size: 26px;
    margin-bottom: 20px;
    padding-top: 20px;
    color: #fff;
    font-weight: 100;
}
h3 {
  font-family: 'Gabarito', sans-serif;
    font-size: 20px;
    margin-bottom: 5px;
    padding-top: 5px;
    font-weight: 100;
    color: #fff;
}


h4{
    font-family: 'Gabarito', sans-serif;
      font-size: 16px;
      margin-bottom: 5px;
      padding-top: 5px;
      color: #dedddd;
      font-weight: 100;
  }

.cuerpocasos h3::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  background-color: #667eea;
  margin-right: 8px;
  vertical-align: middle;
}

.serviciosbull h2::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  background-color: #667eea;
  margin-right: 8px;
  vertical-align: middle;
}

h4::before {
  content: "•";
  margin-right: 8px;
}

.tabu {
  padding-top: 20px;
}

.subtitular {
    font-size: 30px;
}

.nuestra {
  display: flex;
  align-items: center;
}

.icono-h2 {
  width: 30px;     
  margin-right: 10px;
}

ul {
  padding: 10px;
  padding-left: 30px;
  color: #dedddd;
}
li {
  padding: 4px;
}

.nobull {
  list-style-type: none;
}

.azulcasos { 
  color: #667eea; 
  font-family: 'Gabarito', sans-serif; 
  font-size: 18px; 
  margin-bottom: 5px; 
  padding-top: 5px; 
  font-weight: 100; 
}

.serviciocasos h2 {
    color: rgba(255, 255, 255, 0.5);
}

.habla {
   color: #667eea; 
}

p {  
    font-size: 18px;
    line-height: 1.6;
    color: #dedddd;
    padding-bottom: 5px;
    padding-top: 5px;
    font-weight: 100;
}

a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
}
a:hover {
    color: white;
}

.mobile-link a:hover {
  color: white
}

.foot {
    margin-top: 30px;
    margin-left: 70px;
    margin-bottom: 30px;
}

footer img {
  width: 35px;
  max-width: 95px;
  height: auto;
}


@media (max-width: 768px) {
  .foot {
    margin-top: 30px;
    margin-left: 25px;
    margin-bottom: 30px;
}
}

.copy {
    margin-top: 5px;
    font-size: 10px;
}

.web img{ 
  max-width: 1000px;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
} 
 
.web {  
   width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-bottom: 50px;
    gap: 20px;
    
}
.webcuatro { 
    padding-top: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    justify-content: center;
    padding-bottom: 30px;
} 

.webcuatro img { 
  max-width: 400px;
  width: 100%;
  object-fit: cover;
  border-radius: 15px;
} 

.linkweb{
   color: #667eea; 
  font-family: 'Gabarito', sans-serif; 
  font-size: 20px; 
  margin-bottom: 30px; 
  padding-top: 5px; 
  font-weight: 100; 
}

/* ===== formulario ===== */


.formulario {
  width: 50%;
  padding-top: 10px;
  padding-bottom: 40px;
}

@media (max-width: 955px) {
  .formulario {
    width: 100%;
    padding-top: 10px;
    padding-bottom: 10px;
}
}

.formulario-form  {
padding-top: 10px;
  }


.input-group {
  position: relative;
  margin-bottom: 25px;
}

.input-group input,
.input-group textarea {
  width: 100%;
  padding: 12px 10px;
  border: 2px solid rgba(255, 255, 255, 1);
  border-radius: 10px;
  background: none;
  outline: none;

  /* Tipografía consistente */
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  color: #ffffff;

  /* Animación suave al cambiar a rojo */
  transition: border-color 0.3s ease;
}

/* Placeholder */
.input-group input::placeholder,
.input-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
  font-weight: 300;
}

/* --- VALIDACIÓN: no rojo al cargar (solo cuando ya hay texto) --- */
.input-group input:not(:placeholder-shown):invalid,
.input-group textarea:not(:placeholder-shown):invalid {
  border-color: #ff4d4f;
}

.input-group input:not(:placeholder-shown):valid,
.input-group textarea:not(:placeholder-shown):valid {
  border-color: rgba(255, 255, 255, 1);
}

/* ===== Checklist (¿Qué necesitas?) ===== */
.checklist {
  border: none;           
  margin-bottom: 50px;
}

.checklist-title {
  font-family: 'Gabarito', sans-serif;
  font-size: 18px;
  font-weight: 200;
  color: #ffffff;
  margin-bottom: 12px;
}

.checklist-items {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.check-item input[type="checkbox"] {
  transform: scale(1.2);
  accent-color: #667eea;
}

.check-item span {
  font-size: 20px;
  font-weight: 400;
  color: #dedddd;
}

.checklist-note {
  margin-top: 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}

/* Borde rojo SOLO si el checklist tiene error (lo añade JS) */
.check-error {
  border: 2px solid #ff4d4f;
  padding: 15px;
  border-radius: 10px;
}

.submit {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
} 

/* ===== video ===== */

.contenedorvideo {
  position: relative;
  height: 75vh;
  overflow: hidden;
  margin-right: 20px;
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
}

@media (max-width: 768px) {
  .contenedorvideo {
  height: 60vh;
  margin-right: 0px;
}
}

.casos {
  position: relative;
  height: 40vh;
  min-height: 400px;
  overflow: hidden;
  margin-right: 20px;
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
  align-content: flex-end; 
}

@media (max-width: 768px) {
  .casos {
  height: 35vh;
  min-height: 250px;
  margin-right: 0px;
  }
 }


.videocasos {
  width: 100%;
  margin: 0 auto;
  max-width: 1000px;
  padding-bottom: 30px;
}

.videocasos iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border-radius: 15px;
}

.servicios {
  position: relative;
  height: 30vh;
  width: 100%;
  min-height: 400px;
  overflow: hidden;
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
  align-content: flex-end; 
  align-content: center;
  text-align: center;
}

/* TEXTO ENCIMA SERVICIOS */
.overlayservicios {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  padding: 2rem;
}

.overlayservicios::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 0;
  margin-left: 20px;
  margin-right: 20px;
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
}

.titularservicios {
  position: relative;
  z-index: 1000;
  margin: 0px;
  padding: 0px;
  padding-left: 70px;
  padding-top: 60px;
}


.titularservicios h1{
  margin: 0px;
  padding: 0px;
}

.servicios-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  margin-left: 20px;
  margin-right: 20px;
  padding-right: 40px;
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
}



/* TEXTO ENCIMA CASOS */
.overlaycasos {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  padding: 2rem;
}

.overlaycasos::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 0;
  margin-left: 20px;
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
}

@media (max-width: 768px) {
 .overlaycasos::before {
 margin-left: 0px;
}
}

.titularcasos {
  position: relative;
  z-index: 1000;
  margin: 0px;
  padding: 0px;
  padding-left: 70px
}

@media (max-width: 768px) {
.titularcasos {
  padding-left: 25px;
}
}


.titularcasos h1{
  margin: 0px;
  padding: 0px;
}

.casos-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  margin-left: 20px;
  margin-right: 20px;
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
}
@media (max-width: 768px) {
  .casos-img {
  margin-left: 0px;
  margin-right: 0px;
}
}

.serviciocasos {
  font-size: 20px;
  position: relative;
  z-index: 1000;
  padding-left: 70px;
  text-transform: uppercase;
  font-weight: 200; 
  
}

@media (max-width: 768px) {
.serviciocasos {
  padding-left: 25px;
  padding-right: 25px;
}
}

.serviciocasos a, .serviciocasos h2 { 
  font-size: 15px;
  
  margin:0px;
  margin-bottom: 30px;
  
}


 

/* VIDEO HOME */
.bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  margin-left: 20px;
  margin-right: 20px;
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
}

@media (max-width: 768px) {
  .bg-video {
 margin-left: 0px;
  margin-right: 0px;
}
}

/* TEXTO ENCIMA HOME */
.overlay {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  padding: 2rem;
  
}

/* Capa oscura */
.overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: -1;
  margin-left: 20px;
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
}

@media (max-width: 768px) {
 .overlay::before {
 margin-left: 0px;
}
}



/* Animacion letras */

.title {
line-height: 1.05;
}

/* Animacion links */

.gsap-link {
  position: relative;
  text-decoration: none;
}

.gsap-link .underline {
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
}




/* Logotipos en una cuadrícula estática. */
.carousel {
  width: 100%;
  opacity: 0.75;
}

.group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  justify-items: center;
  align-items: center;
  gap: 12px 24px;
}

.group img {
  display: block;
  width: min(100%, 140px);
  height: auto;
}

.contenedor {
    margin: 0 auto;
    margin-left: 35px;
    margin-right: 35px;
    padding-left: 35px;
    padding-right: 35px;
    padding-bottom: 35px;
    }
@media (max-width: 768px) {
  .contenedor {
    margin-left: 0px;
    margin-right: 0px;
    padding-left: 25px;
    padding-right: 25px;
    padding-bottom: 20px;
    }
    }


/* Grid casos */

.container-casos {
      margin: 0 auto;
      
      margin-top: 100px;
    margin-left: 35px;
    margin-right: 35px;
    padding-left: 35px;
    padding-right: 35px;
    padding-bottom: 35px;
    }
@media (max-width: 768px) {
  .container-casos {
    margin-top: 100px;
    margin-left: 0px;
    margin-right: 0px;
    padding-left: 25px;
    padding-right: 25px;
    padding-bottom: 20px;
    }
    }


    :root {
      --gap: 1rem;
      --radius: 16px;
      --bg: #0f172a;
      --card: #020617;
      --text: #e5e7eb;
      --muted: #94a3b8;
      --accent: #38bdf8;
      --colortxt: #fff;
    }

    header h1 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin: 0; }
    header p { color: var(--muted); margin: 0; }

    
    .grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
      gap: var(--gap);
    }

    .card {
      position: relative;
      overflow: hidden;
      border-radius: var(--radius);
      background: var(--card);
      box-shadow: 0 10px 30px rgba(0,0,0,.25);
      aspect-ratio: 4 / 3; /* mantiene proporción */
      cursor: pointer;
    }

    .card img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform .5s ease, filter .5s ease;
    }

    .card::after {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(to top, rgba(2,6,23,.85), rgba(2,6,23,.1) 60%);
      opacity: 0;
      transition: opacity .4s ease;
    }

    .card .info {
      position: absolute;
      left: 0;
      bottom: 0;
      padding: 1rem;
      z-index: 2;
      transform: translateY(10px);
      opacity: 0;
      transition: transform .4s ease, opacity .4s ease;
    }

    .card h3 {
        color: var(--colortxt);
      margin: 0 0 .25rem 0;
      font-size: 1rem;
    }

    .card span {
      font-size: .85rem;
      color: var(--accent);
    }

    .card:hover img {
      transform: scale(1.08);
      filter: saturate(1.1);
    }

    .card:hover::after { opacity: 1; }
    .card:hover .info {
      transform: translateY(0);
      opacity: 1;
    }

  




    
.contact-card {
  padding-left: 40px;
  width: 100%;
  max-width: 500px;
padding-bottom: 30px;
}

.contact-card h2 {
  text-align: left;
  color: #ffffff;
}


.input-group {
  position: relative;
  margin-bottom: 25px;
}

.input-group input,
.input-group textarea {
  width: 100%;
  padding: 12px 10px;
  border: 2px solid rgba(255, 255, 255, 1);
  border-radius: 10px;
  background: none;
  outline: none;

  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  color: #ffffff;

  transition: border-color 0.3s ease;
}

.input-group input::placeholder,
.input-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
  font-weight: 300;
}

.input-group input:not(:placeholder-shown):invalid,
.input-group textarea:not(:placeholder-shown):invalid {
  border-color: #ff4d4f;
}

.input-group input:not(:placeholder-shown):valid,
.input-group textarea:not(:placeholder-shown):valid {
  border-color: rgba(255, 255, 255, 1);
}



.cuerpocasos {
  padding-left: 70px;
  padding-right: 70px;
  padding-bottom: 70px;
  text-align: left;
}

@media (max-width: 768px) {
.cuerpocasos {
  padding-left: 25px;
  padding-right: 25px;
  padding-bottom: 70px;

}
}

.cuerpocasos h2 {
  color: #fff;
  max-width: 1200px;
}



/* h1 con fondo animado */




  .tituloanimado {
    padding-bottom: 20px;
    line-height: 1;
  padding-top: 120px;
  padding-left: 70px;
  text-align: left;
   font-size: clamp(50px, 10vw, 160px);
    font-weight: 900;
    letter-spacing: -2px;
    margin: 0;

    /* Fondo recortado */
    color: transparent;
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
    background-clip: text;

  
    --gradX: 100%;
    --b1x: 0%; --b1y: 0%;
    --b2x: 0%; --b2y: 0%;

    
    filter: saturate(1.12) contrast(1.06) brightness(1.05)
            drop-shadow(0 0 42px rgba(59,130,246,0.22));

   
    background-image:
      
      radial-gradient(35% 55% at calc(25% + var(--b1x)) calc(40% + var(--b1y)),
        rgba(56,189,248,0.45) 0%,
        rgba(56,189,248,0.00) 70%
      ),
      radial-gradient(40% 60% at calc(75% + var(--b2x)) calc(65% + var(--b2y)),
        rgba(167,139,250,0.40) 0%,
        rgba(167,139,250,0.00) 72%
      ),
      
      linear-gradient(90deg,
        #a78bfa 0%,
        #7c3aed 25%,
        #3b82f6 55%,
        #06b6d4 75%,
        #0ea5e9 100%
      );

    
    background-size:
  220% 220%,
  240% 240%,
  300% 300%;

    
    background-position:
      50% 50%,
      50% 50%,
      var(--gradX) 50%;

    background-repeat: no-repeat;

    
    background-blend-mode: screen, screen, normal;
  }

  
@media (max-width: 768px) {
  .tituloanimado {
padding-left: 25px;
padding-right: 25px;
}
}


/* Menú y formularios */
.header.header-expanded {
  height: auto;
}

.mega {
  max-height: calc(100dvh - 100px);
  overflow-y: auto;
}

.burger:focus-visible,
.gsap-link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.gsap-link .underline {
  transition: transform 160ms ease;
}

.gsap-link:is(:hover, :focus-visible) .underline {
  transform: scaleX(1);
}

.input-group > label {
  display: block;
  margin-bottom: 6px;
  color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .burger span,
  .gsap-link .underline,
  .formulario-form * {
    transition: none;
  }
}
