/* 
 * Westybox Tracking Integration - Styles
 * Version: 1.1.0
 * Author: Evolución Digital - Randy González
 */

/* Importar fuente Inter de Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

.westybox-tracking-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 48px 16px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.westybox-header {
    text-align: center;
    margin-bottom: 40px;
}

.westybox-title {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(to right, #009fa8, #db9530, #e09900);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    line-height: 1.2;
}

.westybox-subtitle {
    font-size: 1.25rem;
    color: #1f2937;
    font-weight: 500;
    margin-bottom: 8px;
}

.westybox-header p:last-child {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 8px;
}

.westybox-search-box {
    background: white;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    padding: 32px;
    margin-bottom: 32px;
    border: 1px solid #f3f4f6;
}

.westybox-search-box label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 12px;
}

.westybox-input-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.westybox-input {
    flex: 1;
    min-width: 200px;
    padding: 16px 20px;
    font-size: 1.125rem;
    font-weight: 500;
    color: #1f2937;
    border: 2px solid #d1d5db;
    border-radius: 12px;
    transition: all 0.2s;
}

.westybox-input:focus {
    outline: none;
    border-color: #db9530;
    box-shadow: 0 0 0 3px rgba(219, 149, 48, 0.1);
}

.westybox-input::placeholder {
    color: #9ca3af;
}

.westybox-btn {
    padding: 16px 32px;
    background: linear-gradient(to right, #db9530, #e09900);
    color: white;
    font-weight: 700;
    font-size: 1.125rem;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 10px 15px -3px rgba(219, 149, 48, 0.3);
}

.westybox-btn:hover {
    background: linear-gradient(to right, #e09900, #db9530);
    box-shadow: 0 20px 25px -5px rgba(219, 149, 48, 0.3);
    transform: translateY(-2px);
}

.westybox-btn:active {
    transform: translateY(0);
}

.westybox-icon {
    width: 24px;
    height: 24px;
}

.westybox-loading {
    text-align: center;
    padding: 64px 40px;
}

.westybox-loading p {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin-top: 16px;
}

.westybox-spinner {
    width: 64px;
    height: 64px;
    border: 4px solid #e5e7eb;
    border-top-color: #db9530;
    border-radius: 50%;
    animation: westybox-spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes westybox-spin {
    to {
        transform: rotate(360deg);
    }
}

.westybox-alert {
    background: #fef2f2;
    border: 2px solid #fecaca;
    border-left-width: 4px;
    border-left-color: #ef4444;
    padding: 24px;
    border-radius: 16px;
    margin-bottom: 32px;
    display: flex;
    gap: 16px;
    box-shadow: 0 10px 15px -3px rgba(239, 68, 68, 0.1);
}

.westybox-alert-icon {
    width: 28px;
    height: 28px;
    color: #dc2626;
    flex-shrink: 0;
}

.westybox-alert h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #991b1b;
    margin: 0 0 8px 0;
}

.westybox-alert p {
    color: #b91c1c;
    font-weight: 500;
    margin: 0;
}

.westybox-results {
    background: white;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    margin-bottom: 32px;
    border: 1px solid #f3f4f6;
}

.westybox-results-header {
    background: linear-gradient(to right, #009fa8, #00b8c4);
    padding: 20px 32px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
}

.westybox-results-icon {
    width: 28px;
    height: 28px;
}

.westybox-results-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.westybox-packages-list {
    padding: 32px;
}

.westybox-package-card {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    transition: all 0.2s;
    background: linear-gradient(to bottom right, #ffffff, #f9fafb);
}

.westybox-package-card:hover {
    border-color: #db9530;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.westybox-package-card:last-child {
    margin-bottom: 0;
}

.westybox-package-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.westybox-package-icon-wrapper {
    padding: 8px;
    background: rgba(0, 159, 168, 0.1);
    border-radius: 8px;
    flex-shrink: 0;
}

.westybox-package-icon {
    width: 24px;
    height: 24px;
    color: #009fa8;
}

.westybox-package-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
    display: block;
    margin-bottom: 4px;
}

.westybox-package-tracking {
    font-size: 1.5rem;
    font-weight: 900;
    color: #111827;
}

.westybox-package-date {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 16px;
}

.westybox-package-date svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.westybox-package-date span:first-of-type {
    font-weight: 600;
}

.westybox-package-date span:last-of-type {
    font-weight: 500;
    color: #1f2937;
}

.westybox-package-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    background: linear-gradient(to right, #009fa8, #06b6d4);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 159, 168, 0.3);
}

.westybox-package-status svg {
    width: 20px;
    height: 20px;
}

.westybox-package-status.status-secondary {
    background: linear-gradient(to right, #e09900, #db9530);
    box-shadow: 0 4px 6px -1px rgba(224, 153, 0, 0.3);
}

.westybox-info {
    text-align: center;
    background: white;
    padding: 16px 24px;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #f3f4f6;
    max-width: 500px;
    margin: 40px auto 0;
}

.westybox-info p {
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 4px 0;
    font-size: 1rem;
}

.westybox-info-small {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 400;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 640px) {
    .westybox-tracking-container {
        padding: 32px 12px;
    }

    .westybox-title {
        font-size: 2rem;
    }

    .westybox-subtitle {
        font-size: 1.125rem;
    }

    .westybox-input-group {
        flex-direction: column;
    }

    .westybox-input,
    .westybox-btn {
        width: 100%;
    }

    .westybox-package-tracking {
        font-size: 1.25rem;
    }

    .westybox-search-box {
        padding: 24px;
    }

    .westybox-packages-list {
        padding: 20px;
    }

    .westybox-results-header {
        padding: 16px 20px;
    }
}

@media (max-width: 480px) {
    .westybox-tracking-container {
        padding: 24px 8px;
    }

    .westybox-title {
        font-size: 1.75rem;
    }

    .westybox-package-card {
        padding: 16px;
    }

    .westybox-search-box {
        padding: 20px;
    }
}