﻿/* ===================================================================
           ESTILOS BASE Y VARIABLES
           =================================================================== */
:root {
    --color-primary-dark: #00008b; /* Azul marino  */
    --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;
    --color-disabled: #969393;
    --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: 80px;
    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;
}

.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 INFO
=================================================================== */

.tracking-info {
    display: flex;
    justify-content: center;
    width: 100%;
}

.item {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.label {
    color: var(--color-primary-dark);
    font-size: 16px;
    width: fit-content;
    padding: 2px 4px;
    font-weight: 500;
    margin-bottom: 8px;
}

.value {
    font-size: 15px;
    width: fit-content;
    padding: 2px 4px;
    letter-spacing: 1px;
}

/* ===================================================================
TRACKING BAR
=================================================================== */

.tracking {
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

.locations {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

    .locations p {
        color: var(--color-primary-dark);
        font-weight: 500;
        margin-bottom: 8px;
    }

.location {
    width: 45%;
}

    .location h4 {
        color: var(--color-primary-dark);
        font-weight: 500;
        margin-bottom: 8px;
    }

    .location p {
        color: #555;
        font-size: 15px;
        line-height: 1.7;
    }

    .location strong {
        color: #333;
        font-weight: 600;
    }

hr {
    border: none;
    border-top: 1px solid #d9d9d9;
    margin: 15px 0 20px;
}

.titulo {
    color: var(--color-primary-dark);
    margin-bottom: 25px;
    font-weight: 500;
}

.timeline {
    position: relative;
    display: flex;
    justify-content: space-between;
    text-align: center;
}

.line {
    position: absolute;
    top: 32px;
    left: 40px;
    right: 40px;
    height: 3px;
    background: var(--color-primary-dark);
    z-index: 0;
}

.step {
    position: relative;
    width: 180px;
    z-index: 1;
}

.circle {
    width: 64px;
    height: 64px;
    margin: auto;
    border-radius: 50%;
    background: var(--color-primary-dark);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    margin-bottom: 12px;
    box-shadow: 0 3px 8px rgba(0,0,0,.15);
}

.circle-active {
    background: var(--color-secondary);
}

.step span {
    display: block;
    color: #444;
    font-size: 12px;
    line-height: 1.4;
}

.truck {
    background-image: url("../images/bus.png");
    background-size: contain;
    background-repeat: no-repeat;
    display: inline-block;
    width: 50px;    
    height: 30px;
    vertical-align:middle;
    margin-left: 10px;
}

/* ===================================================================
           EVIDENCIAS
           =================================================================== */

.galeria{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:15px;
    margin:auto;
}

.card{
    position:relative;
    aspect-ratio:1/1;
    overflow:hidden;
    border-radius:10px;
    cursor:pointer;
}

.card img{
    width:100%;
    height:100%;
    object-fit:cover;
    transition:.4s;
}

.card:hover img{
    transform:scale(1.1);
}

.card:hover .info{
    opacity:1;
}

.info{
    position:absolute;
    inset:0;
    background:rgba(0,0,0,.45);
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    color:white;
    opacity:0;
    transition:.3s;
}

.card:hover .info{
    opacity:1;
}

.marca-agua{
    position:absolute;
    bottom:12px;
    right:12px;
    opacity:.45;
    filter:drop-shadow(0 2px 3px rgba(0,0,0,.5));
}
.marca-agua img{
    width:45px;
    height:45px;
    border-radius:50%;
}


/* ===================================================================
           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)
=================================================================== */

/* CELULAR */
@media(max-width:480px){

    .galeria{
        grid-template-columns:repeat(2,1fr);
        gap:8px;
    }

}

/* TABLET */
@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;
        }

    .step span {
    font-size: 8px;
    }

    .galeria{
        grid-template-columns: repeat(2,1fr);
        gap:10px;
    }

    .footer {
    font-size: 0.8em;
 

}

@keyframes fall {
    to {
        transform: translateY(110vh);
        opacity: 0;
    }
}
