/* ==========================================================================
   Casa Viajes - Logo-Matched Design System & Theme Styling
   Brand Colors: 
   - Primary Orange: #FF9202 (Logo Airplane Icon)
   - Brand Charcoal: #141414 (Logo Typography & Structural Elements)
   - Warm Amber Gold: #FFB800 (Accent Highlight)
   ========================================================================== */

:root {
    /* Brand Color Palette derived directly from Logo */
    --brand-orange: #FF9202;
    --brand-orange-hover: #E07D00;
    --brand-orange-glow: rgba(255, 146, 2, 0.35);
    --brand-amber: #FFB800;
    --brand-sunset: #FF6B00;
    --brand-charcoal: #141414;
    
    /* Dark Theme Palette (Default - Deep Onyx & Warm Glow) */
    --bg-main: #0D0F14;
    --bg-card: rgba(20, 23, 30, 0.78);
    --bg-card-border: rgba(255, 146, 2, 0.18);
    --bg-logo-container: #FFFFFF;
    --text-primary: #F8FAFC;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;
    --pill-bg: rgba(255, 146, 2, 0.12);
    --pill-text: #FF9202;
    --pill-border: rgba(255, 146, 2, 0.3);
    --input-bg: rgba(16, 19, 26, 0.7);
    --input-border: rgba(255, 146, 2, 0.2);
    --shadow-card: 0 25px 60px -15px rgba(0, 0, 0, 0.75), 0 0 35px rgba(255, 146, 2, 0.08);
    --header-bg: rgba(13, 15, 20, 0.75);
}

/* Light Theme Palette Overrides */
body.light-theme {
    --bg-main: #F8F9FA;
    --bg-card: rgba(255, 255, 255, 0.90);
    --bg-card-border: rgba(255, 146, 2, 0.22);
    --bg-logo-container: #FFFFFF;
    --text-primary: #141414; /* Matches Logo Text Color */
    --text-secondary: #4B5563;
    --text-muted: #6B7280;
    --pill-bg: rgba(255, 146, 2, 0.10);
    --pill-text: #D97706;
    --pill-border: rgba(255, 146, 2, 0.25);
    --input-bg: #FFFFFF;
    --input-border: #E5E7EB;
    --shadow-card: 0 20px 45px -10px rgba(20, 20, 20, 0.08), 0 0 25px rgba(255, 146, 2, 0.12);
    --header-bg: rgba(248, 249, 250, 0.85);
}

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

html {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    min-height: 100%;
    transition: background-color 0.4s ease, color 0.4s ease;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

/* Ambient Lighting Background Effects */
.bg-gradient-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at 50% 15%, rgba(255, 146, 2, 0.14) 0%, transparent 60%),
                radial-gradient(circle at 85% 85%, rgba(255, 184, 0, 0.09) 0%, transparent 55%),
                radial-gradient(circle at 15% 75%, rgba(255, 107, 0, 0.06) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.45;
    pointer-events: none;
    z-index: 0;
    animation: floatOrb 14s ease-in-out infinite alternate;
}

.orb-1 {
    width: 380px;
    height: 380px;
    background: var(--brand-orange);
    top: -120px;
    left: -100px;
}

.orb-2 {
    width: 420px;
    height: 420px;
    background: var(--brand-amber);
    bottom: -160px;
    right: -120px;
    animation-delay: -7s;
}

@keyframes floatOrb {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(45px, 35px) scale(1.12); }
}

/* Dynamic Particles Canvas */
.bg-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    background: var(--brand-orange);
    border-radius: 50%;
    opacity: 0.25;
    box-shadow: 0 0 8px var(--brand-orange-glow);
    animation: floatUp linear infinite;
}

@keyframes floatUp {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    50% {
        opacity: 0.35;
    }
    100% {
        transform: translateY(-10vh) scale(1);
        opacity: 0;
    }
}

/* Page Outer Layout Wrapper */
.page-wrapper {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
}

/* Site Floating Header */
.site-header {
    width: 100%;
    max-width: 720px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.25rem;
    margin-bottom: 1.5rem;
    background: var(--header-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--bg-card-border);
    border-radius: 50px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background-color: #10B981;
    position: relative;
}

.status-dot.pulsing::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 50%;
    background-color: rgba(16, 185, 129, 0.45);
    animation: pulseRing 1.8s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulseRing {
    0% { transform: scale(0.9); opacity: 0.8; }
    100% { transform: scale(2.2); opacity: 0; }
}

.theme-toggle {
    background: transparent;
    border: 1px solid var(--bg-card-border);
    color: var(--text-primary);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background: var(--pill-bg);
    color: var(--brand-orange);
    border-color: var(--brand-orange);
    transform: rotate(15deg) scale(1.05);
}

/* Maintenance Central Glass Card */
.maintenance-card {
    width: 100%;
    max-width: 720px;
    background: var(--bg-card);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--bg-card-border);
    border-radius: 32px;
    padding: 3.2rem 2.5rem;
    text-align: center;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.4s ease;
    animation: cardAppear 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes cardAppear {
    from {
        opacity: 0;
        transform: translateY(28px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Brand Logo Container */
.logo-container {
    background: var(--bg-logo-container);
    padding: 1.1rem 2.4rem;
    border-radius: 20px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.14), 0 0 0 1px rgba(255, 146, 2, 0.25);
    margin-bottom: 2rem;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo-container:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 16px 40px rgba(255, 146, 2, 0.28), 0 0 0 1px var(--brand-orange);
}

.brand-logo {
    max-width: 290px;
    height: auto;
    display: block;
}

/* Header Badge Tag */
.badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    background: var(--pill-bg);
    color: var(--pill-text);
    border: 1px solid var(--pill-border);
    padding: 0.45rem 1.1rem;
    border-radius: 30px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1.6px;
    margin-bottom: 1.6rem;
    box-shadow: 0 4px 15px rgba(255, 146, 2, 0.1);
}

.badge-tag i {
    font-size: 0.9rem;
    color: var(--brand-orange);
}

/* Typography & Headings */
.main-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2.35rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 1.1rem;
    letter-spacing: -0.5px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--brand-orange) 0%, var(--brand-amber) 50%, var(--brand-sunset) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.68;
    max-width: 580px;
    margin-bottom: 2.2rem;
}

/* System Progress Box */
.progress-box {
    width: 100%;
    max-width: 520px;
    background: rgba(0, 0, 0, 0.16);
    border: 1px solid var(--bg-card-border);
    padding: 1.3rem 1.6rem;
    border-radius: 18px;
    margin-bottom: 2rem;
}

body.light-theme .progress-box {
    background: rgba(0, 0, 0, 0.03);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.65rem;
}

.progress-percentage {
    color: var(--brand-orange);
    font-weight: 700;
}

.progress-bar-bg {
    width: 100%;
    height: 9px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.65rem;
}

body.light-theme .progress-bar-bg {
    background: rgba(0, 0, 0, 0.08);
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--brand-orange) 0%, var(--brand-amber) 100%);
    border-radius: 10px;
    box-shadow: 0 0 12px var(--brand-orange-glow);
    transition: width 1s ease-in-out;
}

.progress-footer {
    display: flex;
    justify-content: flex-end;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.progress-footer i {
    margin-right: 0.3rem;
    color: var(--brand-orange);
}

/* Contact Card Component */
.contact-card {
    width: 100%;
    max-width: 520px;
    background: var(--input-bg);
    border: 1px solid var(--bg-card-border);
    border-radius: 18px;
    padding: 1.1rem 1.35rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.contact-card:hover {
    border-color: var(--brand-orange);
    box-shadow: 0 8px 25px rgba(255, 146, 2, 0.15);
}

.contact-icon-wrapper {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: var(--pill-bg);
    border: 1px solid var(--pill-border);
    color: var(--brand-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contact-details {
    display: flex;
    flex-direction: column;
    text-align: left;
    flex-grow: 1;
    overflow: hidden;
}

.contact-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
}

.contact-email {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s ease;
}

.contact-email:hover {
    color: var(--brand-orange);
}

.copy-btn {
    background: var(--pill-bg);
    border: 1px solid var(--pill-border);
    color: var(--brand-orange);
    padding: 0.55rem 0.95rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    transition: all 0.25 ease;
    flex-shrink: 0;
}

.copy-btn:hover {
    background: var(--brand-orange);
    color: #FFFFFF;
    box-shadow: 0 4px 14px var(--brand-orange-glow);
}

/* Call to Action Buttons */
.action-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: 520px;
}

.btn {
    padding: 0.9rem 1.7rem;
    border-radius: 14px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand-orange) 0%, var(--brand-orange-hover) 100%);
    color: #FFFFFF;
    box-shadow: 0 8px 22px var(--brand-orange-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px var(--brand-orange-glow);
    background: linear-gradient(135deg, #FF9E1A 0%, var(--brand-orange-hover) 100%);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--bg-card-border);
    color: var(--text-primary);
}

body.light-theme .btn-secondary {
    background: rgba(0, 0, 0, 0.03);
}

.btn-secondary:hover {
    background: var(--pill-bg);
    border-color: var(--brand-orange);
    color: var(--brand-orange);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
}

/* Modal Overlay & Card Styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background: var(--bg-main);
    border: 1px solid var(--bg-card-border);
    border-radius: 26px;
    padding: 2.4rem;
    width: 100%;
    max-width: 450px;
    position: relative;
    box-shadow: 0 30px 60px rgba(0,0,0,0.6), 0 0 40px var(--brand-orange-glow);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-card {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1.1rem;
    right: 1.1rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-close:hover {
    color: var(--brand-orange);
    background: var(--pill-bg);
}

.modal-header {
    text-align: center;
    margin-bottom: 1.6rem;
}

.modal-icon {
    font-size: 2.2rem;
    color: var(--brand-orange);
    margin-bottom: 0.9rem;
}

.modal-header h3 {
    font-size: 1.45rem;
    font-weight: 700;
    margin-bottom: 0.45rem;
}

.modal-header p {
    font-size: 0.92rem;
    color: var(--text-secondary);
}

.notify-form {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 1.1rem;
    color: var(--text-muted);
    font-size: 1rem;
}

.input-group input {
    width: 100%;
    padding: 0.9rem 1rem 0.9rem 2.9rem;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 14px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.input-group input:focus {
    border-color: var(--brand-orange);
    box-shadow: 0 0 0 3px var(--brand-orange-glow);
}

/* Toast Message Notification */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #10B981;
    color: #FFFFFF;
    padding: 0.8rem 1.6rem;
    border-radius: 50px;
    font-size: 0.92rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    box-shadow: 0 12px 28px rgba(16, 185, 129, 0.35);
    z-index: 200;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Site Footer */
.site-footer {
    margin-top: 2.2rem;
    text-align: center;
    font-size: 0.86rem;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--brand-orange);
}

/* Responsive Layout Design */
@media (max-width: 640px) {
    .maintenance-card {
        padding: 2.2rem 1.4rem;
        border-radius: 24px;
    }
    
    .brand-logo {
        max-width: 210px;
    }
    
    .main-title {
        font-size: 1.75rem;
    }
    
    .description {
        font-size: 0.95rem;
    }
    
    .contact-card {
        flex-direction: column;
        text-align: center;
        padding: 1.25rem 1rem;
    }

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

    .action-row {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}
