﻿/* ===================================================================
           ESTILOS BASE Y VARIABLES
           =================================================================== */
:root {
    /* Colores Inspirados en la Marca (Ajustados para Contraste UX) */
    --color-primary: #007bff; /* Azul vibrante (Acción principal) */
    --color-secondary: #F15D2A; /* Amarillo (Alerta/Secundario) */
    --color-dark: #343a40;
    --color-light: #f8f9fa;
    --color-success: #28a745;
    --color-error: #dc3545;
    --font-family: 'Arial', sans-serif;
    --border-radius: 6px;
}

/* ===================================================================
           ESTILOS GLOBALES Y FLEXBOX PARA STICKY FOOTER
           =================================================================== */
body {
    font-family: var(--font-family);
    margin: 0;
    padding: 0;
    background-color: var(--color-light);
    color: var(--color-dark);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.hidden {
    display: none !important;
}

.main-content {
    flex-grow: 1;
}

/* ===================================================================
           HEADER (NAVEGACIÓN FIJA)
           =================================================================== */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 3%;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    height: 100px;
    width: 200px;
    cursor: pointer;
}

    .logo:hover {
        cursor: pointer;
    }

.title {
    text-align: center;
    flex: 1;
}

    .title img {
        height: 30px;
        width: 200px;
    }

.btn-cotiza {
    background-color: var(--color-secondary);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

    .btn-cotiza:hover {
        background-color: #FF7A09;
    }

/* ===================================================================
           SECCIÓN HERO (RASTREO DOMINANTE)
           =================================================================== */
.hero-section {
    position: relative;
    color: white;
    text-align: center;
    height: 75vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.video-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.video-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

    .video-slide.active {
        opacity: 1;
    }

    .video-slide video {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 20px;
}

    .hero-content h1 {
        font-size: 2.8em;
        margin-bottom: 20px;
        text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.9);
    }

.tracking-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.tracking-input-group {
    display: flex;
    gap: 10px;
}

#tracking-id {
    flex-grow: 1;
    padding: 15px;
    border: none;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    font-size: 1.1em;
}

    #tracking-id:focus {
        outline: 3px solid var(--color-secondary);
    }

.btn-primary {
    background-color: var(--color-primary);
    color: white;
    border: none;
    padding: 15px 25px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    transition: background-color 0.3s;
}

    .btn-primary:hover {
        background-color: #0056b3;
    }

.cta-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-size: 1em;
    font-weight: bold;
    margin-top: 15px;
    transition: background-color 0.3s, color 0.3s;
}

    .cta-secondary:hover {
        background-color: rgba(255, 255, 255, 0.2);
    }

#tracking-error {
    color: var(--color-error);
    font-weight: bold;
    margin-top: 10px;
    display: none;
}

/* ===================================================================
           SECCIÓN DE BENEFICIOS
           =================================================================== */
.benefits-section {
    background-color: white;
    padding: 0px 5%;
    text-align: center;
    min-height: auto;
}

    .benefits-section h2 {
        margin-bottom: 40px;
        font-size: 2em;
        color: var(--color-dark);
    }

.benefit-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

    .benefit-item .icon {
        font-size: 3em;
        color: var(--color-primary);
        margin-bottom: 15px;
    }

    .benefit-item h4 {
        margin: 0;
        font-size: 1.2em;
    }

.benefit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 40px;
    grid-auto-rows: minmax(min-content, max-content);
}

.benefit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.btn-regresar {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 10px 20px;
    margin-top: 30px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
    display: inline-block;
}

    .btn-regresar:hover {
        background-color: #5a6268;
    }

/* ===================================================================
           TRACKING BAR
           =================================================================== */
.tracking-bar {
    display: flex;
    color: white;
    font-size: 12px;
    text-align: center;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
}

.tracking-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 5px;
    transition: background 0.3s ease;
    position: relative;
}

    .tracking-step:hover {
        background-color: #e9ecef;
        transform: translateY(-2px);
    }

.bg-generada {
    border-radius: 25px 0px 0px 25px;
    background-color: orangered;
    text-align: center;
}

.bg-recepcion {
    background-color: orangered;
    text-align: center;
}

.bg-transito {
    background-color: orangered;
    text-align: center;
}

.bg-porentregar {
    background-color: orangered;
    text-align: center;
}

.bg-entregada {
    border-radius: 0px 25px 25px 0px;
    background-color: darkblue;
    text-align: center;
}

.bg-gris {
    color: silver;
}

.truck {
    background-image: url("../images/bus.png");
    background-size: contain;
    background-repeat: no-repeat;
    display: inline-block;
    width: 50px;
    height: 14px;
    margin-left: 5px;
    vertical-align: middle;
}

/* ===================================================================
           EVIDENCIAS
           =================================================================== */
.responsive {
    padding: 0 6px;
    float: left;
    width: 23.99999%;
}

div.gallery {
    border: 1px solid #ccc;
}

    div.gallery:hover {
        border: 1px solid #777;
    }

    div.gallery img {
        /*width: 100%;
        height: auto;*/
        width: 200px;
        height: 150px;
    }

div.desc {
    padding: 15px;
    text-align: center;
}

/* ===================================================================
           FOOTER
           =================================================================== */
.footer {
    background-color: var(--color-light);
    color: black;
    padding: 40px 5%;
    font-size: 1.0em;
    font-weight: 500;
    text-align: center;
    border-top: 1px solid #a39d9d;
    padding-top: 30px;
}

/* ===================================================================
MEDIA QUERIES (RESPONSIVE)
=================================================================== */

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 5px;
    }

    .logo {
        height: 75px;
        width: 150px;
    }

    .title img {
        height: 20px;
        width: 180px;
    }

    .btn-cotiza {
        font-weight: bold;
        font-size: 9px;
    }

    .hero-section {
        height: 60vh;
    }

    .hero-content h1 {
        font-size: 1.8em;
    }

    .tracking-input-group {
        flex-direction: column;
    }

    #tracking-id, .btn-primary {
        border-radius: var(--border-radius);
        padding: 12px;
    }

    .quote-section h2 {
        font-size: 2em;
    }

    .quote-section p {
        font-size: 1em;
    }

    .btn-quote-main {
        font-size: 1.1em;
        padding: 15px 25px;
    }


    .responsive {
        width: 45%;
        margin: 6px 0;
    }

    .tracking-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .tracking-step {
        flex-direction: row;
        justify-content: flex-start;
        width: 100%;
    }

        .tracking-step span {
            font-size: 1rem;
        }

    .bg-generada {
        font-size: xx-small;
    }

    .bg-recepcion {
        font-size: xx-small;
    }

    .bg-transito {
        font-size: xx-small;
    }

    .bg-porentregar {
        font-size: xx-small;
    }

    .bg-entregada {
        font-size: xx-small;
    }
}
