/* Estilos Generales */
:root {
    --primary-color: #00529B;
    --secondary-color: #FFC107;
    --dark-color: #2c3e50;
    --light-color: #f4f4f4;
    --background-color: #FFFFFF;
    --font-family: 'Roboto', sans-serif;
}
html {
    scroll-behavior: smooth;
}
body {
    margin: 0;
    font-family: var(--font-family);
    background-color: var(--background-color);
    color: var(--dark-color);
    line-height: 1.6;
}
.container {
    max-width: 1100px;
    margin: auto;
    padding: 0 20px;
}
section {
    padding: 60px 0;
    text-align: center;
}
h1, h2, h3, h4 {
    color: var(--primary-color);
}

/* --- HEADER --- */
.main-header {
    background: white;
    padding: 10px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo img {
    height: 50px;
}
.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}
.nav-links li a {
    text-decoration: none;
    color: var(--dark-color);
    padding: 10px 15px;
    font-weight: bold;
    transition: color 0.3s ease;
}
.nav-links li a:hover {
    color: var(--primary-color);
}
.hamburger-menu {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- SECCIÓN HERO --- */
.hero-section {
    min-height: 100vh;
    height: auto;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('images/fondo.png');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    padding: 120px 20px 60px 20px;
    box-sizing: border-box;
}
.hero-content {
    max-width: 700px;
}
.hero-content h1 {
    font-size: 2.8rem;
    color: white;
    margin-bottom: 10px;
}
.tracking-form {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 10px;
}
.tracking-form input {
    width: 60%;
    max-width: 400px;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
}
.tracking-form button {
    padding: 15px 30px;
    background: var(--secondary-color);
    color: var(--dark-color);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}
.tracking-form button:hover {
    background-color: #e0ac00;
}
.cta-button.hero-quote {
    background-color: #FFFFFF;
    color: var(--dark-color);
    border: 2px solid #FFFFFF;
    margin-top: 25px;
    font-size: 1rem;
}
.cta-button.hero-quote:hover {
    background-color: #f0f0f0;
    color: var(--primary-color);
}

/* --- SECCIÓN DE CLIENTES MEJORADA --- */
.audience-section {
    background: var(--light-color);
}
.subtitle {
    max-width: 800px;
    margin: 0 auto 40px auto;
    font-size: 1.1rem;
}
.audience-cards-container {
    display: flex;
    gap: 30px;
    margin-top: 40px;
}
.audience-section .card {
    border-top: 4px solid var(--primary-color);
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    flex: 1;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}
.audience-section .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}
.card-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    background-color: #fff;
    width: 70px;
    height: 70px;
    line-height: 70px;
    border-radius: 50%;
    margin-left: auto;
    margin-right: auto;
    border: 2px solid var(--light-color);
}

/* --- SECCIÓN "POR QUÉ ELEGIRNOS" MEJORADA --- */
.why-us-section {
    background: #fff;
}
.benefits-container {
    display: flex;
    gap: 30px;
    margin-top: 40px;
    text-align: left;
}
.benefit {
    flex: 1;
    padding: 20px;
}
.benefit-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}
.benefit h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}
.benefit p {
    font-size: 1rem;
    line-height: 1.7;
}

/* --- SECCIÓN DE COTIZACIÓN RÁPIDA --- */
.quick-quote-section {
    background-color: var(--light-color);
}
.courier-selection {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px; /* Espacio horizontal */
    row-gap: 20px; /* Espacio vertical cuando hay más de una línea */
    margin: 30px 0;
}
.checkbox-wrapper label {
    background-color: #fff;
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 12px 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    display: block; /* Asegura que el label ocupe el espacio */
}
.checkbox-wrapper input[type="checkbox"] {
    display: none;
}
.checkbox-wrapper input[type="checkbox"]:checked + label {
    background-color: var(--secondary-color);
    border-color: #e0ac00;
    color: var(--dark-color);
}

/* --- SECCIÓN DE PAQUETERÍAS --- */
.partners-section {
    background: white;
}
.logos-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 50px;
    margin-top: 30px;
}
.logos-container img {
    max-height: 60px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}
.logos-container img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* --- MODAL DE COTIZACIÓN --- */
.modal-overlay{position:fixed;top:0;left:0;width:100%;height:100%;background-color:rgba(0,0,0,0.7);display:none;justify-content:center;align-items:center;z-index:1001}
.modal-content{background:white;padding:30px;border-radius:10px;width:90%;max-width:600px;max-height:90vh;overflow-y:auto;position:relative;text-align:left}
.close-button{position:absolute;top:15px;right:20px;font-size:2rem;color:#aaa;cursor:pointer}
.close-button:hover{color:var(--dark-color)}
#quote-form .form-section{margin-bottom:20px;border-bottom:1px solid #eee;padding-bottom:20px}
#quote-form label{display:block;margin-bottom:5px;font-weight:bold;color:var(--primary-color)}
#quote-form input[type="text"],#quote-form input[type="tel"],#quote-form input[type="number"],#quote-form textarea{width:100%;padding:10px;margin-bottom:10px;border:1px solid #ccc;border-radius:5px;box-sizing:border-box}
.shipment-type-selector{display:flex;gap:10px}
.shipment-type-selector input[type="radio"]{display:none}
/* ESTILO FINAL CON CONTRASTE CORREGIDO */
.shipment-type-selector label{flex:1;text-align:center;padding:10px;border:2px solid #ccc;border-radius:8px;cursor:pointer;transition:all 0.3s ease;background-color:#f9f9f9;color:var(--dark-color);font-weight:bold;}
.shipment-type-selector input[type="radio"]:checked+label{background-color:var(--primary-color);color:white;border-color:var(--primary-color)}
#selected-couriers-display{text-align:center;font-weight:bold;color:var(--primary-color);margin-bottom:20px;padding-bottom:20px;border-bottom:1px solid #eee}
.cta-button{background:var(--secondary-color);color:var(--dark-color);padding:15px 35px;border:none;border-radius:8px;font-size:1.1rem;font-weight:bold;cursor:pointer;margin-top:10px;transition:background-color 0.3s ease;width:100%;box-sizing:border-box}
.cta-button:hover{background-color:#e0ac00}

/* --- TARJETA DE RESULTADOS Y ANIMACIÓN --- */
.tracking-results-container{margin-top:30px;max-width:800px;margin-left:auto;margin-right:auto;color:var(--dark-color);text-align:left}
.result-card{background:rgba(255,255,255,0.95);padding:25px;border-radius:10px;box-shadow:0 5px 15px rgba(0,0,0,0.2)}
.result-header{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #eee;padding-bottom:15px;margin-bottom:15px;flex-wrap:wrap;gap:10px}
.result-header h3{margin:0}
.result-header p{margin:5px 0 0 0;display:flex;align-items:center}
.result-header .courier-logo{height:25px;margin-right:10px;vertical-align:middle}
.result-details-grid{display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap}
.result-column{flex:1;min-width:250px;border:1px solid #f0f0f0;padding:15px;border-radius:8px}
.result-column h4{margin-top:0;color:var(--primary-color);border-bottom:1px solid #eee;padding-bottom:10px}
.result-column p{margin:5px 0;font-size:0.9rem}
.result-movements ul {list-style: none; padding: 0; margin: 0;}
.result-movements li {padding: 8px 0; border-bottom: 1px dashed #ddd;}
.result-movements li:last-child {border-bottom: none;}
.tracking-results-container .error{background-color:#ffdddd;color:#d8000c;padding:15px;border-radius:8px;text-align:center}
.loader{border:5px solid #f3f3f3;border-top:5px solid var(--primary-color);border-radius:50%;width:40px;height:40px;animation:spin 1s linear infinite;margin:20px auto}
@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}
.status-en-transito{background-color:#ffc107;color:#333;padding:3px 8px;border-radius:5px;font-weight:bold}
.status-entregado{background-color:#28a745;color:white;padding:3px 8px;border-radius:5px;font-weight:bold}
.status-en-bodega{background-color:#17a2b8;color:white;padding:3px 8px;border-radius:5px;font-weight:bold}
.status-en-transito-MX{background-color:#ffc107;color:#333;padding:3px 8px;border-radius:5px;font-weight:bold}

/* --- FOOTER Y ENLACE DE POLÍTICAS --- */
.main-footer{background:var(--dark-color);color:white;padding-top:40px}
.footer-container{display:flex;justify-content:space-between;flex-wrap:wrap;gap:20px}
.footer-column{flex:1;min-width:250px}
.footer-column h4{color:var(--secondary-color);margin-bottom:15px}
.footer-column ul{list-style:none;padding:0}
.footer-column ul li a{color:white;text-decoration:none;line-height:2;transition:color 0.3s}
.footer-column ul li a:hover{color:var(--secondary-color)}
.footer-bottom{text-align:center;padding:20px 0;margin-top:20px;border-top:1px solid #444}
.footer-link{color:#ccc;text-decoration:none;font-size:0.9rem;margin-top:10px;display:inline-block}
.footer-link:hover{color:white}

/* --- DISEÑO RESPONSIVO --- */
@media (max-width:768px){.hero-content h1{font-size:2.2rem}.nav-links{display:none;flex-direction:column;width:100%;background-color:white;position:absolute;top:70px;left:0;text-align:center;box-shadow:0 2px 5px rgba(0,0,0,0.1)}.nav-links.active{display:flex}.nav-links li{padding:15px 0}.hamburger-menu{display:block}.tracking-form{flex-direction:column;align-items:center}.tracking-form input{width:100%}.audience-cards-container,.benefits-container,.result-details-grid{flex-direction:column}.footer-container{flex-direction:column;text-align:center}.benefit{padding:20px 0}}