/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --tasa-red: #C4382D;
    --tasa-blue: #3B5998;
    --tasa-dark-blue: #2A4074;
    --tasa-gray: #F5F5F5;
    --tasa-dark-gray: #333333;
    --text-color: #333333;
    --light-gray: #F8F9FA;
    --border-color: #E0E0E0;
    --success-color: #28A745;
    --error-color: #DC3545;
    --warning-color: #FFC107;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

.logo-img {
    height: 50px;
    width: auto;
}

.nav-desktop {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--tasa-red);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    margin: 3px 0;
    transition: 0.3s;
}

.nav-mobile {
    display: none;
    background: white;
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
}

.nav-mobile.active {
    display: block;
}

.nav-link-mobile {
    display: block;
    padding: 10px 20px;
    color: var(--text-color);
    text-decoration: none;
    border-bottom: 1px solid var(--border-color);
}

.nav-link-mobile:hover {
    background: var(--light-gray);
    color: var(--tasa-red);
}

/* Hero Slider */
.hero-slider {
    position: relative;
    height: 80vh;
    overflow: hidden;
    margin-top: 80px;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.hero-content {
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 40px;
    background: rgba(0,0,0,0.5);
    border-radius: 10px;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 30px;
    line-height: 1.2;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 15px;
    cursor: pointer;
    font-size: 18px;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.slider-arrow:hover {
    background: rgba(0,0,0,0.8);
}

.slider-arrow.prev {
    left: 20px;
}

.slider-arrow.next {
    right: 20px;
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background 0.3s ease;
}

.dot.active {
    background: white;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--tasa-red);
    color: white;
}

.btn-primary:hover {
    background: #A02E24;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--tasa-blue);
    border: 2px solid var(--tasa-blue);
}

.btn-outline:hover {
    background: var(--tasa-blue);
    color: white;
}

/* Tracking Section */
.tracking-section {
    padding: 80px 0;
    background: var(--light-gray);
}

.tracking-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: var(--text-color);
}

.tracking-form {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.input-group {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.input-group input {
    flex: 1;
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-size: 16px;
}

.input-group input:focus {
    outline: none;
    border-color: var(--tasa-blue);
}

.tracking-help {
    text-align: center;
    color: #666;
    font-size: 14px;
}

/* Services Section */
.services-section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--text-color);
}

.section-header p {
    font-size: 1.2rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-image {
    height: 250px;
    background-size: cover;
    background-position: center;
}

.service-content {
    padding: 30px;
}

.service-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.service-content p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Stats Section */
.stats-section {
    padding: 80px 0;
    background: var(--tasa-red);
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* About Section */
.about-section {
    padding: 80px 0;
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: #C4382D;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 20px;
}

.feature-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
}

/* Industries Section */
.industries-section {
    padding: 80px 0;
    background: var(--light-gray);
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.industry-item {
    background: var(--tasa-blue);
    color: white;
    padding: 30px;
    text-align: center;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.industry-item:hover {
    background: var(--tasa-red);
}

/* Footer */
.footer {
    background: #C4382D;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #CBD5E0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: white;
}

.footer-logo {
    height: 50px;
    margin-bottom: 20px;
}

.footer-section p {
    color: #CBD5E0;
    line-height: 1.6;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #CBD5E0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 20px;
    text-align: center;
    color: #CBD5E0;
}

/* Tracking Page Styles */
.tracking-page {
    min-height: 100vh;
    background: var(--light-gray);
}

.tracking-header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 20px 0;
}

.tracking-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tracking-search-section {
    padding: 40px 0;
}

.tracking-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    overflow: hidden;
}

.tracking-card.error {
    border-left: 5px solid var(--error-color);
}

.tracking-card.info {
    background: #E3F2FD;
    border-left: 5px solid var(--tasa-blue);
}

.card-header {
    background: var(--light-gray);
    padding: 20px 30px;
    border-bottom: 1px solid var(--border-color);
}

.card-header h2,
.card-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: var(--text-color);
}

.card-content {
    padding: 30px;
}

.text-center {
    text-align: center;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--tasa-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error-icon {
    font-size: 3rem;
    color: var(--error-color);
    margin-bottom: 20px;
}

.error-state h3 {
    color: var(--error-color);
    margin-bottom: 10px;
}

.error-help {
    color: #666;
    font-size: 14px;
    margin-top: 10px;
}

.package-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.info-item h4 {
    color: #666;
    margin-bottom: 10px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tracking-code {
    font-family: 'Courier New', monospace;
    background: var(--light-gray);
    padding: 10px;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
}

.status-badge {
    display: inline-flex;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
}

.status-entregado {
    background: #D4EFDF;
    color: #27AE60;
    border: 1px solid #27AE60;
}

.status-transito {
    background: #EBF3FD;
    color: #3498DB;
    border: 1px solid #3498DB;
}

.status-pendiente {
    background: #FEF9E7;
    color: #F39C12;
    border: 1px solid #F39C12;
}

.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline-item {
    position: relative;
    padding: 20px 0 20px 60px;
    margin-bottom: 30px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.timeline-item.completed::before {
    background: var(--success-color);
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: 11px;
    top: 20px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--border-color);
    border: 3px solid white;
    box-shadow: 0 0 0 3px var(--border-color);
}

.timeline-item.completed::after {
    background: var(--success-color);
    box-shadow: 0 0 0 3px var(--success-color);
}

.timeline-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-left: 4px solid var(--border-color);
}

.timeline-item.completed .timeline-content {
    border-left-color: var(--success-color);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.timeline-status {
    display: flex;
    align-items: center;
    gap: 10px;
}

.timeline-status h4 {
    margin: 0;
    color: var(--text-color);
}

.timeline-status.completed h4 {
    color: var(--success-color);
}

.timeline-date {
    text-align: right;
    color: #666;
    font-size: 14px;
}

.timeline-location {
    color: #666;
    margin-bottom: 10px;
    font-weight: 600;
}

.timeline-description {
    color: #666;
    line-height: 1.5;
}

.info-box {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.info-icon {
    background: var(--tasa-blue);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-box h4 {
    margin-bottom: 10px;
    color: var(--tasa-blue);
}

.provider-info {
    margin: 40px 0;
    text-align: center;
}

.provider-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    max-width: 400px;
    margin: 0 auto;
}

.provider-card h3 {
    margin-bottom: 15px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.provider-card p {
    margin-bottom: 10px;
    color: #666;
}

.footer-simple {
    background: #C4382D;
    color: white;
    padding: 30px 0;
    margin-top: 40px;
}

.footer-simple p {
    margin-bottom: 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-desktop {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero-slider {
        height: 60vh;
        margin-top: 70px;
    }
    
    .hero-content {
        padding: 20px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .industries-grid {
        grid-template-columns: 1fr;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .package-info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .timeline-item {
        padding-left: 40px;
    }
    
    .timeline-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .timeline-date {
        text-align: left;
    }
    
    .tracking-nav {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-content h1 {
        font-size: 1.5rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .card-content {
        padding: 20px;
    }
    
    .tracking-form {
        padding: 20px;
    }
}