/* =============================================
   ESTILOS ESPECÍFICOS PARA RUTAS.HTML
============================================= */

/* Hero Section */
.rutas-hero {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)),
                url('../img/camion.jpeg') center/cover;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.rutas-hero .hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
}

.rutas-hero .hero-subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
}

/* Sección Subtítulo */
.section-subtitle {
    text-align: center;
    color: #6c757d;
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

/* Rutas Grid */
.rutas-principales {
    padding: 60px 0;
}

.rutas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.ruta-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.ruta-card:hover {
    transform: translateY(-10px);
}

.ruta-img {
    height: 250px;
    position: relative;
    overflow: hidden;
}

.ruta-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.ruta-card:hover .ruta-img img {
    transform: scale(1.1);
}

.ruta-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #E30613;
    color: white;
    padding: 8px 15px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
}

.ruta-content {
    padding: 30px;
}

.ruta-content h3 {
    color: #1a1a2e;
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.ruta-descripcion {
    color: #6c757d;
    margin-bottom: 20px;
    line-height: 1.6;
}

.ruta-detalles {
    margin: 25px 0;
}

.detalle-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f1f1f1;
}

.detalle-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.detalle-item i {
    color: #E30613;
    font-size: 1.2rem;
    width: 25px;
}

.detalle-text {
    flex: 1;
}

.detalle-text strong {
    display: block;
    color: #5d6d7e;
    font-size: 0.9rem;
    margin-bottom: 3px;
}

.detalle-text span {
    color: #1a1a2e;
    font-weight: 500;
}

.btn-ruta {
    display: inline-block;
    background: #E30613;
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
    border: none;
    cursor: pointer;
}

.btn-ruta:hover {
    background: #c1050f;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(227, 6, 19, 0.3);
}

/* Mapa de Cobertura */
.cobertura-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.mapa-container {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.mapa-colombia {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.mapa-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mapa-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.ciudad-marker {
    position: absolute;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.ciudad-marker:hover {
    transform: scale(1.2);
}

.marker-dot {
    width: 12px;
    height: 12px;
    background: #E30613;
    border: 3px solid white;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.marker-label {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.ciudad-marker:hover .marker-label {
    opacity: 1;
}

.ciudades-lista {
    padding: 30px;
    border-top: 1px solid #f1f1f1;
}

.ciudades-lista h3 {
    color: #1a1a2e;
    margin-bottom: 20px;
    text-align: center;
}

.ciudades-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.ciudad-badge {
    background: #f8f9fa;
    color: #5d6d7e;
    padding: 8px 15px;
    border-radius: 50px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid #e9ecef;
}

.ciudad-badge:hover {
    background: #E30613;
    color: white;
    border-color: #E30613;
    transform: translateY(-2px);
}

/* Ventajas Section */
.ventajas-section {
    padding: 80px 0;
}

.ventajas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.ventaja-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    border-top: 4px solid #E30613;
}

.ventaja-card:hover {
    transform: translateY(-10px);
}

.ventaja-icon {
    width: 70px;
    height: 70px;
    background: rgba(227, 6, 19, 0.1);
    color: #E30613;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 20px;
}

.ventaja-card h3 {
    color: #1a1a2e;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.ventaja-card p {
    color: #5d6d7e;
    line-height: 1.6;
    margin: 0;
}

/* =============================================
   ESTILOS PARA CERTIFICACIONES EN FOOTER
============================================= */

.footer-certificaciones {
    background: #f8f9fa;
    padding: 40px 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.footer-certificaciones .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-certificaciones h4 {
    color: #1a1a2e;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.certificaciones-logos {
    max-width: 800px;
    margin: 0 auto;
}

.certificaciones-logos img {
    max-width: 50%;
    height: auto;
    filter: grayscale(50%);
    transition: filter 0.3s ease;
}

.certificaciones-logos img:hover {
    filter: grayscale(0%);
}

/* Responsive */
@media (max-width: 768px) {
    .footer-certificaciones {
        padding: 30px 0;
    }
    
    .footer-certificaciones h4 {
        font-size: 1.1rem;
    }
}

/* Responsive */
@media (max-width: 992px) {
    .rutas-hero .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .rutas-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
    
    .mapa-colombia {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .rutas-hero {
        height: 300px;
    }
    
    .rutas-hero .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .ruta-img {
        height: 200px;
    }
    
    .ventajas-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 40px auto 0;
    }
    
    .marker-label {
        display: none;
    }
}

@media (max-width: 576px) {
    .rutas-grid {
        grid-template-columns: 1fr;
    }
    
    .ruta-content {
        padding: 20px;
    }
    
    .ciudades-grid {
        gap: 8px;
    }
    
    .ciudad-badge {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}