*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0056b3 0%, #0077cc 100%);
    min-height: 100%;
    padding-top: 40px;
    transition: background 0.3s ease;
}

.main-container {
    max-width: 500px;
    margin: 0 auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    
    
}

.header {
    background: rgba(255, 255, 255, 0.95);
    padding: 24px;
    text-align: center;
    border-bottom: 1px solid #e1e5e9;
}

.page-title {
    color: #2c3e50;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.page-subtitle {
    color: #6c757d;
    font-size: 16px;
}

.tabs-container {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #e1e5e9;
}

.tab-button {
    flex: 1;
    padding: 16px 12px;
    background: transparent;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #6c757d;
    position: relative;
}

.tab-button.active {
    color: white;
    background: var(--primary-color, #0056b3);
}

.tab-button:hover:not(.active) {
    background: rgba(0, 0, 0, 0.05);
}

.widget-content {
    padding: 32px;
    min-height: 400px;
}

.widget {
    display: none;
}

.widget.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.widget-header {
    text-align: center;
    margin-bottom: 24px;
}

.airline-logo {
    width: 70px;
    height: 70px;
    margin: 0 auto 12px;
}

.company-brand {
    font-size: 18px;
    font-weight: 700;
    color: #0056b3;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.airport-wrapper {
    position: relative;
}

.airport-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    border-radius: 12px;
    margin-top: 5px;
    max-height: 250px;
    overflow-y: auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .15);
    z-index: 999;
    display: none;
}

.airport-item {
    padding: 12px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    transition: .2s;
}

.airport-item:hover {
    background: #f3f4f6;
}

.airport-item strong {
    color: #0056b3;
}

.widget-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--primary-color, #0056b3);
}

.help-text {
    color: #6c757d;
    font-size: 14px;
    line-height: 1.4;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 600;
    font-size: 14px;
}

.input-wrapper {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 16px;
    color: #2c3e50;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
}

.form-input.uppercase {
    text-transform: uppercase;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color, #0056b3);
    background-color: white;
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb, 0, 86, 179), 0.1);
}

.form-input::placeholder {
    text-transform: none;
    color: #adb5bd;
}

.input-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #6c757d;
}

.submit-button {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary-color, #0056b3) 0%, var(--secondary-color, #0077cc) 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 8px;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(var(--primary-rgb, 0, 86, 179), 0.3);
}

.submit-button:active {
    transform: translateY(0);
}

.generated-link {
    margin-top: 20px;
    padding: 16px;
    background-color: rgba(var(--primary-rgb, 0, 86, 179), 0.1);
    border: 2px solid var(--secondary-color, #0077cc);
    border-radius: 10px;
    display: none;
}

.generated-link.show {
    display: block;
    animation: slideIn 0.3s ease;
}

.link-label {
    font-size: 12px;
    color: var(--primary-color, #0056b3);
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.link-url {
    font-size: 14px;
    color: #2c3e50;
    word-break: break-all;
    line-height: 1.4;
    background: white;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #dee2e6;
}


.result-container{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 99999;
    display: none;
    flex-direction: column;
}

.result-header{
    height: 60px;
    background: #0056b3;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.result-header button{
    background: red;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
}

#result-frame{
    width: 100%;
    height: calc(100% - 60px);
    border: none;
}

.copy-button {
    margin-top: 12px;
    padding: 8px 16px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-button:hover {
    background: #218838;
}

.success-message {
    margin-top: 12px;
    padding: 12px;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
    display: none;
}

.success-message.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Colores específicos por aerolínea */
.azul-colors {
    --primary-color: #0056b3;
    --secondary-color: #0077cc;
    --primary-rgb: 0, 86, 179;
}

.gol-colors {
    --primary-color: #ff6600;
    --secondary-color: #ff8533;
    --primary-rgb: 255, 102, 0;
}

.latam-colors {
    --primary-color: #8B1538;
    --secondary-color: #A91B47;
    --primary-rgb: 139, 21, 56;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .main-container {
        margin: 10px;
        border-radius: 4px;
    }

    .widget-content {
        padding: 24px;
    }

    .page-title {
        font-size: 15px;
    }

    .tab-button {
        font-size: 14px;
        padding: 14px 8px;
    }
}