:root {
    --accent: #ff3b30; 
    --dark: #0f172a;
    --light: #f8fafc;
    --white: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { 
    font-family: 'Montserrat', sans-serif; 
    background: var(--light); 
    color: var(--dark);
    overflow-x: hidden;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 6%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 10000; /* Por encima de todo */
    transition: all 0.4s ease;
}

.menu-toggle {
    font-size: 2rem;
    cursor: pointer;
    position: relative;
    z-index: 10001; /* Un nivel más arriba que el nav */
    color: var(--dark);
    transition: color 0.3s ease, transform 0.4s ease;
}

.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--accent);
    z-index: 9000; /* Menor que el nav y el botón */
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 10%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

body.menu-open .menu-toggle, 
body.menu-open .logo {
    color: #ffffff !important;
}

body.menu-open {
    overflow: hidden;
}
/* OVERLAY */
.nav-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background: var(--accent);
    display: flex; flex-direction: column; justify-content: center;
    padding-left: 10%; opacity: 0; visibility: hidden;
    transition: all 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 5000;
}

.nav-overlay.active { opacity: 1; visibility: visible; }

.nav-links { list-style: none; }
.nav-links a {
    font-family: 'Playfair Display', serif; font-size: clamp(2.5rem, 8vw, 5rem);
    color: var(--white); text-decoration: none; font-weight: 900;
    display: block; transform: translateY(50px); opacity: 0;
    transition: all 0.5s 0.2s;
}

.nav-overlay.active .nav-links a { transform: translateY(0); opacity: 1; }

body.menu-open .logo, 
body.menu-open .menu-toggle { 
    color: #ffffff !important; 
}
/* HERO PARALLAX */
.hero { position: relative; height: 100vh; display: flex; overflow: hidden; }

.hero-left {
    flex: 1.2; background: var(--white); display: flex; align-items: center;
    padding: 0 10%; position: relative; z-index: 10;
}

.parallax-bg {
    position: absolute; top: -10%; left: -10%; font-family: 'Playfair Display', serif;
    font-size: 60rem; color: rgba(255, 59, 48, 0.04);
    z-index: 1; pointer-events: none; will-change: transform;
}

.hero-content { position: relative; z-index: 20; }
.hero-content span { color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: 4px; }

h1 { font-family: 'Playfair Display', serif; font-size: clamp(3rem, 8vw, 6rem); line-height: 0.9; margin: 20px 0; }
h1 i { font-style: italic; font-weight: 400; }

.btn-hero {
    display: inline-block; padding: 15px 30px; background: var(--accent);
    color: #fff; text-decoration: none; font-weight: 700; margin-top: 20px;
}

.hero-right { flex: 0.8; background: var(--dark); position: relative; overflow: hidden; }

.hero-image {
    position: absolute; top: 0; left: 0; width: 100%; height: 130%;
    background: url('https://images.unsplash.com/photo-1497215728101-856f4ea42174?q=80&w=2070') center/cover;
    will-change: transform;
}
.services-section {
    padding: 120px 10%;
    background: var(--white);
    position: relative;
    z-index: 100; /* Asegura que cubra el parallax del Hero al subir */
}

.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 60px;
}

.service-card {
    border-top: 1px solid #eee;
    padding-top: 30px;
    position: relative;
    transition: transform 0.4s ease, border-color 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    border-top: 1px solid var(--accent);
}

.service-number {
    font-family: 'Playfair Display', serif;
    color: var(--accent);
    font-weight: 900;
    font-size: 1.2rem;
    margin-bottom: 15px;
    display: block;
}

.service-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.service-card h3 i {
    font-weight: 400;
}

.service-card p {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .services-section { padding: 80px 6%; }
    .services-container { gap: 40px; }
    .service-card h3 { font-size: 1.8rem; }
}
/* COOKIE BANNER */
.cookie-banner {
    position: fixed; bottom: -100px; left: 50%; transform: translateX(-50%);
    width: 90%; max-width: 600px; background: var(--dark); color: #fff;
    padding: 20px; border-radius: 8px; z-index: 9999;
    display: flex; align-items: center; justify-content: space-between;
    transition: bottom 0.5s ease;
}

.cookie-banner.show { bottom: 20px; }
.cookie-banner p { font-size: 0.8rem; margin-right: 20px; }
.cookie-banner a { color: var(--accent); text-decoration: underline; }
.cookie-banner button { background: var(--accent); border: none; color: #fff; padding: 10px 20px; cursor: pointer; font-weight: 700; }

/* FOOTER */
.main-footer { padding: 40px 6%; background: #fff; border-top: 1px solid #eee; }
.footer-bottom { display: flex; justify-content: space-between; font-size: 0.8rem; color: #64748b; }
.legal-links a { margin-left: 20px; text-decoration: none; color: inherit; }

@media (max-width: 992px) {
    .hero-right { 
        display: none; 
    }
    
    .hero-left { 
        flex: 1; 
        padding: 0 6%; 
        text-align: center; 
        justify-content: center;
        display: flex;
        flex-direction: column;
    }

    .services-container {
        grid-template-columns: 1fr; /* Las tarjetas se apilan una sobre otra */
        gap: 40px;
    }

    .service-card {
        padding-top: 20px;
    }
}
.contact-section { padding: 100px 10%; background: var(--light); }
.contact-container { max-width: 700px; margin: 0 auto; text-align: center; }
.contact-container h2 { font-family: 'Playfair Display', serif; font-size: 3rem; margin-bottom: 20px; }

.contact-form { display: flex; flex-direction: column; gap: 20px; }
.contact-form input, .contact-form textarea {
    padding: 15px; border: 1px solid #ddd; border-radius: 4px; font-family: 'Montserrat', sans-serif;
}

.privacy-check { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; margin: 10px 0; }

.btn-whatsapp {
    background: #25D366; color: #fff; border: none; padding: 15px;
    font-weight: 700; cursor: pointer; border-radius: 4px; transition: 0.3s;
}
.btn-whatsapp:hover { background: #128C7E; }

/* GRID DE PORTAFOLIO */
.portfolio-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px; padding: 50px 0;
}
.portfolio-item { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 10px 20px rgba(0,0,0,0.05); }
.portfolio-item img { width: 100%; height: 250px; object-fit: cover; }
