:root {
    /* Colors - Default (Viajes) */
    --primary-color: #0077ff;
    --primary-hover: #0059c4;
    --bg-gradient-start: rgba(0, 48, 107, 0.4);
    --bg-gradient-end: rgba(0, 119, 255, 0.2);
    
    /* Global */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --glass-bg: rgba(20, 20, 25, 0.25);
    --glass-border: rgba(255, 255, 255, 0.15);
    --input-bg: rgba(255, 255, 255, 0.1);
}

/* Theme - Asesoría */
body.theme-asesoria {
    --primary-color: #9d00ff;
    --primary-hover: #7b00cc;
    --bg-gradient-start: rgba(60, 0, 107, 0.4);
    --bg-gradient-end: rgba(157, 0, 255, 0.2);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Outfit', sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #111;
    color: var(--text-primary);
    overflow-x: hidden;
    position: relative;
    transition: background-color 0.5s ease;
}

/* Background Image setup */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url('fondo.jpeg');
    background-size: cover;
    background-position: center;
    z-index: -2;
}

.background-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, var(--bg-gradient-start), var(--bg-gradient-end));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: -1;
    transition: background 0.5s ease;
}

/* App Container */
.app-container {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px 30px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: slideUp 0.6s ease-out forwards;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 30px;
}

.logo-img {
    max-width: 200px;
    height: auto;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 300;
}

/* Toggle Tabs */
.toggle-container {
    display: flex;
    background: var(--input-bg);
    border-radius: 30px;
    padding: 5px;
    width: 100%;
    position: relative;
    margin-bottom: 30px;
    border: 1px solid var(--glass-border);
}

.toggle-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 10px 0;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    z-index: 1;
    transition: color 0.3s ease;
    border-radius: 25px;
}

.toggle-btn.active {
    color: #fff;
    background-color: var(--primary-color);
}

/* Explanatory Text */
.explanatory-text {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* Search Area */
.search-area {
    width: 100%;
    margin-bottom: 25px;
}

.input-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 15px;
    color: var(--text-secondary);
}

.input-wrapper input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border-radius: 30px;
    border: 1px solid var(--glass-border);
    background: var(--input-bg);
    color: white;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.input-wrapper input:focus {
    border-color: var(--primary-color);
    background: rgba(255,255,255,0.15);
    box-shadow: 0 0 0 3px rgba(0, 119, 255, 0.2);
}

.input-wrapper input::placeholder {
    color: var(--text-secondary);
}

body.theme-asesoria .input-wrapper input:focus {
    box-shadow: 0 0 0 3px rgba(157, 0, 255, 0.2);
}

/* Suggestions */
.suggestions-container {
    width: 100%;
    margin-bottom: 40px;
}

.suggestions-title {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
    margin-left: 5px;
}

.chips-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.chip {
    background: var(--input-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.chip:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* CTA */
.cta-container {
    width: 100%;
}

.btn-cotizar {
    width: 100%;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.btn-cotizar:hover {
    background: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.btn-cotizar:active {
    transform: translateY(1px);
}

/* Whatsapp Disclaimer */
.whatsapp-disclaimer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 15px;
    text-align: center;
}

/* Loader */
.loader-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 15, 20, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-overlay.loader-hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
    max-width: 400px;
    padding: 30px;
    animation: fadeIn 0.8s ease-out;
}

.loader-logo {
    max-width: 250px;
    margin-bottom: 25px;
    animation: pulse 2s infinite ease-in-out;
}

.loader-text {
    font-size: 1.1rem;
    color: var(--text-primary);
    line-height: 1.5;
    margin-bottom: 30px;
}

.btn-continuar {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-continuar:hover {
    background: var(--primary-color);
    color: white;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
