/* Reset y estilos generales */



@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            
        }
        
        body {
            color: #333;
            line-height: 1.6;
            list-style: none;
            font-family: 'Roboto', sans-serif;
        }

        :root{
    --primary-color: #fe0000;
    --secondary-color: #f5f5f5;
    --tercer-color: #0d84c6;
        }
        
        .container {
            width: 90%;
            max-width: 1200px;
            margin: 0 auto;
        }
        
        /* Header */
        header {
            background-color: var(--secondary-color);
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            position: sticky;
            top: 0;
            z-index: 100;
        }
        
        .header-top {
            background: var(--primary-color);
            color:  var(--secondary-color);
            padding: 8px 0;
           
            height: 50px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .header-top .container a{
            text-decoration: none;
            color:  var(--secondary-color);
            font-size: 24px;
            font-weight: bold;
        }

        .header-top .container a i{
            color: var(--secondary-color);
            margin: 0 10px;
            font-size: 18px;
   }
         .header-top .container a:hover{
            color: var(--secondary-color);
        }

        .header-top .container p{
            font-family: 'Roboto', sans-serif;
            text-align: center;
            font-size: 18px;
        }
        
        .header-main {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 5px 0;
            position: relative;
        }
        
        .logo {
            font-size: 24px;
            font-weight: bold;
            color: var(--primary-color);
            z-index: 101;
        }
        
        .logo span {
            color: #333;
        }
        .logo img {
            max-width: 150px;
            height: auto;
        }
        
        /* Menú de navegación para desktop */
        .desktop-nav {
            display: flex;
        }
        
        .desktop-nav ul {
            display: flex;
            list-style: none;
        }
        
        .desktop-nav ul li {
            margin-left: 25px;
        }
        
        .desktop-nav ul li a {
            text-decoration: none;
            color: #000;
            font-weight: 500;
            transition: color 0.3s;
        }
        
        .desktop-nav ul li a:hover {
            color: var(--primary-color);
        }
        
        /* Botón de menú hamburguesa */
        .hamburger-btn {
            display: none;
            flex-direction: column;
            justify-content: space-around;
            width: 30px;
            height: 24px;
            background: transparent;
            border: none;
            cursor: pointer;
            padding: 0;
            z-index: 101;
        }
        
        .hamburger-btn span {
            width: 100%;
            height: 3px;
            background-color: #333;
            border-radius: 2px;
            transition: all 0.3s ease;
        }
        
        /* Menú móvil */
        .mobile-nav {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100vh;
            background-color: var(--secondary-color);
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            z-index: 100;
            transform: translateX(-100%);
            transition: transform 0.3s ease-in-out;
        }
        
        .mobile-nav.active {
            transform: translateX(0);
        }
        
        .mobile-nav ul {
            list-style: none;
            text-align: center;
        }
        
        .mobile-nav ul li {
            margin: 20px 0;
        }
        
        .mobile-nav ul li a {
            text-decoration: none;
            color: #333;
            font-size: 24px;
            font-weight: 500;
            transition: color 0.3s;
        }
        
        .mobile-nav ul li a:hover {
            color: var(--primary-color);
        }
        
        /* Estado activo del botón hamburguesa */
        .hamburger-btn.active span:nth-child(1) {
            transform: rotate(45deg) translate(5px, 8px);
        }
        
        .hamburger-btn.active span:nth-child(2) {
            opacity: 0;
        }
        
        .hamburger-btn.active span:nth-child(3) {
            transform: rotate(-45deg) translate(5px, -8px);
        }
        
        
      /* ========================
   MEDIA QUERIES - HEADER
======================== */

/* Tablets (pantallas medianas, ≤ 1024px) */
@media (max-width: 1024px) {
    .header-top .container a {
        font-size: 18px;
    }

    .header-top .container p {
        font-size: 16px;
    }

    .desktop-nav ul li {
        margin-left: 15px;
    }

    .desktop-nav ul li a {
        font-size: 15px;
    }
}

/* Celulares grandes (pantallas ≤ 768px) */
@media (max-width: 768px) {
    .desktop-nav {
        display: none; /* Oculta menú desktop */
    }

    .hamburger-btn {
        display: flex; /* Muestra hamburguesa */
    }

    .logo img {
        max-width: 50px;
    }

    .header-main {
        padding: 10px 15px;
    }

    .header-top .container a {
        font-size: 16px;
    }

    .header-top .container p {
        font-size: 14px;
    }
}

/* Celulares pequeños (pantallas ≤ 480px) */
@media (max-width: 480px) {
    .logo img {
        max-width: 40px;
    }

    .header-top {
        height: auto;
        padding: 5px;
        text-align: center;
    }

    .header-top .container a {
        font-size: 14px;
    }

    .header-top .container p {
        font-size: 12px;
        line-height: 1.3;
    }

    .mobile-nav ul li a {
        font-size: 20px;
    }
}

        
        /* Hero Section */
   .hero {
    position: relative;
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url(/asset/media/img/fuentesTrans/bg-home02.jpg);
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px; /* altura del degradado */
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0) 0%,      /* transparente */
        rgba(0,0,0,0) 0%,   /* negro translúcido */
        rgb(245, 245, 245) 50%           /* gris claro / blanco */
    );
}

.hero .container{
   text-align: left;
    max-width: 700px;
    margin-left: 50px;
    margin-bottom: 200px;

}

        
        .hero h1 {
            font-size: 2.5rem;
            margin-bottom: 20px;
            color: var(--secondary-color);
            
        }
        
        .hero p {
            
            font-size: 1.2rem;
            margin-bottom: 30px;
            max-width: 700px;
            color: var(--secondary-color);
            font-weight: 600;
            margin-right: auto;
        }

        .hero p span{
            color: var(--primary-color);
            font-size: 1.2rem;
            
        
        
        }
        
        .btn {
            display: inline-block;
            background-color: var(--primary-color);
            color: white;
            padding: 12px 30px;
            border-radius: 4px;
            text-decoration: none;
            font-weight: bold;
            transition: background-color 0.3s;
        }
        
        .btn:hover {
            background-color: var(--primary-color);
        }

        .footer_hero {
    background: var(--secondary-color); /* fondo suave */
    text-align: center;
    padding: 30px 20px;
    color: #333;
}

.footer_hero h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
    font-weight: bold;
    color: #222;
       display: flex;
  justify-content:center;
  align-items: center;
  overflow: hidden;
    padding: 20px 20px;
  max-width: 90%;
}

.footer_hero .logotipos-01 {
    display: flex;
  justify-content:center;
  align-items: center;
  overflow: hidden;
    padding: 20px 40px;
  max-width: 90%;
  transition: 0.3s;
  gap: 40px; /* espacio entre logos */
 
}

.footer_hero img {
    height: 100px; /* tamaño uniforme */
    object-fit: contain;
    transition: transform 0.3s ease;
}

.footer_hero img:hover {
    transform: scale(1.1); /* efecto al pasar el mouse */
}

/* ========================
   MEDIA QUERIES - HERO
======================== */

/* Tablets (≤ 1024px) */
@media (max-width: 1024px) {
    .hero {
        height: 80vh; /* no tan alto en tablets */
    }

    .hero .container {
        margin-left: 30px;
        margin-bottom: 100px;
        max-width: 600px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }
}

/* Celulares grandes (≤ 768px) */
@media (max-width: 768px) {
    .hero {
        align-items: center; /* centra el contenido */
        text-align: center;
        height: auto;
        padding: 100px 20px; /* da espacio sin ocupar toda la pantalla */
    }

    .hero .container {
        margin: 0 auto;
        max-width: 90%;
    }

    .hero h1 {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }

    .hero p {
        font-size: 0.95rem;
        margin-bottom: 25px;
    }

    .btn {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
}

/* Celulares pequeños (≤ 480px) */
@media (max-width: 480px) {
    .hero {
        padding: 80px 15px;
    }

    .hero h1 {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    .hero p {
        font-size: 0.85rem;
        line-height: 1.4;
    }

    .btn {
        width: 100%; /* botón ocupa todo el ancho */
        text-align: center;
        padding: 12px;
        font-size: 1rem;
    }
}

/* Footer del hero */
@media (max-width: 768px) {
    .footer_hero .logotipos {
        flex-wrap: wrap; /* logos se acomodan en varias filas */
        gap: 20px;
        justify-content: center;
    }

    .footer_hero img {
        height: 40px;
    }
}

@media (max-width: 480px) {
    .footer_hero h3 {
        font-size: 1rem;
    }

    .footer_hero img {
        height: 35px;
    }
}


/* Nosotros */

/* Contenedor principal */
.nosotros {
    display: flex;
    flex-direction: column;
    gap: 65px;
    padding: 60px 0;
    background: var(--secondary-color);
}

/* Cada bloque (texto + imagen) */
.about-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    height: 500px;
    padding-left: 25px;
}

.about-item.reverse {
    
    background: var(--primary-color);
}

.about-item.reverse h2,
.about-item.reverse h3,
.about-item.reverse p {
    color: #fff;
}

.about-item.reverse .title .line {
    background: #fff;
}

/* Columna de texto */
.about-text {
    flex: 1;
}
.about-text strong{
    color: var(--tercer-color);
    font-weight: 600;
}

.title {
    margin-bottom: 20px;
}

.title h2 {
    font-size: 2rem;
    font-weight: bold;
    color: #111;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.title h3 {
    text-transform: uppercase;
    font-size: 1.5rem;
    font-weight: bold;
    color: #111;
    margin-left: 25px;
    margin-bottom: 10px;
}

.title .line {
    display: inline-block;
    width: 100px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.title p {
    margin-top: 10px;
    font-size: 18px;
    line-height: 1.6;
    color: #444;
    margin-left: 25px;
}

.title p span{
    color: var(--primary-color);
    font-weight: 400;
}

.about-text p {
    margin-bottom: 15px;
    font-size: 18px;
    line-height: 1.7;
    color: #555;
    text-align: left;
}

/* Columna de imagen */
.about-img {
    flex: 1;
    min-height: 350px;
    background-size: cover;
    background-position: center;
    border-top-left-radius: 200px;
    border-bottom-left-radius: 200px;
    margin-left: -25px;
}

/* Imagen dinámica desde data-img */
.about-img {
    background-image: attr(data-img url);
}

.about-item.reverse .about-img {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-top-right-radius: 200px;
    border-bottom-right-radius: 200px;
}

/* ========================
   MEDIA QUERIES - NOSOTROS
======================== */

/* Tablets (≤ 1024px) */
@media (max-width: 1024px) {
    .about-item {
        height: auto;
        flex-direction: column;
        gap: 20px;
        padding: 30px 20px;
        text-align: center;
    }

    .about-text {
        text-align: center;
    }

    .title h2 {
        font-size: 1.8rem;
        justify-content: center;
    }

    .title h3 {
        font-size: 1.2rem;
        margin-left: 0;
    }

    .title p {
        margin-left: 0;
    }

    .about-img {
        border-top-left-radius: 200px;
    border-bottom-left-radius: 200px;
        margin: 0;
        width: 100%;
        min-height: 300px;
    }

    .about-item.reverse .about-img {
        border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-top-right-radius: 200px;
    border-bottom-right-radius: 200px;
    }
}

/* Móviles (≤ 768px) */
@media (max-width: 768px) {
    .about-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px;
    }

    .about-item .title {
        order: 1;
    }
    .about-item .about-img {
        order: 2;
        width: 100%;
        min-height: 220px;
        border-top-left-radius: 100px;
    border-bottom-left-radius: 100px;
        margin: 15px 0;
    }

    .about-item.reverse .about-img {
        border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-top-right-radius: 100px;
    border-bottom-right-radius: 100px;
    }
    .about-item .about-text {
        order: 3;
    }

    .title h2 {
        font-size: 1.6rem;
    }
    .title h3 {
        font-size: 1.1rem;
    }
    .about-text p {
        font-size: 0.95rem;
        line-height: 1.5;
    }
}

/*   valores    */

.valores {
  padding: 60px 20px;
  background: linear-gradient(135deg, #0a1638, #1a2b5f);
  color: #fff;
  text-align: center;
}

.valores h2 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: #fff;
}

.valores-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  max-width: 1200px;
  margin: 0 auto;
}

.valor {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  padding: 25px;
  transition: all 0.4s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.valor:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.1);
}

.valor i {
  font-size: 2.5rem;
  color: #0d84c6;
  margin-bottom: 15px;
  transition: color 0.3s ease;
}

.valor:hover i {
  color: #fe0000;
}

.valor h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: #f1f1f1;
}

.valor p {
  font-size: 0.95rem;
  color: #d4d4d4;
  line-height: 1.6;
}

/* Responsivo */
@media (max-width: 768px) {
  .valores h2 {
    font-size: 1.5rem;
  }

  .valor i {
    font-size: 2rem;
  }
}

/* Video Section */
.video-section {
  background: #f0f0f0;
  padding: 60px 20px;
  text-align: center;
}

.video-section h2 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: #333;
}

.video-section p {
  font-size: 18px;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: #555;
}
.video-section p span {
  color: var(--primary-color);
  font-weight: 600;
}

/* Contenedor de los videos */
.video-container {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 1000px;
  margin: 0 auto;
}

.video-wrapper {
  flex: 1 1 45%;
  border: 3px solid #e4671f;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 20px #e4671f;
  min-width: 280px;
  aspect-ratio: 16/9; /* mantiene proporción */
  position: relative;
}

/* ✅ Solo esta regla controla los videos */
.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Responsivo */
@media (max-width: 920px) {
  .video-section h2 {
    font-size: 1rem;
  }
  .video-section p {
    font-size: 1rem;
  }
  .video-section p span {
    font-weight: 400;
  }
}

@media (max-width: 768px) {
  .video-section h2 {
    font-size: 0.95rem;
  }
  .video-section p {
    font-size: 0.95rem;
    line-height: 1.5;
  }
  .video-section p span {
    font-weight: 400;
  }
  .video-wrapper {
    flex: 1 1 100%; /* en móvil cada video ocupa todo el ancho */
  }
}

/** Footer de empresas */
.footer_empresas {
  background: var(--secondary-color);
  text-align: center;
  height: 250px;
  padding: 40px 20px;
  color: #333;
  overflow: hidden; /* evita que se vean los logos fuera del área */
  position: relative;
}

.footer_empresas h3 {
  margin-bottom: 30px;
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--primary-color);
}

/* Contenedor principal del carrusel */
.logotipos {
  display: flex;
  width: 200%; /* dos slides uno tras otro */
  animation: scrollLogos 30s linear infinite; /* velocidad y movimiento */
}

.logos-slide {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex: 1;
  gap: 50px;
}

.logos-slide img {
  height: 60px;
  object-fit: contain;
 
  transition: all 0.3s ease;
}

.logos-slide img:hover {
  filter: none;
  opacity: 1;
  transform: scale(1.1);
}

/* Animación infinita */
@keyframes scrollLogos {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Responsividad */
@media (max-width: 768px) {
  .logos-slide img {
    height: 45px;
    gap: 30px;
  }
  .footer_empresas h3 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .logos-slide img {
    height: 35px;
  }
}

/*=======Cobertura==========*/

.cobertura {
  position: relative;
  width: 100%;
  height: 500px;
  background: url('/asset/media/img/fuentesTrans/cobertura01.jpg') no-repeat center center/cover;
  color: #fff;
  display: flex;
  align-items: center; /* centra verticalmente el contenido */
  justify-content: center; /* centra horizontalmente */
  overflow: hidden;
}

/* Overlay con capa oscura */
.cobertura-overlay {
  position: absolute;
  inset: 0; /* reemplaza top, right, bottom, left */
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 40px 20px;
}

/* Contenedor de texto */
.cobertura-text {
  max-width: 800px;
  padding: 20px;
}

/* Título */
.cobertura-text h3 {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 15px; /* menos espacio entre título y párrafo */
  color: var(--primary-color);
}

/* Párrafo */
.cobertura-text p {
  font-size: 1.1rem;
  line-height: 1.5;
  color: #f5f5f5;
}

/* 📱 Responsivo */
@media (max-width: 768px) {
  .cobertura {
    height: 600px;
  }

  .cobertura-text h3 {
    font-size: 1.6rem;
  }

  .cobertura-text p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  

  .cobertura-text {
    padding: 10px;
  }

  .cobertura-text h3 {
    font-size: 1.5rem;
  }

  .cobertura-text p {
    font-size: 0.95rem;
  }
}
/*=====infrestructura==========*/

.infraestructura {
    position: relative;
    background: url('/asset/media/img/fuentesTrans/infrestructura02.jpg') no-repeat center center/cover;
    color: #fff;
    padding: 80px 0;
}

.infraestructura-overlay {
    background: rgba(0, 0, 0, 0.6);
    padding: 40px 20px;
}

.infraestructura-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}
.infraestructura-text{
    flex: 1 1 45%;
    padding: 20px;
    text-align: left;
}
.lista-city{
    display: flex;
}

.infraestructura-text h2 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: var(--primary-color);
}

/* Eliminar estilos de lista y puntos */
.infraestructura-list, 
.lista-city ul {
    list-style: none;
    padding: 0;
    margin: 8px;
}

/* Ajustar alineación de elementos */
.infra-ul{
    display: flex;
    align-items: center;
    
}
.lista-city .infra-ul h2{
  
    display: flex;
    justify-content: center;
    color: var(--primary-color);
    margin-left: 25px;   
}
.lista-city .infra-ul li{
    margin-left: 20px;
}
.lista-city li {
    display: flex;
    align-items: center; /* Centra verticalmente logo y texto */
    margin-bottom: 20px;
    gap: 15px;
}
.infra-ul {
    position: relative;
    margin-left: 5px;
    border-left: solid 1px var(--primary-color);
    
}


.infra-logo {
    width: 40px;
    height: 40px;
    border-radius: 10%;
    
}
.infra-logo img {
    max-width: 90%;         /* Limita el ancho máximo */
    max-height: 90%;        /* Limita el alto máximo */
    width: auto;            /* Mantiene la proporción */
    height: auto;           /* Mantiene la proporción */
    display: block;
    margin: auto;           /* Centra la imagen */
} 
.infra-info{
    list-style: none;
}

.infra-info h4 {
    font-size: 16px;
    margin: 0; /* Eliminamos el margen inferior para mejor alineación */
    color: #fff;
    white-space: nowrap; /* Evita que el texto se divida en varias líneas */
}

.infra-info p {
    font-size: 0.95rem;
    margin: 0;
    color: #ccc;
    line-height: 1.4;
}

.infraestructura-map {
    flex: 1 1 45%;
    position: relative;
}

.map-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.map-container img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0px 4px 15px rgba(0,0,0,0.5);
}

.map-marker {
    position: absolute;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
}

.map-marker img {
    width: 100%;
    height: auto;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.7);
}


/* 📱 Responsive */
@media (max-width: 768px) {

    .cobertura-text p {
        margin-bottom: 50px;
    font-size: 1.2rem;
    line-height: 1.6;
    color: #f5f5f5;
}
    .infraestructura-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .infraestructura-text, 
    .infraestructura-map {
        flex: 1 1 100%;
    }
    .lista-city h2{
        font-size: 1.5rem;
        text-align: center;
    }
}

@media (max-width: 520px) {
    .lista-city{
        flex-direction: column;
        align-items: center;
        
    }
    .infra-ul h2{
        margin-left: 0px;
    }
    .infra-ul{
        border-left: none;
        margin-left: 0px;
    }
    .lista-city .infra-ul li{
        margin-left: 0px;
    }
   
}

/* === RUTAS PRINCIPALES NUEVO BLOQUE === */
.rutas-wrapper h2 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    margin-top: 13px;
    color: var(--primary-color);
    text-align: center;
}

.rutas-columns {
    display: flex;
    gap: 40px;
    border-left: 1px solid var(--primary-color);
    padding-left: 25px;
}

.rutas-columns ul {
    list-style: none;
    padding: 0;
}

.rutas-columns h2 {
    font-size: 1rem;
    margin-bottom: 15px;
    text-align: center;
    color: var(--primary-color);
}

.rutas-columns li {
    margin-bottom: 10px;
    text-align: left;
}

/* Responsive */
@media (max-width: 768px) {
  .rutas-columns {
    flex-direction: column;
    border-left: none;
    padding-left: 0;
  }
}




/* Servicios */
        .services {
            padding: 80px 0;
            background-color: #060605;
        }
        
        .container-services {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }
        
        .section-title {
            text-align: center;
            margin-bottom: 50px;
             display: flex;
            justify-content: center;
            align-items: center;
        }
        
         .services .section-title h2 {
            
            color: #fff;
            margin-bottom: 15px;
            text-transform: uppercase;
           font-family: "Inter", sans-serif;
           background: linear-gradient(to right, #f5333f 50%, #a20e0e 124%);
            width: 350px;
            height: 80px;
            display: flex;
            justify-content: center;
            align-items: center;

            border-radius: 23px;
       
            
            letter-spacing: 1px;
            font-weight: 600;
            line-height: 25px;
            font-size: 22px;
           
        }

        .services .section-title p {
            font-size: 1.1rem;
            color: #ddd;
            max-width: 600px;
            margin: 0 auto;
            line-height: 1.5;
        }
        .services .section-title p span {
            color: var(--primary-color);
            font-weight: 600;
        }
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px; /* espacio entre tarjetas */
  justify-content: center;
  align-items: stretch;
}


        .card {
            perspective: 1000px;
            height: 235px;
            cursor: pointer;
        }

        .card-inner {
            position: relative;
            width: 100%;
            height: 235px;
            transition: transform 0.8s;
            transform-style: preserve-3d;
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
            border-radius: 12px;
        }

        .card.flipped .card-inner {
            transform: rotateY(180deg);
        }

        .card-front,
        .card-back {
            position: absolute;
            width: 100%;
            height: 100%;
            backface-visibility: hidden;
            
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            
            text-align: center;
        }

        .card-front {
            color: #fff;
        }
        
        .card-front-yellow {
            background: linear-gradient(135deg, #ff8518, #e66a00);
        }
        
        .card-front-red {
            background: linear-gradient(135deg, #e63946, #c1121f);
        }
        
        .card-front-blue {
            background: linear-gradient(135deg, #3a86ff, #1a75ff);
        }
        
        .card-front-green {
            background: linear-gradient(135deg, #2a9d8f, #1d7874);
        }
        
        .card-front-purple {
            background: linear-gradient(135deg, #8338ec, #6a28d6);
        }

        .card-front i {
            font-size: 70px;
            margin-bottom: 20px;
            text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
        }

        .card-front p {
            font-size: 1.5rem;
            font-weight: 600;
        }

        .card-back {
    position: relative; /* necesario para posicionar texto encima de la imagen */
    width: 100%;
    height: 100%;
    color: #fff;
    transform: rotateY(180deg);
    display: flex;
    align-items: center;       /* centra verticalmente el contenido */
    justify-content: center;   /* centra horizontalmente el contenido */
    text-align: center;
    overflow: hidden;
    border-radius: 12px;
}

.card-back-img {
    position: absolute;   /* se coloca detrás del texto */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;        /* opacidad de la imagen */
    z-index: 0;           /* atrás del texto */
}

/* estilo para el texto dentro del back */
.card-back p {
    position: relative;  /* para que quede encima de la imagen */
    z-index: 1;
    font-size: 1.2rem;
    padding: 0 10px;
    line-height: 1.4;
}

/* Ajustes para pantallas medianas (tablets) */
@media (max-width: 1024px) {
  .cards-grid {
    grid-template-columns: repeat(3, 1fr); /* 3 columnas */
    gap: 15px;
  }
}

/* Ajustes para móviles */
@media (max-width: 768px) {

.services .section-title{
    flex-direction: column;
    height: auto;
    padding: 20px;
}
  .cards-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columnas */
    gap: 12px;
  }

  .card {
    height: 200px; /* más compactas */
  }
  .card-inner {
    height: 200px;
  }
  .card-front i {
    font-size: 50px;
  }
  .card-front p {
    font-size: 1.1rem;
  }
  .card-back p {
    font-size: 1rem;
  }
}

/* Ultra pequeños (≤480px, celulares chicos) */
@media (max-width: 480px) {
  .cards-grid {
    grid-template-columns: 1fr; /* una sola columna */
  }
}
        
/* aqui van los estilos de slayer*/ 




/* Estilos para la sección de contacto */
        .contact {
            padding: 80px 0;
            background-color: var(--light-gray);
        }
        
        .section-title-contact {
            text-align: center;
            margin-bottom: 50px;
        }
        
        .section-title-contact h2 {
            font-size: 1.8rem;
            color: var(--dark-color);
            margin-bottom: 15px;
            position: relative;
            display: inline-block;
        }
        
        .section-title-contact h2::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 3px;
            background-color: var(--primary-color);
        }
        
        .section-title-contact p {
            font-size: 1.1rem;
            color: var(--gray-color);
            max-width: 700px;
            margin: 0 auto;
        }
        
        .contact-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 40px;
        }
        
        .contact-info h3 {
            font-size: 18px;
            color: var(--dark-color);
            margin-bottom: 25px;
            position: relative;
            padding-bottom: 10px;
        }
        
        .contact-info h3::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 50px;
            height: 3px;
            background-color: var(--primary-color);
        }
        
        .contact-details p {
            margin-bottom: 15px;
            display: flex;
            align-items: flex-start;
            color: var(--dark-color);
        }
        
        .contact-details strong {
            min-width: 90px;
            display: inline-block;
            color: var(--dark-color);
            margin-right: 10px;
        }
        
        /* Estilos para el formulario */
        .contact-form {
            background-color: var(--light-color);
            padding: 30px;
            border-radius: 8px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }
        
        .contact-form h2 {
            font-size: 18px;
            color: var(--dark-color);
            margin-bottom: 25px;
            text-align: center;
        }
        
        .contact-form form {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }
        
        .inputBox {
            position: relative;
            width: 100%;
        }
        
        .inputBox input, 
        .inputBox textarea {
            width: 100%;
            padding: 15px;
            border: 1px solid #ddd;
            border-radius: 4px;
            font-size: 1rem;
            transition: all 0.3s;
            background: transparent;
            z-index: 1;
        }
        
        .inputBox textarea {
            min-height: 120px;
            resize: vertical;
        }
        
        .inputBox span {
            position: absolute;
            left: 15px;
            top: 15px;
            padding: 0 5px;
            font-size: 1rem;
            color: var(--gray-color);
            pointer-events: none;
            transition: 0.3s;
            background: var(--light-color);
        }
        
        .inputBox input:focus ~ span,
        .inputBox input:valid ~ span,
        .inputBox textarea:focus ~ span,
        .inputBox textarea:valid ~ span {
            top: -10px;
            left: 10px;
            font-size: 0.85rem;
            color: var(--primary-color);
            font-weight: 500;
        }
        
        .inputBox input:focus,
        .inputBox input:valid,
        .inputBox textarea:focus,
        .inputBox textarea:valid {
            border-color: var(--primary-color);
            outline: none;
        }
        
        .inputBox input[type="submit"] {
            background-color: var(--primary-color);
            color: var(--light-color);
            border: none;
            padding: 15px;
            font-size: 1rem;
            font-weight: 600;
            border-radius: 4px;
            cursor: pointer;
            transition: background-color 0.3s;
            margin-top: 10px;
        }
        
        .inputBox input[type="submit"]:hover {
            background-color: var(--tercer-color);
        }
        
        /* Responsive */
        @media (max-width: 992px) {
            .contact-grid {
                gap: 30px;
            }
        }
        
        @media (max-width: 768px) {
            .contact {
                padding: 60px 0;
            }
            
            .section-title-contact h2 {
                font-size: 2rem;
            }
            
            .contact-grid {
                grid-template-columns: 1fr;
                gap: 40px;
            }
            
            .contact-info h3 {
                font-size: 1.6rem;
            }
            
            .contact-details p {
                flex-direction: column;
            }
            
            .contact-details strong {
                margin-bottom: 5px;
                min-width: auto;
            }
        }
        
        @media (max-width: 576px) {
            .contact {
                padding: 50px 0;
            }
            
            .section-title-contact h2 {
                font-size: 1.8rem;
            }
            
            .section-title-contact p {
                font-size: 1rem;
            }
            
            .contact-form {
                padding: 20px;
            }
            
            .contact-form h2 {
                font-size: 1.3rem;
            }
            
            .inputBox input, 
            .inputBox textarea {
                padding: 12px;
            }
        }
        
        /* Estilos para el footer */
        footer {
            background-color: var(--dark-color);
            color: var(--light-color);
            padding: 60px 0 20px;
        }
        
        .footer-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 30px;
            margin-bottom: 40px;
        }
        
        .footer-column h4 {
            font-size: 1.3rem;
            margin-bottom: 20px;
            position: relative;
            padding-bottom: 10px;
        }
        
        .footer-column h4::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 40px;
            height: 2px;
            background-color: var(--primary-color);
        }
        
        .footer-column p {
            margin-bottom: 15px;
            color: var(--primary-color);
        }
        
        .footer-column ul {
            list-style: none;
        }
        
        .footer-column ul li {
            margin-bottom: 10px;
        }
        
        .footer-column ul li a {
            color: #ccc;
            text-decoration: none;
            transition: color 0.3s;
        }
        
        .footer-column ul li a:hover {
            color: var(--primary-color);
        }
        
        .social-links {
            display: flex;
            gap: 15px;
        }
        
        .social-links a {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            background-color: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            color: var(--light-color);
            font-size: 1.2rem;
            transition: all 0.3s;
        }
        
        .social-links a:hover {
            background-color: var(--primary-color);
            transform: translateY(-3px);
        }
        
        .copyright {
            text-align: center;
            padding-top: 20px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            color: var(--gray-color);
            font-size: 0.9rem;
        }
        
        /* Responsive */
        @media (max-width: 768px) {
            .contact-grid {
                grid-template-columns: 1fr;
            }
            
            .contact-details p {
                flex-direction: column;
            }
            
            .contact-details strong {
                margin-bottom: 5px;
            }
            
            .footer-grid {
                grid-template-columns: 1fr;
                text-align: center;
            }
            
            .footer-column h4::after {
                left: 50%;
                transform: translateX(-50%);
            }
            
            .social-links {
                justify-content: center;
            }
        }