/* 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: #1d1e1f;
        }
        
        .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/castelan/bg.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 */
        rgba(10, 15, 30, 0.5)           /* 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: rgb(10, 15, 30); /* fondo suave */
    text-align: center;
    padding: 30px 20px;
    color: #333;
}

.footer_hero h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
       display: flex;
  justify-content:center;
  text-align: center;
  align-items: center;
  overflow: hidden;
    padding: 20px 20px;
  max-width: 100%;
}

.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 */

/* Estilos para la sección Nosotros */
.about-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.about-item {
    position: relative;
    min-height: 500px;
    margin-bottom: 60px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.about-item.reverse {
    direction: rtl;
}



.about-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

/* Overlay más sutil para mejorar legibilidad sin ocultar la imagen */
.about-img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(0,0,0,0.8) 0%, 
        rgba(0,0,0,0.6) 50%, 
        rgba(0,0,0,0.4) 100%);
    z-index: 2;
}

.about-item.reverse .about-img::after {
    background: linear-gradient(-90deg, 
        rgba(0,0,0,0.5) 0%, 
        rgba(0,0,0,0.25) 50%, 
        rgba(0,0,0,0.1) 100%);
}

.about-text {
    position: relative;
    z-index: 3;
    width: 80%; /* Texto ocupa el 80% del ancho */
    padding: 60px 40px;
    color: #ffffff;
    display: flex;
    align-items: center;
    min-height: 500px;
}

.about-item.reverse .about-text {
    margin-left: auto;
}

.title {
    max-width: 600px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3); /* Sombra adicional para el texto */
}

.title h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 15px;
}

.line {
    display: inline-block;
    width: 60px;
    height: 4px;
    background: var(--primary-color); /* Color amarillo para la línea, puedes cambiarlo */
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.title h3 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    font-weight: 600;
    line-height: 1.3;
}

.title p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 0;
    font-weight: 400;
}

.title span {
    color: var(--primary-color); /* Color destacado para el nombre de la empresa */
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Media queries para responsividad */
@media (max-width: 768px) {
    .about-item,
    .about-item.reverse {
        min-height: auto;
        display: flex;
        flex-direction: column;
        direction: ltr;
    }

    .about-img {
        position: relative;
        height: 300px;
        width: 100%;
    }

    /* Overlay más sutil también en móvil */
    .about-img::after,
    .about-item.reverse .about-img::after {
        background: linear-gradient(0deg, 
            rgba(0,0,0,0.4) 0%, 
            rgba(0,0,0,0.2) 50%, 
            rgba(0,0,0,0.1) 100%);
    }

    .about-text,
    .about-item.reverse .about-text {
        width: 100%; /* En móvil ocupa el 100% */
        min-height: auto;
        padding: 40px 30px;
        margin-left: 0;
        background: rgba(10, 15, 30, 1); /* Fondo adicional para mejor lectura */
    }

    .title {
        text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    }

    .title h2 {
        font-size: 2rem;
    }

    .title h3 {
        font-size: 1.5rem;
    }

    .title p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .about-item {
        margin-bottom: 40px;
    }

    .about-img {
        height: 250px;
    }

    .about-text {
        padding: 30px 20px;
    }

    .title h2 {
        font-size: 1.8rem;
    }

    .title h3 {
        font-size: 1.3rem;
    }
}

/* Ajuste para pantallas medianas */
@media (min-width: 769px) and (max-width: 1024px) {
    .about-text {
        width: 70%; /* Un poco más de espacio en tablets */
        padding: 50px 30px;
    }
    
    .title h2 {
        font-size: 2.2rem;
    }
    
    .title h3 {
        font-size: 1.6rem;
    }
}

/*   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%;
  min-height: 600px;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 80px 20px;
}

.cobertura::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('/asset/media/img/fuentesTrans/cobertura01.jpg') no-repeat center center/cover;
  opacity: 0.15;
  z-index: 0;
}

.cobertura-overlay {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 20px;
}

.cobertura-text {
  max-width: 900px;
  padding: 40px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  border: 2px solid rgba(254, 0, 0, 0.3);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
  transition: all 0.4s ease;
}

.cobertura-text:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(254, 0, 0, 0.3);
  border-color: rgba(254, 0, 0, 0.6);
}

.cobertura-text h3 {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 25px;
  color: var(--secondary-color);
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
  display: inline-block;
}

.cobertura-text h3::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
  border-radius: 2px;
}

.cobertura-text p {
  font-size: 1.2rem;
  line-height: 1.8;
  color: #f5f5f5;
  margin-top: 30px;
}

@media (max-width: 768px) {
  .cobertura {
    min-height: 500px;
    padding: 60px 15px;
  }

  .cobertura-text {
    padding: 30px 20px;
  }

  .cobertura-text h3 {
    font-size: 1.8rem;
  }

  .cobertura-text p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .cobertura-text {
    padding: 20px 15px;
  }

  .cobertura-text h3 {
    font-size: 1.5rem;
  }

  .cobertura-text p {
    font-size: 0.95rem;
  }
}
/*=====infrestructura==========*/

.infraestructura {
    position: relative;
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    color: #fff;
    padding: 100px 0;
    overflow: hidden;
}

.infraestructura::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/asset/media/img/fuentesTrans/infrestructura02.jpg') no-repeat center center/cover;
    opacity: 0.1;
    z-index: 0;
}

.infraestructura-overlay {
    position: relative;
    z-index: 1;
    padding: 40px 20px;
}

.infraestructura-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.infraestructura-text{
    flex: 1 1 50%;
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 2px solid rgba(254, 0, 0, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.infraestructura-text:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(254, 0, 0, 0.4);
    border-color: rgba(254, 0, 0, 0.5);
}

.lista-city{
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.infraestructura-text h2 {
    font-size: 2rem;
    margin-bottom: 25px;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    padding-bottom: 15px;
}

.infraestructura-text h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
}

.infraestructura-list, 
.lista-city ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.lista-city ul li {
    padding: 12px 20px;
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.08);
    border-left: 4px solid var(--secondary-color);
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 1.05rem;
}

.lista-city ul li:hover {
    background: rgba(254, 0, 0, 0.15);
    transform: translateX(10px);
    border-left-width: 6px;
}

.rutas-wrapper {
    margin-top: 40px;
}

.rutas-wrapper h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    padding-bottom: 15px;
}

.rutas-wrapper h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
}

.rutas-columns {
    display: flex;
    gap: 30px;
    padding: 20px 0;
}

.rutas-columns ul {
    list-style: none;
    padding: 0;
    flex: 1;
}

.rutas-columns li {
    padding: 12px 20px;
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.08);
    border-left: 4px solid var(--secondary-color);
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 1.05rem;
}

.rutas-columns li:hover {
    background: rgba(254, 0, 0, 0.15);
    transform: translateX(10px);
    border-left-width: 6px;
}

.infraestructura-map {
    flex: 1 1 45%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 2px solid rgba(254, 0, 0, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.map-container:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 50px rgba(254, 0, 0, 0.4);
    border-color: rgba(254, 0, 0, 0.5);
}

.map-container img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0px 8px 25px rgba(0,0,0,0.5);
}

@media (max-width: 768px) {
    .infraestructura {
        padding: 60px 0;
    }

    .infraestructura-content {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }
    
    .infraestructura-text, 
    .infraestructura-map {
        flex: 1 1 100%;
    }

    .infraestructura-text h2,
    .rutas-wrapper h2 {
        font-size: 1.5rem;
        text-align: center;
    }

    .infraestructura-text h2::after,
    .rutas-wrapper h2::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .rutas-columns {
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 520px) {
    .infraestructura-text {
        padding: 20px;
    }

    .lista-city ul li,
    .rutas-columns li {
        font-size: 0.95rem;
        padding: 10px 15px;
    }
}




/* Servicios */

/* Servicios Section */
.services {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.container-services {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #fe0000;
    border-radius: 2px;
}

.section-title p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
}

.section-title span {
    color: #fe0000;
    font-weight: 600;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Card Styles */
.card {
    background-color: transparent;
    height: 350px;
    perspective: 1000px;
    cursor: pointer;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.card.flipped .card-inner {
    transform: rotateY(180deg);
}

/* Card Front and Back */
.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Front Side */
.card-front {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    color: white;
}

.card-front-yellow { background: linear-gradient(135deg, #fe0000, #dc2626); }
.card-front-red { background: linear-gradient(135deg, #ef4444, #dc2626); }
.card-front-blue { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.card-front-purple { background: linear-gradient(135deg, #a855f7, #7e22ce); }
.card-front-green { background: linear-gradient(135deg, #10b981, #059669); }

.card-front i {
    font-size: 5rem;
    margin-bottom: 20px;
    filter: drop-shadow(2px 4px 6px rgba(0,0,0,0.2));
}

.card-front p {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* Back Side */
.card-back {
    background-color: #000;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px 20px;
    position: relative;
}

/* Imagen de fondo en el reverso */
.card-back::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--bg-image);
    background-size: cover;
    background-position: center;
    opacity: 0.45; /* Muy sutil para que el texto sea legible */
    z-index: 1;
}

/* Establecemos las imágenes de fondo para cada tarjeta */
.card:nth-child(1) .card-back::before { --bg-image: url('/asset/media/img/castelan/unidad01.jpg'); }
.card:nth-child(2) .card-back::before { --bg-image: url('/asset/media/img/castelan/unidad02.jpeg'); }
.card:nth-child(3) .card-back::before { --bg-image: url('/asset/media/img/castelan/unidad03.jpg'); }
.card:nth-child(4) .card-back::before { --bg-image: url('/asset/media/img/castelan/unidad04.png'); }
.card:nth-child(5) .card-back::before { --bg-image: url('/asset/media/img/castelan/unidad05.png'); }

.card-back p {
    position: relative;
    z-index: 2;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #fff;
    margin-bottom: 20px;
    font-weight: 500;
}

.card-back-img {
    display: none; /* Ocultamos la etiqueta img ya que usamos background-image */
}

/* Responsive */
@media (max-width: 768px) {
    .services {
        padding: 60px 0;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .section-title p {
        font-size: 1rem;
        padding: 0 20px;
    }

    .cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 20px;
    }

    .card {
        height: 300px;
    }

    .card-front i {
        font-size: 4rem;
    }

    .card-front p {
        font-size: 1.2rem;
    }

    .card-back p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .cards-grid {
        grid-template-columns: 1fr;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }

    .card {
        height: 280px;
    }

    .card-back p {
        padding: 0 10px;
    }
}
        
/* 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.4);
        }
        
        .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;
            }
        }