body {
      margin: 0;
      font-family: Arial, sans-serif;
    }
body {
  margin: 0;
  font-family: Arial, sans-serif;
}

/* ================= NAVBAR ================= */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: transparent;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1rem; /* reducimos un poco el padding */
  box-sizing: border-box; /* importante para que el padding no aumente el ancho */
  z-index: 1000;
}

.logo img {
  height: 40px;
  width: auto;
}

/* ================= LINKS ================= */


/* Contenedor de links con scroll horizontal en m贸vil si hace falta */
.nav-links {
  display: flex;
  gap: 1rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  color: #fff; /* azul marino de tu paleta */
  padding: 0.5rem 1rem;      /* opcional, para dar espacio */
  border-radius: 6px;        /* opcional, bordes redondeados */
}

/* Evitar que el scroll muestre barra en navegadores */
.nav-links::-webkit-scrollbar {
  display: none;
}

/* Links */

.nav-links a {
  white-space: nowrap;
  position: relative;
  text-decoration: none;
  color: white;
  padding: 10px 12px;
  display: inline-block;
  font-weight: 500;
  text-shadow:
    1px 1px 0 #000,
    2px 2px 0 rgba(0,0,0,.6),
    3px 3px 0 rgba(0,0,0,.4);
}

/* L韓ea naranja */
.nav-links a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 3px;
  background: #f69206;
  transform: translateX(-50%);
  transition: width .3s ease;
  border-radius: 5px;
}

/* Hover y enlace activo */
.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

nav.hero-active {
  background: transparent;
}

nav.historia-active {
 background: rgba(1, 6, 46, 0.82);
  box-shadow: 0 4px 15px rgba(0,0,0,.2);
}

nav.nosotros-active {
  background: rgba(1, 6, 46, 0.82);
  box-shadow: 0 4px 15px rgba(0,0,0,.25);
}

nav.categoria-active,
nav.redes-active,
nav.contacto-active {
  background: rgba(1, 6, 46, 0.82);
  box-shadow: 0 4px 15px rgba(0,0,0,.25);
}






/* ================= MENU HAMBURGUESA ================= */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.menu-toggle span {
  height: 3px;
  width: 25px;
  background: white;
  margin: 4px 0;
  border-radius: 5px;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 60px;
    right: 0;
    background: #041a6d;
    flex-direction: column;
    width: 220px;
    text-align: right;
    padding: 1rem;
    display: none;
  }

  .nav-links a {
    margin: 0.4rem 0;
  }

  .nav-links.active {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }
}

/* ================= HERO ================= */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

/* VIDEO DE FONDO */
.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 1;
}

/* OVERLAY (igual que tu degradado) */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(9,33,96,0.94), rgba(246,146,6,0.6));
  z-index: 2;
}

/* CONTENIDO ENCIMA */
.hero-content {
  position: relative;
  z-index: 3;
}



.hero h1 {
  font-size: 3rem;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.5);
}

.hero p {
  font-size: 1.2rem;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.4);
}

.nosotros {
  position: relative;
  height: 100vh;
  background: linear-gradient(rgba(9, 33, 96, 0.94), rgba(246, 146, 6, 0.6)), url(../img/03.webp) center bottom no-repeat;
  background-size: cover; /* cubre todo el ancho de la pantalla */
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
}


.nosotros h1 {
  color: #041a6d;
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.nosotros p {
  color: #0262d6;
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.nosotros .container{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap; /* En m髒iles se acomodan una debajo de otra */
}

.nosotros .cards{
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.card{
    background: linear-gradient(135deg, rgba(4,26,109,0.95) 0%, rgba(2,98,214,0.9) 100%);
    border: 2px solid rgba(57,192,236,0.3);
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
    padding: 30px 25px;
    width: 380px;
    transition: .4s;
    position: relative;
    overflow: hidden;
}

.cardx{
    display: flex;
    justify-content: center;
    align-items: center;
}

.cardx img{
    width: 460px;
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    object-fit: cover;
}
/* Efecto hover */
.card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(57,192,236,0.25) 0%, transparent 60%);
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.6s ease;
}

.card:hover::before {
  transform: translate(-50%, -50%) scale(1);
}

.card:hover {
  transform: translateY(-10px);
  border-color: #39c0ec;
  box-shadow: 0 15px 30px rgba(2,98,214,0.5);
}

/* Título */
.card h2 {
  font-size: 1.6rem;
  color: #f69206;
  margin-bottom: 15px;
  letter-spacing: 1px;
}

/* Texto */
.card p {
  color: #dce7ff;
  font-size: 1rem;
  line-height: 1.6;
}

/* Línea decorativa */
.card h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #f69206, #ef6802);
  margin: 10px auto 0;
  border-radius: 4px;
}


.categoria {
  background: linear-gradient(rgba(246, 146, 6, 0.6), rgba(9, 33, 96, 0.94)), url(../img/08.webp) no-repeat bottom center;
  color: #fff;
  padding: 80px 10%;
  position: relative;
  overflow: hidden;
}

.categoria::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
  background: linear-gradient(120deg, rgba(57,192,236,0.1) 0%, rgba(246,146,6,0.1) 100%);
  clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%);
}

.categoria h2 {
  color: #f69206;
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.categoria .contenido {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  align-items: flex-start;
  gap: 60px;
  position: relative;
  z-index: 2;
}

/* Subtítulos principales */
.categoria h3 {
  color: #39c0ec;
  font-size: 1.5rem;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.categoria ul {
  list-style: none;
  padding: 0;
  margin: 0 0 40px 0;
}

.categoria li {
  position: relative;
  margin-bottom: 10px;
  padding-left: 32px;
  color: #e2e9ff;
  font-size: 1.05rem;
  line-height: 1.6;
  transition: all 0.3s ease;
}

/* 🔹 ícono moderno en forma de rombo */
.categoria li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 10px;
  height: 10px;
  background: linear-gradient(135deg, #f69206, #ef6802);
  transform: rotate(45deg);
  border-radius: 2px;
  transition: transform 0.3s ease, background 0.3s ease;
}

/* efecto hover elegante */
.categoria li:hover::before {
  transform: rotate(45deg) scale(1.3);
  background: linear-gradient(135deg, #39c0ec, #0262d6);
}

.categoria li:hover {
  color: #ffffff;
}


/* Línea divisoria decorativa */
.categoria .bloque {
  border-left: 3px solid rgba(246,146,6,0.5);
  padding-left: 20px;
  margin-bottom: 30px;
}

/* Responsivo */
@media (max-width: 900px) {
  .categoria .contenido {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.intro {
  text-align: left;
  color: #fff;
  max-width: 600px;
}

/* Imagen responsiva */
.intro img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  
}

/* Pequeña animación al pasar el mouse */
.intro img:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 24px rgba(57, 192, 236, 0.4);
}

/* En pantallas pequeñas (móvil) */
@media (max-width: 768px) {
  .intro {
    text-align: center;
  }

  .intro img {
    margin: 1.5rem auto 0;
    width: 90%;
  }
}

.contacto {
  height: 90vh;
  background: 
    linear-gradient(rgba(246,146,6,0.6),rgba(9,33,96,0.94)),
    url('../img/07.webp') no-repeat bottom center;
  background-size: cover;
  color: white;
  padding: 4rem 2rem;
  overflow: hidden;
}

.titulo-contacto {
  text-align: center;
  color: white;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  font-weight: 700;
}

/* CONTENEDOR GENERAL */
.contenido2 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* FORMULARIO (IZQUIERDA) */
.formulario-contacto {
  flex: 1 1 45%;
  background: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  
  /* 🔹 Centramos el contenido del formulario */
  display: flex;
  flex-direction: column;
  align-items: center;     /* Centra horizontalmente */
  justify-content: center; /* Centra verticalmente (si tiene espacio) */
  text-align: center;      /* Centra los textos */
}


.formulario-contacto h3 {
  color: white;
  margin-bottom: 1.2rem;
  font-size: 1.3rem;
  font-weight: bold;
}

.formulario-contacto input,
.formulario-contacto textarea {
  width: 100%;
  padding: 0.8rem;
  margin-bottom: 1rem;
  border: none;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.95);
  font-family: inherit;
}

.formulario-contacto button {
  background: linear-gradient(90deg, #f69206, #ef6802);
  color: white;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s ease, transform 0.3s ease;
}

.formulario-contacto button:hover {
  background: linear-gradient(90deg, #39c0ec, #0262d6);
  transform: translateY(-3px);
}

/* IMAGEN + REDES (DERECHA) */
.contacto-info {
  flex: 1 1 45%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.contacto-info img {
  width: 100%;
  max-width: 520px;
 
}

/* REDES SOCIALES */
.redes {
  margin-top: 1.5rem;
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

.redes a {
  font-size: 1.8rem;
  transition: transform 0.3s ease;
}

.redes a:hover {
  transform: scale(1.2);
}

.redes .facebook { color: #1877f2; }
.redes .instagram {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, 
  #fd5949 45%, #d6249f 60%, #285AEB 90%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.redes .tiktok { color: #000000; }
.redes .whatsapp { color: #25D366; }
.redes .twitter { color: #000000; }

/* RESPONSIVO */
@media (max-width: 768px) {
  .contenido2 {
    flex-direction: column;
    text-align: center;
  }

  .formulario-contacto,
  .contacto-info {
    flex: 1 1 100%;
  }

  .contacto-info img {
    max-width: 90%;
  }
}

.redes-section {
  padding: 5rem 2rem;
  background: linear-gradient(rgba(9, 33, 96, 0.94), rgba(246, 146, 6, 0.6)), url(../img/11.webp) center bottom no-repeat;
  background-size: cover;
  text-align: center;
  color: #fff;
  overflow: hidden;
  position: relative;
}

.redes-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 80%, rgba(246,146,6,0.3), transparent 60%);
  z-index: 0;
}

.titulo-redes {
  font-size: 2rem;
  margin-bottom: 3rem;
  font-weight: 700;
  color: white;
  letter-spacing: 3px;
  position: relative;
  z-index: 1;
}

.contenedor-redes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.card-red {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(57,192,236,0.3);
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
  overflow: hidden;
  backdrop-filter: blur(8px);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.card-red:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 10px 30px rgba(246,146,6,0.5);
}

.preview-red {
  height: 150px;
  background-size: cover;
  background-position: center;
  border-bottom: 2px solid rgba(57,192,236,0.4);
}

/* Fondos futuristas tipo “preview” */
.preview-red.instagram {
  background-image: url('../img/R01.webp'),
    linear-gradient(135deg, #ef6802, #f69206, #39c0ec);
  background-blend-mode: overlay;
}

.preview-red.facebook {
  background-image: url('../img/R02.webp'),
    linear-gradient(135deg, #0262d6, #041a6d);
  background-blend-mode: overlay;
}

.preview-red.tiktok {
  background-image: url('../img/R03.webp'),
    linear-gradient(135deg, #041a6d, #39c0ec, #f69206);
  background-blend-mode: overlay;
}

.preview-red.twitter {
  background-image: url('../img/R04.webp'),
    linear-gradient(135deg, #39c0ec, #0262d6);
  background-blend-mode: overlay;
}

.card-red h3 {
  font-size: 1.3rem;
  margin: 1rem 0 0.5rem;
  color: #fff;
}

.btn-seguir {
  display: inline-block;
  background: linear-gradient(90deg, #f69206, #ef6802);
  color: #fff;
  padding: 0.6rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.btn-seguir:hover {
  background: linear-gradient(90deg, #39c0ec, #0262d6);
  transform: scale(1.05);
}

/* FULLSCREEN */
#loader {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #092160, #0d2c6c, #f69206);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* CONTENEDOR */
.loader-wrapper {
  text-align: center;
}

/* LOGO ARRIBA */
.logo-loader {
  width: 190px;   /* 🔥 más grande */
  max-width: 90vw; /* sigue siendo responsive */
  margin-bottom: 8px;

  animation: logoPop 1.2s ease;

  
}

/* ANIMACIÓN LOGO */
@keyframes logoPop {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.circle {
  width: 30px;
  height: 30px;
  margin: 0 auto;
}

/* SVG */
circle {
  fill: none;
  stroke-width: 3; /* 🔥 más delgado porque es pequeño */
  transform: rotate(-90deg);
  transform-origin: center;
}

/* fondo */
.bg {
  stroke: rgba(255,255,255,0.2);
}

/* progreso */
.progress {
  stroke: url(#gradientStroke);
  stroke-linecap: round;

  stroke-dasharray: 75;  /* 🔥 correcto */
  stroke-dashoffset: 75;
}

/* TEXTO */
.loading-text {
  color: white;
  margin-top: 20px;
  letter-spacing: 2px;
  opacity: 0.8;
}



.anim-text {
  opacity: 0;
  transform: translateY(40px);
  animation: aparecer 1s ease forwards;
}

/* delay para el segundo texto */
.anim-text.delay {
  animation-delay: 0.5s;
}

/* animación */
@keyframes aparecer {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}




/*=========================
    HISTORIA
=========================*/

.historia-section{
    padding:90px 20px;
   background: linear-gradient(rgba(246, 146, 6, 0.6), rgba(9, 33, 96, 0.94)), /* overlay naranja */ url(../img/09.webp) no-repeat bottom center;
}

.historia-section .container{
    max-width:1200px;
    margin:auto;
}

.historia-titulo{
    text-align:center;
    margin-bottom:5px;
}



.historia-titulo h4{
    color:#fff;
    font-size:clamp(2rem,4vw,3.2rem);
    font-weight:20;
}



.historia-contenedor{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:30px;
    align-items:stretch;
}

.historia-card{
    display:flex;
    flex-direction:column;
    align-items:center;
    text-align:center;
    gap:20px;
    color: #fff;
    height:100%;

    background: rgb(3 5 70 / 12%);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);

    border-radius:22px;
    padding:35px;
    box-shadow:0 12px 30px rgba(0,0,0,.08);
  
    transition:.35s ease;
}

.historia-card:hover{
    transform:translateY(-8px);
    box-shadow:0 20px 45px rgba(0,0,0,.12);
}

.historia-numero{
    width:100px;
    height:100px;
    min-width:100px;
    
    overflow:hidden; /* Oculta lo que sobresalga */
    display:flex;
    justify-content:center;
    align-items:center;
    
}

.historia-numero img{
    width:100%;
    height:100%;
    object-fit:cover; /* La imagen llena el c韗culo */
    display:block;
}

.historia-info{
    flex:1;
}

.historia-info h3 {
    color: #243ebb00;
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 15px;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 1px 1px 0 #ef6802, 2px 2px 0 #d95c00, 3px 3px 8px rgba(0, 0, 0, .35), 0 0 12px rgb(246 146 6 / 0%);
}

.historia-info p{
    color:#fff;
    line-height:1.9;
    font-size:1rem;
}

.historia-colores{
    margin-top:25px;
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(170px,1fr));
    gap:15px;
}

.historia-colores div{
    display:flex;
    align-items:center;
    gap:12px;
    padding:14px 16px;
    border-radius:14px;
    background:#f8f9fc;
    transition:.3s;
    font-weight:600;
    color:#041a6d;
}

.historia-colores div:hover{
    transform:scale(1.04);
    background:#eef6ff;
}

.historia-colores span{
    width:22px;
    height:22px;
    border-radius:50%;
    display:block;
    flex-shrink:0;
}

/* Barra de color diferente en cada tarjeta */

.historia-card:nth-child(1){
    border-left-color:#041a6d;
}

.historia-card:nth-child(2){
    border-left-color:#f69206;
}

.historia-card:nth-child(3){
    border-left-color:#39c0ec;
}

/*=========================
      RESPONSIVE
=========================*/

@media(max-width:992px){

    .historia-card{
        padding:28px;
    }

}

@media(max-width:768px){

    .historia-section{
        padding:70px 15px;
    }

    .historia-card{
        flex-direction:column;
        align-items:center;
        text-align:center;
        gap:20px;
    }

    .historia-numero{
        width:65px;
        height:65px;
        min-width:65px;
        font-size:1.2rem;
    }

    .historia-colores{
        grid-template-columns:1fr;
    }

}

@media(max-width:480px){

    .historia-card{
        padding:22px;
        border-radius:18px;
    }

    .historia-info h3{
        font-size:1.3rem;
    }

    .historia-info p{
        font-size:.95rem;
    }

}




/**** BOTON DE WHATSAPP 3D ****/

.btn-whatsapp{
    position:fixed;
    bottom:25px;
    right:25px;
    width:65px;
    height:65px;
    background: linear-gradient(145deg, #28e06f, #1fae55);
    color:#fff;
    border-radius:50%;
    display:flex;
    justify-content:center;
    align-items:center;
    font-size:2rem;
    text-decoration:none;

    /* efecto 3D real */
    box-shadow:
        6px 6px 12px rgba(0,0,0,.25),
        -4px -4px 10px rgba(255,255,255,.15);

    z-index:9999;
    transition: transform .2s ease, box-shadow .2s ease;
}

/* hover: efecto presionado/lift */
.btn-whatsapp:hover{
    transform: translateY(-4px) scale(1.05);
    box-shadow:
        10px 10px 18px rgba(0,0,0,.28),
        -5px -5px 12px rgba(255,255,255,.18);
}

/* click: efecto hundido */
.btn-whatsapp:active{
    transform: translateY(2px) scale(.98);
    box-shadow:
        3px 3px 8px rgba(0,0,0,.25),
        inset 2px 2px 6px rgba(0,0,0,.2);
}

/* quitar animaci髇 completamente */
/* (ya no existe whatsappPulse) */

@media (max-width:768px){
    .btn-whatsapp{
        width:58px;
        height:58px;
        font-size:1.8rem;
        bottom:20px;
        right:20px;
    }
}

/***BARRA DE TRABAJADORES***/


.stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  background: #00063B; /* azul marino fuerte */
  padding: 60px 30px;
  text-align: center;
  gap: 20px;
}

.stat {
  flex: 1;
  min-width: 180px;
  color: #ffffff;
  position: relative;
}

/* ICONO */
.stat i {
  font-size: 40px;
  color: #39c0ec; /* azul claro contraste */
  display: block;
  margin-bottom: 10px;
}

/* NUMERO */
.stat h2 {
  font-size: 40px;
  font-weight: 700;
  color: #f69206; /* naranja corporativo */
  margin: 5px 0;
}

/* TEXTO */
.stat p {
  font-size: 14px;
  color: #e6e6e6;
  max-width: 180px;
  margin: 0 auto;
}

/* separadores verticales estilo moderno */
.stat:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 20%;
  width: 1px;
  height: 60%;
  background: rgba(255,255,255,0.2);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .stats {
    flex-direction: column;
  }

  .stat:not(:last-child)::after {
    display: none;
  }
}