/*
Theme Name: TravelBoost Intelligence Premium
Theme URI: https://travelboost.cl
Author: TravelBoost Team
Description: Tema premium diseñado para TravelBoost Intelligence. Estética Masterpiece con integración nativa.
Version: 1.1.0
Text Domain: travelboost-theme
*/

/* --- Design Tokens --- */
:root {
    --primary: #0066FF;
    --primary-gradient: linear-gradient(135deg, #0066FF 0%, #0047B3 100%);
    --secondary: #0F172A;
    --accent: #F43F5E;
    --background: #FFFFFF;
    --foreground: #0F172A;
    --muted: #F8FAFC;
    --border: rgba(0, 0, 0, 0.08);
    --glass: rgba(255, 255, 255, 0.8);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* --- Base --- */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--foreground);
    line-height: 1.5;
    margin: 0;
    -webkit-font-smoothing: antialiased;
    background-color: var(--background);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- Typography --- */
h1,
h2,
h3,
h4 {
    font-weight: 800;
    line-height: 1.2;
    margin-top: 0;
}

.text-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Header --- */
.site-header {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 72px;
    display: flex;
    align-items: center;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary);
}

.logo-box {
    background: var(--primary-gradient);
    color: white;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 800;
    box-shadow: 0 4px 6px -1px rgba(0, 102, 255, 0.4);
}

/* --- Navigation --- */
.main-nav ul {
    display: flex;
    list-style: none;
    gap: 32px;
    margin: 0;
    padding: 0;
}

.main-nav a {
    text-decoration: none;
    color: #475569;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: color 0.2s;
}

.main-nav a:hover {
    color: var(--primary);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 10px 15px -3px rgba(0, 102, 255, 0.25);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 25px -5px rgba(0, 102, 255, 0.3);
}

.btn-ghost {
    background: transparent;
    color: var(--secondary);
}

.btn-ghost:hover {
    background: var(--muted);
}

/* --- App Integration --- */
.app-container {
    width: 100%;
    height: calc(100vh - 72px);
    overflow: hidden;
    position: relative;
}

.app-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.loading-overlay {
    position: absolute;
    inset: 0;
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: opacity 0.5s ease-out;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--muted);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}