/* ===== CSS PARA PÁGINA DE TARIFAS ===== */
/* Extra Rápido Los Motilones - Tarifas de Mensajería Expresa 2026 */

:root {
    --rojo-corporativo: #e31e24;
    --rojo-oscuro: #b71c1c;
    --gris-oscuro: #111;
    --gris-medio: #333;
    --gris-claro: #f8f9fa;
    --texto-oscuro: #222;
    --texto-claro: #666;
    --sombra-suave: 0 15px 35px rgba(0,0,0,0.08);
    --sombra-intensa: 0 20px 40px rgba(227,30,36,0.15);
}

/* ===== ESTILOS GENERALES ===== */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #fafafa;
    color: var(--texto-oscuro);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== NAVBAR (compatible con styles.css) ===== */
/* Se mantiene el navbar del archivo styles.css original */

/* ===== HERO ===== */
.hero-tarifas {
    background: linear-gradient(rgba(0,0,0,0.85), rgba(227,30,36,0.75)), url('../img/slidenu.jpg');
    background-size: cover;
    background-position: center;
    padding: 80px 0;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-tarifas h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 15px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

.hero-tarifas p {
    font-size: 18px;
    font-weight: 300;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto;
}

/* ===== SECCIÓN PRINCIPAL ===== */
.tarifas-section {
    padding: 60px 0 80px;
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
}

/* ===== TARJETA DE INFORMACIÓN GENERAL ===== */
.info-general {
    background: white;
    border-radius: 25px;
    padding: 35px;
    box-shadow: var(--sombra-intensa);
    border: 1px solid rgba(227,30,36,0.1);
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.info-general-icono {
    width: 80px;
    height: 80px;
    background: #e31e24;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 36px;
    flex-shrink: 0;
}

.info-general-contenido {
    flex: 1;
}

.info-general-contenido h3 {
    color: #e31e24;
    margin: 0 0 10px;
    font-size: 24px;
    font-weight: 700;
}

.info-general-contenido p {
    margin: 5px 0;
    color: #555;
    font-size: 16px;
}

.info-general-contenido i {
    color: #e31e24;
    width: 25px;
}

.info-general-vigencia {
    background: #e31e24;
    color: white;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 18px;
    white-space: nowrap;
}

/* ===== TARJETA DE INFORMACIÓN DE SEGUROS ===== */
.seguros-card {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-radius: 25px;
    padding: 35px;
    margin-bottom: 40px;
    border: 2px dashed #e31e24;
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.seguros-icono {
    width: 80px;
    height: 80px;
    background: #e31e24;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 36px;
}

.seguros-contenido {
    flex: 1;
}

.seguros-contenido h3 {
    color: #e31e24;
    margin: 0 0 15px;
    font-size: 22px;
    font-weight: 700;
}

.seguros-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.seguro-item {
    background: white;
    padding: 10px 15px;
    border-radius: 10px;
    border-left: 3px solid #e31e24;
}

.seguro-item strong {
    color: #e31e24;
    display: block;
    font-size: 14px;
}

.seguro-item span {
    color: #333;
    font-size: 15px;
    font-weight: 600;
}

/* ===== ORÍGENES ===== */
.origen-wrapper {
    margin-bottom: 50px;
    scroll-margin-top: 100px;
}

.origen-titulo {
    background: #e31e24;
    color: white;
    padding: 15px 25px;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 25px;
    font-weight: 700;
    font-size: 24px;
    box-shadow: 0 5px 15px rgba(227,30,36,0.3);
}

.origen-titulo i {
    margin-right: 10px;
}

/* ===== TABLAS DE TARIFAS ===== */
.tarifas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.tarifa-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--sombra-suave);
    border: 1px solid #eee;
    transition: all 0.3s;
}

.tarifa-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--sombra-intensa);
    border-color: #e31e24;
}

.tarifa-header {
    background: linear-gradient(135deg, #e31e24, #b71c1c);
    color: white;
    padding: 20px;
    text-align: center;
}

.tarifa-header h4 {
    margin: 0 0 5px;
    font-size: 18px;
    font-weight: 600;
}

.tarifa-header p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

.tarifa-body {
    padding: 20px;
}

.tarifa-tabla {
    width: 100%;
    border-collapse: collapse;
}

.tarifa-tabla th {
    text-align: left;
    padding: 12px 10px;
    background: #f0f0f0;
    color: #333;
    font-weight: 600;
    font-size: 14px;
}

.tarifa-tabla td {
    padding: 12px 10px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.tarifa-tabla tr:last-child td {
    border-bottom: none;
}

.tarifa-tabla .precio {
    font-weight: 700;
    color: #e31e24;
    text-align: right;
}

.tarifa-tabla .tipo {
    font-size: 12px;
    color: #666;
    display: block;
    text-align: right;
}

.tarifa-tabla .destino-grupo {
    font-weight: 600;
    color: #333;
}

/* ===== NOTAS ESPECIALES ===== */
.nota-destacada {
    background: #fff3cd;
    border-radius: 15px;
    padding: 20px;
    margin: 30px 0;
    border-left: 5px solid #ffc107;
    color: #856404;
}

.nota-destacada h4 {
    color: #856404;
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 700;
}

.nota-destacada ul {
    margin: 0;
    padding-left: 20px;
}

.nota-destacada li {
    margin-bottom: 5px;
}

/* ===== TIEMPOS DE ENTREGA ===== */
.tiempos-entrega {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-radius: 20px;
    padding: 25px;
    margin: 40px 0;
    display: flex;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
}

.tiempos-icono {
    width: 70px;
    height: 70px;
    background: #28a745;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
}

.tiempos-contenido h4 {
    color: #28a745;
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 700;
}

.tiempos-contenido p {
    margin: 0;
    color: #555;
}

/* ===== BOTÓN VOLVER ===== */
.tarifas-acciones {
    display: flex;
    justify-content: center;
    margin: 50px 0 20px;
}

.btn-volver {
    background: #6c757d;
    color: white;
    padding: 15px 40px;
    border-radius: 60px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
    border: none;
    font-size: 16px;
}

.btn-volver:hover {
    background: #5a6268;
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    color: white;
}

/* ===== FOOTER ===== */
footer {
    background: var(--gris-oscuro);
    color: #bbb;
    padding: 60px 0 30px;
    border-top: 4px solid var(--rojo-corporativo);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.footer-logo-img {
    max-width: 180px;
    margin-bottom: 20px;
}

.footer-info p {
    margin-bottom: 8px;
    font-size: 15px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #e31e24;
}

.vigencia {
    text-align: center;
    margin: 20px 0;
    padding: 10px;
    background: rgba(227,30,36,0.1);
    border-radius: 50px;
    color: #e31e24;
    font-weight: 600;
}

.copyright {
    text-align: center;
    margin-top: 20px;
    color: #777;
    font-size: 14px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .hero-tarifas h1 {
        font-size: 38px;
    }
    
    .info-general {
        flex-direction: column;
        text-align: center;
    }
    
    .info-general-vigencia {
        white-space: normal;
    }
    
    .seguros-card {
        flex-direction: column;
        text-align: center;
    }
    
    .seguros-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .hero-tarifas {
        padding: 60px 0;
    }
    
    .hero-tarifas h1 {
        font-size: 32px;
    }
    
    .tarifas-section {
        padding: 40px 0;
    }
    
    .origen-titulo {
        font-size: 20px;
        padding: 10px 20px;
    }
    
    .tarifas-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .hero-tarifas h1 {
        font-size: 28px;
    }
    
    .hero-tarifas p {
        font-size: 16px;
    }
    
    .info-general {
        padding: 25px;
    }
}