/* ========================================
   SPLASH PAGE — Mirador de Callao Gateway
   ======================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
    --splash-transition: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    --color-carwash-bg: #0a0a0a;
    --color-carwash-accent: #D32F2F;
    --color-restaurant-bg: #0C2340;
    --color-restaurant-accent: #D4AF37;
}

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

body.splash-body {
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    font-family: 'Inter', sans-serif;
    background: #000;
}

/* Language Switcher */
.splash-lang-switcher {
    position: fixed; top: 1.5rem; right: 1.5rem; z-index: 1000;
    display: flex; gap: 0.5rem;
    background: rgba(0,0,0,0.6); backdrop-filter: blur(12px);
    padding: 0.5rem 0.75rem; border-radius: 30px;
    border: 1px solid rgba(255,255,255,0.1);
}
.splash-lang-switcher a {
    font-size: 1.3rem; text-decoration: none; opacity: 0.5;
    transition: all 0.3s ease; filter: grayscale(50%);
}
.splash-lang-switcher a.active { opacity: 1; filter: grayscale(0%); transform: scale(1.15); }
.splash-lang-switcher a:hover { opacity: 1; filter: grayscale(0%); transform: scale(1.2); }

/* Main Container */
.splash-container { display: flex; width: 100vw; height: 100vh; }

/* Each Half */
.splash-half {
    position: relative; flex: 1; display: flex;
    align-items: center; justify-content: center;
    cursor: pointer; overflow: hidden;
    transition: flex var(--splash-transition);
}

/* Background Images */
.splash-half .splash-bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    transition: transform 1.2s ease, filter 0.6s ease;
    z-index: 1;
}
.splash-half:hover .splash-bg { transform: scale(1.08); filter: brightness(0.5); }
.splash-half .splash-bg::after { content: ''; position: absolute; inset: 0; z-index: 2; }

.splash-carwash .splash-bg { background-image: url('../images/carwash/hero.png'); }
.splash-carwash .splash-bg::after {
    background: linear-gradient(135deg, rgba(10,10,10,0.75) 0%, rgba(211,47,47,0.2) 100%);
}
.splash-restaurant .splash-bg { background-image: url('../images/hero.jpg'); }
.splash-restaurant .splash-bg::after {
    background: linear-gradient(135deg, rgba(12,35,64,0.75) 0%, rgba(212,175,55,0.15) 100%);
}

/* Center Divider */
.splash-divider {
    position: fixed; top: 50%; left: 50%;
    transform: translate(-50%, -50%); z-index: 100;
    display: flex; flex-direction: column; align-items: center;
    pointer-events: none;
}
.splash-divider-logo {
    width: 80px; height: 80px; border-radius: 50%;
    object-fit: cover; border: 2px solid rgba(212,175,55,0.6);
    box-shadow: 0 0 30px rgba(0,0,0,0.8), 0 0 60px rgba(212,175,55,0.15);
    background: #111; padding: 6px;
}
.splash-divider-line {
    width: 1px; height: 80px;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.3), transparent);
}

/* Content Overlay */
.splash-content {
    position: relative; z-index: 10; text-align: center;
    padding: 2rem; max-width: 500px;
}
.splash-icon {
    font-size: 3rem; margin-bottom: 1.5rem;
    opacity: 0; transform: translateY(20px);
    animation: splashFadeUp 0.8s ease 0.3s forwards;
}
.splash-carwash .splash-icon { color: var(--color-carwash-accent); }
.splash-restaurant .splash-icon { color: var(--color-restaurant-accent); }

.splash-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem; font-weight: 700; color: #fff;
    margin-bottom: 0.5rem; line-height: 1.2;
    opacity: 0; transform: translateY(20px);
    animation: splashFadeUp 0.8s ease 0.4s forwards;
}
.splash-content .splash-subtitle {
    font-size: 1rem; color: rgba(255,255,255,0.7);
    letter-spacing: 0.15em; text-transform: uppercase;
    margin-bottom: 2rem;
    opacity: 0; transform: translateY(20px);
    animation: splashFadeUp 0.8s ease 0.5s forwards;
}

/* CTA Button */
.splash-cta {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 1rem 2.5rem; border: 1px solid rgba(255,255,255,0.3);
    color: #fff; font-family: 'Inter', sans-serif;
    font-size: 0.85rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.15em;
    text-decoration: none; transition: all 0.4s ease;
    opacity: 0; transform: translateY(20px);
    animation: splashFadeUp 0.8s ease 0.6s forwards;
    position: relative; overflow: hidden;
}
.splash-cta::before {
    content: ''; position: absolute; inset: 0;
    transform: scaleX(0); transform-origin: left;
    transition: transform 0.4s ease; z-index: -1;
}
.splash-carwash .splash-cta::before { background: var(--color-carwash-accent); }
.splash-restaurant .splash-cta::before { background: var(--color-restaurant-accent); }
.splash-cta:hover {
    border-color: transparent;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}
.splash-cta:hover::before { transform: scaleX(1); }
.splash-restaurant .splash-cta:hover { color: #0C2340; }
.splash-cta i { transition: transform 0.3s ease; }
.splash-cta:hover i { transform: translateX(4px); }

/* Hover Expand Effect */
.splash-container:hover .splash-half { flex: 0.85; }
.splash-container .splash-half:hover { flex: 1.15; }

/* Accent lines */
.splash-carwash::after {
    content: ''; position: absolute; bottom: 0; left: 0;
    width: 100%; height: 4px; z-index: 20;
    background: linear-gradient(90deg, var(--color-carwash-accent), transparent);
}
.splash-restaurant::after {
    content: ''; position: absolute; bottom: 0; right: 0;
    width: 100%; height: 4px; z-index: 20;
    background: linear-gradient(90deg, transparent, var(--color-restaurant-accent));
}

@keyframes splashFadeUp {
    to { opacity: 1; transform: translateY(0); }
}

/* MOBILE */
@media (max-width: 768px) {
    .splash-container { flex-direction: column; }
    .splash-half { flex: 1; min-height: 50vh; }
    .splash-container:hover .splash-half, .splash-container .splash-half:hover { flex: 1; }
    .splash-content h2 { font-size: 1.6rem; }
    .splash-content .splash-subtitle { font-size: 0.8rem; margin-bottom: 1.2rem; }
    .splash-cta { padding: 0.8rem 1.8rem; font-size: 0.75rem; }
    .splash-icon { font-size: 2.2rem; margin-bottom: 1rem; }
    .splash-divider { flex-direction: row; }
    .splash-divider-line {
        width: 60px; height: 1px;
        background: linear-gradient(to right, transparent, rgba(255,255,255,0.3), transparent);
    }
    .splash-divider-logo { width: 60px; height: 60px; }
    .splash-lang-switcher { top: 1rem; right: 1rem; }
}
