/* ==========================================================================
   Karen Torres Eventos - Variables & Theme Setup
   ========================================================================== */
:root {
    --font-primary: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    
    /* Light Theme Palette - Elegant Rose Gold & Warm Tones */
    --bg-primary: #faf8f5;
    --bg-secondary: #ffffff;
    --text-primary: #1f1917;
    --text-secondary: #574e4a;
    --text-muted: #9e938f;
    
    --accent-primary: #d4a373;
    --accent-secondary: #e07a5f;
    --accent-gold: #c59b27;
    --accent-gradient: linear-gradient(135deg, #d4a373 0%, #e07a5f 50%, #b5838d 100%);
    
    --card-bg: rgba(255, 255, 255, 0.85);
    --card-border: rgba(212, 163, 115, 0.25);
    --card-shadow: 0 20px 40px -15px rgba(212, 163, 115, 0.12);
    
    --input-bg: rgba(247, 243, 238, 0.9);
    --input-border: #e6dad1;
    --input-focus: #d4a373;
    
    --orb-opacity: 0.22;
    --grid-opacity: 0.04;
    
    --badge-bg: rgba(212, 163, 115, 0.12);
    --badge-border: rgba(212, 163, 115, 0.3);
    --badge-text: #a67c52;
    
    --progress-track: #efe8e1;
}

[data-theme="dark"] {
    /* Dark Theme Palette - Luxury Night Gold & Rose */
    --bg-primary: #141110;
    --bg-secondary: #1c1816;
    --text-primary: #f7f3ee;
    --text-secondary: #bdae9e;
    --text-muted: #7d7065;
    
    --accent-primary: #e6b89c;
    --accent-secondary: #f4acb7;
    --accent-gold: #ead2ac;
    --accent-gradient: linear-gradient(135deg, #e6b89c 0%, #f4acb7 50%, #d8e2dc 100%);
    
    --card-bg: rgba(28, 24, 22, 0.75);
    --card-border: rgba(230, 184, 156, 0.18);
    --card-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
    
    --input-bg: rgba(42, 36, 33, 0.7);
    --input-border: rgba(230, 184, 156, 0.2);
    --input-focus: #e6b89c;
    
    --orb-opacity: 0.3;
    --grid-opacity: 0.04;
    
    --badge-bg: rgba(230, 184, 156, 0.12);
    --badge-border: rgba(230, 184, 156, 0.3);
    --badge-text: #f0cbb5;
    
    --progress-track: rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   Global Reset & Base Layout
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    font-family: var(--font-primary);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: background-color 0.4s ease, color 0.4s ease;
    overflow-x: hidden;
}

/* ==========================================================================
   Background Decor & Animations
   ========================================================================== */
.background-decor {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(110px);
    opacity: var(--orb-opacity);
    animation: floatOrb 20s ease-in-out infinite alternate;
}

.orb-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, #e07a5f, #d4a373);
}

.orb-2 {
    bottom: -15%;
    right: -10%;
    width: 55vw;
    height: 55vw;
    background: radial-gradient(circle, #b5838d, #e6b89c);
    animation-delay: -7s;
}

.orb-3 {
    top: 40%;
    left: 30%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, #f4acb7, #d4a373);
    animation-delay: -14s;
}

.bg-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(var(--text-primary) 1px, transparent 1px);
    background-size: 36px 36px;
    opacity: var(--grid-opacity);
}

@keyframes floatOrb {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(60px, 40px) scale(1.1); }
    100% { transform: translate(-40px, 80px) scale(0.95); }
}

/* ==========================================================================
   Page Wrapper
   ========================================================================== */
.page-wrapper {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    max-width: 1050px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
}

/* ==========================================================================
   Header & Theme Switcher
   ========================================================================== */
.header {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 0 0.5rem;
    margin-bottom: -2.5rem;
}

.brand {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

.brand-logo-img {
    height: 350px;
    width: auto;
    max-width: 1000px;
    object-fit: contain;
    filter: drop-shadow(0 8px 24px rgba(212, 163, 115, 0.28));
    transition: transform 0.3s ease;
    margin-top: -2.5rem;
    margin-bottom: -3.5rem;
}

.brand-logo-img:hover {
    transform: scale(1.02);
}

.theme-toggle {
    position: absolute;
    right: 0;
    top: 0.5rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--card-shadow);
    z-index: 10;
}

.theme-toggle:hover {
    transform: scale(1.08);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.icon-sun { display: none; }
.icon-moon { display: block; }

[data-theme="light"] .icon-sun { display: block; }
[data-theme="light"] .icon-moon { display: none; }

/* ==========================================================================
   Main Content Layout
   ========================================================================== */
.main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 0 2.5rem;
    gap: 1.6rem;
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 1.25rem;
    border-radius: 50px;
    background-color: var(--badge-bg);
    border: 1px solid var(--badge-border);
    color: var(--badge-text);
    font-size: 0.85rem;
    font-weight: 600;
    backdrop-filter: blur(8px);
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--accent-primary);
    box-shadow: 0 0 10px var(--accent-primary);
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.8); }
}

/* Hero Typography */
.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.3rem, 5vw, 3.8rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.01em;
    max-width: 850px;
}

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-style: italic;
}

.hero-subtitle {
    font-size: clamp(0.95rem, 1.8vw, 1.15rem);
    color: var(--text-secondary);
    max-width: 640px;
    line-height: 1.55;
    font-weight: 400;
}

/* Quick Contact Pills */
.contact-pills {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.contact-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.6rem 1.2rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 50px;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--card-shadow);
}

.contact-pill i {
    color: var(--accent-primary);
    font-size: 1.05rem;
}

.contact-pill:hover {
    transform: translateY(-2px);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    box-shadow: 0 10px 20px -5px rgba(212, 163, 115, 0.3);
}

/* ==========================================================================
   Countdown Section
   ========================================================================== */
.countdown-section {
    width: 100%;
    max-width: 680px;
}

.countdown-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.countdown-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 20px;
    padding: 1.25rem 1rem;
    min-width: 100px;
    flex: 1;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.countdown-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-primary);
}

.number-wrapper {
    font-family: var(--font-primary);
    font-size: clamp(1.8rem, 4vw, 2.75rem);
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 0.35rem;
    font-variant-numeric: tabular-nums;
}

.label {
    font-size: 0.725rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    font-weight: 600;
}

.countdown-separator {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-primary);
    opacity: 0.7;
    margin-bottom: 1.25rem;
}

/* ==========================================================================
   Progress Box
   ========================================================================== */
.progress-box {
    width: 100%;
    max-width: 680px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 20px;
    padding: 1.4rem 1.6rem;
    box-shadow: var(--card-shadow);
    text-align: left;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.progress-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.progress-title i {
    color: var(--accent-primary);
}

.progress-percent {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--accent-primary);
}

.progress-bar-track {
    height: 9px;
    background-color: var(--progress-track);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-bar-fill {
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 10px;
    width: 85%;
    animation: fillProgress 1.4s cubic-bezier(0.1, 0.8, 0.2, 1) forwards;
    box-shadow: 0 0 12px rgba(212, 163, 115, 0.4);
}

@keyframes fillProgress {
    from { width: 0%; }
    to { width: 85%; }
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    flex-wrap: wrap;
}

.step {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.step.completed {
    color: #10b981;
    font-weight: 600;
}

.step.active {
    color: var(--accent-primary);
    font-weight: 700;
}

/* ==========================================================================
   Subscribe Card & Form
   ========================================================================== */
.subscribe-card {
    width: 100%;
    max-width: 680px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 24px;
    padding: 1.75rem;
    box-shadow: var(--card-shadow);
}

.subscribe-content h3 {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.subscribe-content h3 i {
    color: var(--accent-primary);
}

.subscribe-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.35rem;
}

.subscribe-form {
    display: flex;
    gap: 0.75rem;
    max-width: 520px;
    margin: 0 auto;
}

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

.input-icon {
    position: absolute;
    left: 1.1rem;
    color: var(--text-muted);
    font-size: 1.1rem;
    pointer-events: none;
    transition: color 0.3s ease;
}

.input-wrapper input {
    width: 100%;
    padding: 0.85rem 1rem 0.85rem 2.8rem;
    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: all 0.3s ease;
}

.input-wrapper input:focus {
    border-color: var(--input-focus);
    box-shadow: 0 0 0 3px rgba(212, 163, 115, 0.2);
}

.input-wrapper input:focus + .input-icon {
    color: var(--accent-primary);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1.5rem;
    background: var(--accent-gradient);
    color: #ffffff;
    border: none;
    border-radius: 14px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 25px -5px rgba(212, 163, 115, 0.4);
    white-space: nowrap;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(212, 163, 115, 0.6);
}

.form-message {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    min-height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: opacity 0.3s ease;
}

.form-message.success { color: #10b981; }
.form-message.error { color: #ef4444; }

/* ==========================================================================
   Features Grid Section
   ========================================================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    width: 100%;
    max-width: 920px;
    margin-top: 0.5rem;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 1.5rem;
    text-align: left;
    transition: all 0.3s ease;
    box-shadow: var(--card-shadow);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
}

.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: var(--badge-bg);
    border: 1px solid var(--badge-border);
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 0.85rem;
}

.feature-card h4 {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    color: var(--text-primary);
}

.feature-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ==========================================================================
   Footer & Social Links
   ========================================================================== */
.footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 0 1rem;
    border-top: 1px solid var(--card-border);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--accent-primary);
    border-color: var(--accent-primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 16px -4px rgba(212, 163, 115, 0.35);
}

.copyright {
    font-size: 0.825rem;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 640px) {
    .header {
        margin-bottom: 0;
    }
    
    .brand-logo-img {
        height: 140px;
        max-width: 90vw;
        margin-top: 0;
        margin-bottom: 0;
    }

    .subscribe-form {
        flex-direction: column;
    }

    .btn-primary {
        justify-content: center;
    }

    .countdown-grid {
        gap: 0.4rem;
    }

    .countdown-card {
        padding: 0.85rem 0.4rem;
        min-width: 65px;
    }

    .countdown-separator {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }

    .contact-pills {
        flex-direction: column;
        width: 100%;
    }

    .contact-pill {
        width: 100%;
        justify-content: center;
    }
}
