@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Nunito:wght@400;700;900&display=swap');

:root {
    /* Color Palette - Boutique Luxury */
    --navy: #0F172A;
    --navy-light: #1E293B;
    --mint: #14B8A6;
    --mint-soft: rgba(20, 184, 166, 0.1);
    --gold: #D4AF37;
    --gold-soft: #F5E6C4;
    --bg: #F8FAFC;
    --white: #FFFFFF;
    --text: #334155;
    --text-muted: #64748B;
    
    /* System Tokens */
    --radius-sm: 12px;
    --radius: 24px;
    --radius-lg: 40px;
    --shadow-sm: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow: 0 20px 50px -12px rgba(15, 23, 42, 0.08);
    --shadow-gold: 0 20px 50px -12px rgba(212, 175, 55, 0.15);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Font stacks */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Nunito', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography Selection */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--navy);
    line-height: 1.1;
    font-weight: 800;
}

h1 { font-size: clamp(2.5rem, 8vw, 4.5rem); letter-spacing: -2px; }
h2 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -1px; margin-bottom: 20px; }
h3 { font-size: 1.75rem; }

.text-gradient {
    background: linear-gradient(135deg, var(--navy), var(--mint));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.highlight-gold { color: var(--gold); }

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: var(--transition);
}

nav.scrolled {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    padding: 15px 5%;
    box-shadow: var(--shadow-sm);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--navy);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo span { color: var(--mint); }

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--navy);
    font-weight: 700;
    font-size: 0.95rem;
    transition: var(--transition);
    opacity: 0.8;
}

.nav-links a:hover, .nav-links a.active {
    opacity: 1;
    color: var(--mint);
}

.nav-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* Base Buttons */
.btn {
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: var(--navy);
    color: var(--white);
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    background: var(--mint);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(20, 184, 166, 0.3);
}

.btn-outline {
    border: 2px solid var(--navy);
    color: var(--navy);
}

.btn-outline:hover {
    background: var(--navy);
    color: var(--white);
}

.btn-admin {
    background: #111827;
    color: #fff;
    padding: 10px 20px;
    font-size: 0.75rem;
}

/* Burger Menu */
.burger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
    padding: 10px;
}

.burger span {
    width: 25px;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition: var(--transition);
}

.burger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Sections */
section {
    padding: 100px 5%;
    position: relative;
}

.section-dark {
    background: var(--navy);
    color: var(--white);
}

.section-dark h2 { color: var(--white); }

/* Layout Grid */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* Bento Cards */
.bento-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(0,0,0,0.03);
}

.bento-card:hover {
    transform: translateY(-10px);
    border-color: var(--mint-soft);
}

.bento-card.dark {
    background: var(--navy-light);
    color: var(--white);
}

/* Floating Elements & Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Comparison Slider (Antes/Después) */
.comparison-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: var(--radius);
    overflow: hidden;
    user-select: none;
}

.comparison-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.img-after {
    clip-path: inset(0 0 0 50%);
}

.slider-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: var(--white);
    transform: translateX(-50%);
    cursor: ew-resize;
    z-index: 10;
}

.slider-handle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    background: var(--mint);
    border: 4px solid var(--white);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: var(--shadow-sm);
}

/* Virtual Tour Simulations */
.tour-hotspot {
    position: absolute;
    width: 24px;
    height: 24px;
    background: var(--mint);
    border: 4px solid rgba(255,255,255,0.5);
    border-radius: 50%;
    cursor: pointer;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(20, 184, 166, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 10px rgba(20, 184, 166, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(20, 184, 166, 0); }
}

/* Responsive */
@media (max-width: 992px) {
    .grid-2, .grid-3 { grid-template-columns: 1fr; gap: 40px; }
    
    .burger { display: flex; }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: white;
        flex-direction: column;
        justify-content: center;
        padding: 40px;
        transition: 0.5s cubic-bezier(0.77, 0.2, 0.05, 1);
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        display: flex;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.5rem;
        width: 100%;
        text-align: center;
    }

    h1 { font-size: 3rem; }
}

@media (max-width: 768px) {
    /* Optimization for Mobile First - Integrated View */
    section { padding: 40px 5%; }
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    p { font-size: 0.95rem; }
    
    .hero-content { text-align: center; }
    .btn { width: 100%; justify-content: center; }
    
    .tour-viewer { height: 350px; margin: 20px auto 40px; }
    
    .bento-card { padding: 25px; }
    
    /* Avoid giant images that overflow the screen */
    .img-premium { height: auto !important; max-height: 300px; object-fit: cover; }
    
    .grid-3, .grid-4 { grid-template-columns: 1fr; gap: 20px; }
    
    /* Make the nav more compact */
    nav { padding: 10px 5%; }
    .logo { font-size: 1.4rem; }
    
    .hide-mobile { display: none; }
    
    .btn-scene { width: auto !important; }
}

@media (max-width: 480px) {
    h1 { font-size: 1.8rem; }
    .tour-viewer { height: 280px; }
}

.img-premium:hover {
    transform: scale(1.02) rotate(1deg);
}

footer {
    background: var(--navy);
    color: var(--white);
    padding: 80px 5% 40px;
    border-top-left-radius: var(--radius-lg);
    border-top-right-radius: var(--radius-lg);
    margin-top: 100px;
}

footer a { color: var(--bg); text-decoration: none; opacity: 0.7; }
footer a:hover { opacity: 1; color: var(--mint); }
