:root {
    --white: #ffffff;
    --black: #000000;
    --text-light: #888888;
    --font-heading: 'Tenor Sans', serif;
    --font-body: 'Inter', sans-serif;
    --font-accent: 'Playfair Display', serif;
    --ease: cubic-bezier(0.23, 1, 0.32, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font-body); background: var(--white); color: #1a1a1a; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--font-heading); text-transform: uppercase; letter-spacing: 0.05em; }
.container { width: 90%; max-width: 1400px; margin: 0 auto; }

/* Loader */
.loader { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: #000; z-index: 1000; display: flex; justify-content: center; align-items: center; transition: opacity 0.8s var(--ease); }
.logo-loader { color: #fff; font-family: var(--font-heading); font-size: 1.5rem; letter-spacing: 0.3em; }
.loader-bar { width: 60px; height: 1px; background: rgba(255,255,255,0.2); margin: 15px auto; position: relative; overflow: hidden; }
.loader-bar::after { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: #fff; animation: load 1.5s infinite; }
@keyframes load { 100% { left: 100%; } }

/* Header */
.main-header { position: fixed; top: 0; width: 100%; padding: 30px 50px; display: flex; justify-content: space-between; align-items: center; z-index: 100; transition: 0.4s; }
.main-header.scrolled { background: rgba(255,255,255,0.95); padding: 15px 50px; border-bottom: 1px solid #eee; }
.logo a { color: #fff; text-decoration: none; font-family: var(--font-heading); font-size: 1.2rem; }
.main-header.scrolled .logo a { color: #000; }
.nav-desktop ul { display: flex; list-style: none; }
.nav-desktop a { color: #fff; text-decoration: none; font-size: 0.7rem; text-transform: uppercase; margin-left: 30px; letter-spacing: 0.1em; }
.main-header.scrolled .nav-desktop a { color: #000; }

/* HERO */
.hero { height: 100vh; position: relative; display: flex; align-items: center; background: #000; overflow: hidden; z-index: 5; }
.hero-bg-container { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.hero-bg-img { width: 100%; height: 120%; object-fit: cover; filter: brightness(0.6); }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to right, rgba(0,0,0,0.5) 0%, transparent 100%); }
.hero-content { position: relative; z-index: 3; color: #fff; width: 100%; }
.hero-title { font-size: clamp(3rem, 8vw, 6rem); line-height: 1; margin-bottom: 20px; }
.outline-text { -webkit-text-stroke: 1px #fff; color: transparent; }
.hero-description { max-width: 500px; font-weight: 300; opacity: 0.8; margin-bottom: 30px; }
.btn-premium { display: inline-block; padding: 15px 35px; border: 1px solid #fff; color: #fff; text-decoration: none; text-transform: uppercase; font-size: 0.7rem; transition: 0.4s; }
.btn-premium:hover { background: #fff; color: #000; }

/* Proyectos */
.projects-section { padding: 120px 0; background: #fff; position: relative; z-index: 10; }
.pre-title { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.3em; color: #888; margin-bottom: 15px; display: block; }
.section-title { font-size: 2.5rem; margin-bottom: 60px; }
.projects-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.project-card { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.project-img-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: 1.5s var(--ease); }
.project-card:hover img { transform: scale(1.05); }
.project-overlay { position: absolute; bottom: 0; left: 0; width: 100%; padding: 40px; background: linear-gradient(transparent, rgba(0,0,0,0.9)); color: #fff; opacity: 0; transition: 0.5s; }
.project-card:hover .project-overlay { opacity: 1; }

/* Servicios */
.services-section { padding: 120px 0; background: #fafafa; position: relative; z-index: 10; }
.service-item { display: flex; padding: 60px 0; border-top: 1px solid #eee; }
.s-num { margin-right: 60px; font-family: var(--font-accent); font-style: italic; font-weight: 700; font-size: 1.5rem; opacity: 0.2; }
.s-content h3 { font-family: var(--font-accent); text-transform: none; font-size: 1.8rem; margin-bottom: 10px; }
.s-content p { max-width: 600px; color: #666; line-height: 1.8; }

/* FOOTER ARQUITECTÓNICO (REDISEÑO) */
.final-footer { 
    height: 90vh; /* Casi toda la pantalla */
    position: relative; 
    background: #000; 
    color: #fff; 
    display: flex; 
    align-items: center; 
    overflow: hidden;
    z-index: 10;
}

.footer-bg { 
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; 
}
.footer-bg img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.4); }
.footer-overlay { position: absolute; top:0; left:0; width:100%; height:100%; background: rgba(0,0,0,0.4); z-index: 2; }

.footer-main-content { position: relative; z-index: 3; text-align: center; width: 100%; }
.footer-headline { font-size: clamp(2.5rem, 6vw, 5rem); text-transform: none; line-height: 1.1; margin-bottom: 40px; }
.footer-headline em { font-family: var(--font-accent); font-style: italic; font-weight: 400; }

.footer-mail { 
    font-family: var(--font-heading); 
    font-size: clamp(1rem, 3vw, 2.5rem); 
    color: #fff; 
    text-decoration: none; 
    border-bottom: 1px solid rgba(255,255,255,0.3); 
    padding-bottom: 10px;
    transition: 0.4s;
}
.footer-mail:hover { border-bottom-color: #fff; }
.footer-sub { margin-top: 30px; font-size: 0.8rem; opacity: 0.6; letter-spacing: 0.1em; }

.footer-bottom-bar { 
    position: absolute; bottom: 40px; left: 5%; width: 90%; 
    display: flex; justify-content: space-between; align-items: center;
    border-top: 1px solid rgba(255,255,255,0.1); padding-top: 30px;
    z-index: 3;
}
.f-logo { font-family: var(--font-heading); font-size: 1rem; letter-spacing: 0.2em; }
.f-social a { color: #fff; text-decoration: none; font-size: 0.7rem; text-transform: uppercase; margin-right: 20px; opacity: 0.6; transition: 0.3s; }
.f-social a:hover { opacity: 1; }
.f-copy { font-size: 0.6rem; opacity: 0.4; letter-spacing: 0.1em; }

/* Reveal Animation */
.reveal { opacity: 0; transform: translateY(40px); transition: 1.2s var(--ease); }
.reveal.active { opacity: 1; transform: translateY(0); }

@media (max-width: 768px) {
    .projects-grid { grid-template-columns: 1fr; }
    .footer-bottom-bar { flex-direction: column; gap: 20px; text-align: center; }
    .f-social a { margin: 0 10px; }
}