:root {
    --primary-orange: #FF671F;
    --primary-orange-dark: #E55D1B;
    --primary-black: #000000;
    --primary-white: #FFFFFF;
    --gray-light: #F5F5F5;
    --gray-medium: #8C8C8C;
    --gray-dark: #333333;
    --shadow-soft: 0 8px 30px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 10px 40px rgba(0, 0, 0, 0.12);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--primary-black);
    background-color: var(--primary-white);
    line-height: 1.6;
}

/* Navbar Moderna */
.navbar {
    background-color: var(--primary-white) !important;
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    padding: 0.8rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.8rem;
    color: var(--primary-black) !important;
}

.navbar-brand span {
    color: var(--primary-orange);
}

.nav-link {
    font-weight: 500;
    margin: 0 0.8rem;
    color: var(--gray-dark) !important;
    position: relative;
    padding: 0.5rem 0 !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--primary-orange);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-orange) !important;
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
    font-size: 1.2rem;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 2px var(--primary-orange);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
                url('../images/bann1.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--primary-white);
    min-height: 85vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
    padding-bottom: 0px;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 700px;
}

/* Tracking Card en Hero (Desktop) */
.tracking-card-hero {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 1rem 2.5rem ;
    position: relative;
    z-index: 10;
    color: white;
}

.tracking-card-hero .form-control {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid transparent;
    color: var(--primary-black);
    padding: 0.1rem 0.5rem;
    font-size: 1.1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.tracking-card-hero .form-control:focus {
    background: rgba(255, 255, 255, 1);
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 4px rgba(255, 103, 31, 0.25);
}

/* Botones */

.btn-primary-custom {
background-color: var(--primary-orange);
border-color: var(--primary-orange);
color: var(--primary-white);
font-weight: 600;
padding: 0.6rem 2rem; /* Cambiado de 0.9rem a 0.6rem */
border-radius: 12px;
transition: all 0.3s ease;
}

.btn-primary-custom:hover {
    background-color: var(--primary-orange-dark);
    border-color: var(--primary-orange-dark);
    color: var(--primary-white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.btn-outline-custom {
background-color: transparent;
border: 2px solid var(--primary-white);
color: var(--primary-white);
font-weight: 600;
padding: 0.6rem 2rem; /* Cambiado de 0.9rem a 0.6rem */
border-radius: 12px;
transition: all 0.3s ease;
}

.btn-outline-custom:hover {
    background-color: var(--primary-white);
    border-color: var(--primary-white);
    color: var(--primary-black);
    transform: translateY(-3px);
}

/* Tracking Card Normal (Para móvil) */
.tracking-card-normal {
    background: var(--primary-white);
    border-radius: 20px;
    box-shadow: var(--shadow-medium);
    padding: 2.5rem;
    position: relative;
    z-index: 10;
    margin-top: -50px;
}

.section-title {
    font-weight: 700;
    color: var(--primary-black);
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
    font-size: 2.2rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 80px;
    height: 5px;
    background: var(--primary-orange);
    border-radius: 3px;
}
/* Wrapper para contenido con imagen */
.tracking-content-wrapper {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.tracking-info {
    flex: 1;
}
/* Services Cards Modernas */
.service-card {
    border: none;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s ease;
    height: 100%;
    background-color: var(--primary-white);
    padding: 2.5rem 1.5rem;
    text-align: center;
    overflow: hidden;
    position: relative;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--primary-orange);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-medium);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--primary-orange);
    display: inline-block;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

/* Office Cards */
.office-card {
    border: none;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    height: 100%;
    background-color: var(--primary-white);
    padding: 2rem;
    transition: all 0.3s ease;
}

.office-card:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-5px);
}

.office-title {
    color: var(--primary-orange);
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.office-icon {
    color: var(--primary-orange);
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* Contact Form */
.contact-form .form-control {
    border-radius: 12px;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form .form-control:focus {
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 4px rgba(255, 103, 31, 0.15);
}

/* Footer */
.footer {
    background: var(--primary-black);
    color: var(--primary-white);
    padding: 4rem 0 2rem;
}

.footer-links a {
    color: var(--gray-medium);
    text-decoration: none;
    margin: 0 15px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-orange);
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin: 0 5px;
    color: var(--primary-white);
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--primary-orange);
    transform: translateY(-3px);
}

/* Resultado de rastreo */
.tracking-result {
    background-color: rgba(255, 103, 31, 0.08);
    border-left: 5px solid var(--primary-orange);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    font-size: 0.80rem; 
}

.tracking-result h5 {
    color: var(--primary-orange);
    font-weight: 700;
}

/* Resultado - NO ENCONTRADO */
.tracking-result-notfound {
    background-color: rgba(255, 0, 0, 0.08);
    border-left: 5px solid #ff3b3b;
    border-radius: 12px;
    padding: 1.5rem;
    font-size: 0.85rem; 
}

/* Resultado - ENTREGADO */
.tracking-result-delivered {
    background-color: rgba(37, 211, 102, 0.1);
    border-left: 5px solid #25D366;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    font-size: 0.80rem; 
}

.tracking-result-delivered h5 {
    color: #25D366;
    font-weight: 700;
}

.tracking-result-notfound h5 {
    color: #ff3b3b;
    font-weight: 700;
}

.tracking-obs{
    font-size: 0.75rem;
}

/* Badge */
.badge-custom {
    background-color: var(--primary-orange);
    color: var(--primary-white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
}

/* Sección Quiénes Somos */
.about-section {
    background-color: var(--gray-light);
    position: relative;
    overflow: hidden;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background-color: rgba(255, 103, 31, 0.03);
    border-radius: 0 0 0 100px;
}

/* Responsive */
@media (max-width: 1199.98px) {
    .hero-title {
        font-size: 2.8rem;
    }
}

@media (max-width: 991.98px) {
    .hero-section {
        min-height: 70vh;
        background-attachment: scroll;
        padding-top: 100px;
        padding-bottom: 60px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .tracking-card-hero {
        margin-top: 3rem;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        min-height: 60vh;
        padding-top: 80px;
        padding-bottom: 40px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .tracking-card-normal {
        margin-top: -30px;
        padding: 1.8rem;
    }
    
    .service-card, .office-card {
        padding: 1.8rem;
    }
    
    .navbar-brand {
        font-size: 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .btn-primary-custom, .btn-outline-custom {
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .footer-links a {
        display: block;
        margin: 10px 0;
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* Espaciados */
.section-spacing {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

@media (max-width: 767.98px) {
    .section-spacing {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
}

/* Animaciones */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mejoras para el formulario de contacto */
.contact-info-card {
    background-color: var(--gray-light);
    border-radius: 20px;
    padding: 2rem;
    height: 100%;
}

.whatsapp-btn {
    background-color: #25D366;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.whatsapp-btn:hover {
    background-color: #1da851;
    color: white;
    transform: translateY(-3px);
}


/* Botones de WhatsApp sutiles */
.whatsapp-btn-subtle {
    background-color: rgba(37, 211, 102, 0.1);
    color: #25D366;
    border: 1.5px solid rgba(37, 211, 102, 0.3);
    font-weight: 500;
    padding: 0.5rem 1.2rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    width: 100%;
    text-align: left;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
}

.whatsapp-btn-subtle:hover {
    background-color: rgba(37, 211, 102, 0.15);
    border-color: rgba(37, 211, 102, 0.5);
    color: #1da851;
    transform: translateY(-2px);
}

.whatsapp-btn-subtle .whatsapp-number {
    font-weight: 600;
    font-size: 0.95rem;
}

.whatsapp-btn-subtle .whatsapp-icon {
    background-color: rgba(37, 211, 102, 0.15);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

/* Cuadro de imagen */
.tracking-image-box {
    flex-shrink: 0;
    width: 140px;
    justify-items: end;
}

.btn-ver-imagen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* gap: 0.5rem; */
    /* width: 100%; */
    /* padding: 1rem; */
    /* background: var(--primary-white);
    border: 2px solid var(--primary-orange); */
    border-radius: 12px;
    /* color: var(--primary-orange); */
    font-weight: 500;
    font-size: 0.85rem;
    cursor: pointer;
    /* transition: all 0.3s ease; */
}

/* .btn-ver-imagen:hover {
    background: var(--primary-orange);
    color: var(--primary-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 103, 31, 0.3);
} */


/* Modal de imagen */
.modal-imagen-tracking {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.modal-imagen-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    cursor: pointer;
}

.modal-imagen-content {
    position: relative;
    background: var(--primary-white);
    border-radius: 16px;
    max-width: 600px;
    max-height: 80vh;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    width: 90%;
}

.modal-imagen-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary-orange);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10001;
}

.modal-imagen-close:hover {
    background: var(--primary-orange-dark);
    transform: rotate(90deg);
}

.modal-imagen-close svg {
    color: var(--primary-white);
}

.modal-imagen-title {
    margin: 0 0 1.5rem 0;
    color: var(--primary-black);
    font-weight: 700;
    font-size: 1.3rem;
}

.modal-imagen-title span {
    color: var(--primary-orange);
}

.modal-imagen-container {
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: calc(90vh - 150px);
    overflow: auto;
}

.modal-imagen-container img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
}

/* Responsive */
@media (max-width: 768px) {
   
    .tracking-image-box {
        width: 100%;
    }

    .btn-ver-imagen {
        flex-direction: row;
        justify-content: center;
    }

    .modal-imagen-tracking{
        justify-content: start;
        
    }

    .modal-imagen-content {
        padding: 1.5rem;
        max-width: 95vw;
        margin-left: 0.8rem;
    }

    .modal-imagen-title {
        font-size: 1.1rem;
    }
}