 :root {
            --bg: #e9d1d1;
            --text: #3c334c;
            --accent: #b07a7a;
            --light: #f5e8e8;
            --muted: rgba(60, 51, 76, 0.45);
            --border: rgba(60, 51, 76, 0.15);
        }

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

        html { scroll-behavior: smooth; }

        body {
            background: var(--bg);
            color: var(--text);
            font-family: 'Jost', sans-serif;
            font-weight: 300;
            overflow-x: hidden;
        }

        /* ── SCROLLBAR ── */
        ::-webkit-scrollbar { width: 4px; }
        ::-webkit-scrollbar-track { background: var(--bg); }
        ::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 2px; }

        /* ── NAV ── */
        nav {
            position: fixed;
            top: 0; left: 0; right: 0;
            z-index: 100;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1.8rem 4rem;
            mix-blend-mode: multiply;
        }

        .nav-logo {
            font-family: 'Playfair Display', serif;
            font-size: 1rem;
            font-weight: 700;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            color: var(--text);
            text-decoration: none;
        }

        .nav-links {
            display: flex;
            gap: 2.5rem;
            list-style: none;
        }

        .nav-links a {
            font-family: 'Jost', sans-serif;
            font-size: 0.72rem;
            font-weight: 300;
            letter-spacing: 0.2em;
            text-transform: uppercase;
            color: var(--text);
            text-decoration: none;
            opacity: 0.7;
            transition: opacity 0.3s;
        }

        .nav-links a:hover { opacity: 1; }

        /* hamburger */
        .hamburger {
            display: none;
            flex-direction: column;
            gap: 5px;
            cursor: pointer;
            background: none;
            border: none;
            padding: 4px;
        }
        .hamburger span {
            display: block;
            width: 24px;
            height: 1px;
            background: var(--text);
            transition: all 0.3s;
        }

        /* mobile menu */
        .mobile-menu {
            display: none;
            position: fixed;
            inset: 0;
            background: var(--bg);
            z-index: 99;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            gap: 2.5rem;
        }
        .mobile-menu.open { display: flex; }
        .mobile-menu a {
            font-family: 'Cormorant Garamond', serif;
            font-size: 2.5rem;
            font-style: italic;
            color: var(--text);
            text-decoration: none;
            opacity: 0;
            transform: translateY(20px);
            animation: fadeUp 0.5s forwards;
        }
        .mobile-menu a:nth-child(1) { animation-delay: 0.1s; }
        .mobile-menu a:nth-child(2) { animation-delay: 0.2s; }
        .mobile-menu a:nth-child(3) { animation-delay: 0.3s; }
        .mobile-menu a:nth-child(4) { animation-delay: 0.4s; }

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

        /* ── HERO ── */
        #inicio {
            min-height: 100vh;
            display: grid;
            grid-template-columns: 1fr 1fr;
            position: relative;
            overflow: hidden;
        }

        .hero-image-side {
            position: relative;
            overflow: hidden;
        }

        .hero-img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center top;
            transition: transform 8s ease;
        }

        .hero-img:hover { transform: scale(1.03); }

        .hero-image-overlay {
            position: absolute;
            inset: 0;
            background: linear-gradient(to right, transparent 70%, var(--bg) 100%);
        }

        .hero-content {
            display: flex;
            flex-direction: column;
            justify-content: center;
            padding: 8rem 5rem 4rem 4rem;
            position: relative;
        }

        /* Cabecera como bloque tipográfico */
        .hero-heading {
            margin-bottom: 2rem;
            opacity: 0;
            animation: fadeUp 0.8s 0.4s forwards;
        }

        .hero-heading .script {
            font-family: 'Great Vibes', cursive;
            font-size: clamp(2.5rem, 4vw, 4rem);
            color: var(--text);
            display: block;
            line-height: 1;
            margin-bottom: 0.1em;
            margin-left: 2rem;
        }

        /* A inicial decorativa igual que en la cabecera */
        .hero-heading .script .letra-a {
            font-family: 'Alex Brush', cursive;
            font-size: 1.6em;
            line-height: 0.5;
            display: inline-block;
            vertical-align: middle;
            margin-right: -0.05em;
        }

        .hero-heading .serif {
            font-family: 'Playfair Display', serif;
            font-size: clamp(3rem, 5.5vw, 5.5rem);
            font-weight: 900;
            color: var(--text);
            display: block;
            line-height: 0.9;
            letter-spacing: -0.01em;
            text-transform: uppercase;
        }

        .hero-desc {
            font-size: 0.95rem;
            line-height: 1.8;
            color: var(--muted);
            max-width: 340px;
            margin-bottom: 3rem;
            opacity: 0;
            animation: fadeUp 0.8s 0.7s forwards;
        }

        .hero-cta {
            display: inline-flex;
            align-items: center;
            gap: 0.8rem;
            font-size: 0.72rem;
            letter-spacing: 0.2em;
            text-transform: uppercase;
            color: var(--text);
            text-decoration: none;
            border-bottom: 1px solid var(--accent);
            padding-bottom: 0.3rem;
            width: fit-content;
            opacity: 0;
            animation: fadeUp 0.8s 0.9s forwards;
            transition: gap 0.3s;
        }
        .hero-cta:hover { gap: 1.4rem; }
        .hero-cta::after { content: '→'; font-size: 1rem; }

        .hero-social {
            position: absolute;
            bottom: 3rem;
            right: 4rem;
            display: flex;
            flex-direction: column;
            gap: 1rem;
            align-items: center;
        }

        .hero-social::before {
            content: '';
            width: 1px;
            height: 60px;
            background: var(--border);
        }

        .hero-social a {
            font-size: 0.6rem;
            letter-spacing: 0.15em;
            text-transform: uppercase;
            color: var(--muted);
            text-decoration: none;
            writing-mode: vertical-rl;
            transition: color 0.3s;
        }
        .hero-social a:hover { color: var(--text); }

        /* ── SECTION BASE ── */
        section { padding: 7rem 0; }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 4rem;
        }
        .section-tag {
            font-size: 0.65rem;
            letter-spacing: 0.3em;
            text-transform: uppercase;
            color: var(--accent);
            margin-bottom: 1rem;
            display: block;
        }

        .section-title {
            font-family: 'Playfair Display', serif;
            font-size: clamp(2.5rem, 4vw, 4rem);
            font-weight: 700;
            line-height: 1.1;
            margin-bottom: 1.5rem;
        }

        .section-title em {
            font-style: italic;
            font-family: 'Great Vibes', cursive;
            font-size: 1.3em;
            font-weight: 400;
            display: block;
            line-height: 1;
        }

        .divider {
            width: 40px;
            height: 1px;
            background: var(--accent);
            margin-bottom: 2.5rem;
        }

        /* ── SOBRE MÍ ── */
        #sobre-mi { background: var(--light); }

        .about-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 6rem;
            align-items: center;
        }

        .about-text p {
            font-size: 1rem;
            line-height: 1.9;
            color: var(--muted);
            margin-bottom: 1.5rem;
        }

        .about-text p strong {
            color: var(--text);
            font-weight: 400;
        }

        .about-stats {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 2rem;
            margin-top: 3rem;
        }

        .stat {
            border-top: 1px solid var(--border);
            padding-top: 1rem;
        }

        .stat-number {
            font-family: 'Cormorant Garamond', serif;
            font-size: 2.8rem;
            font-weight: 300;
            color: var(--text);
            line-height: 1;
        }

        .stat-label {
            font-size: 0.7rem;
            letter-spacing: 0.15em;
            text-transform: uppercase;
            color: var(--muted);
            margin-top: 0.3rem;
        }

        .about-image-wrap {
            position: relative;
        }

        .about-image-wrap::before {
            content: '';
            position: absolute;
            top: -20px;
            left: -20px;
            right: 20px;
            bottom: 20px;
            border: 1px solid var(--border);
            z-index: 0;
        }

        .about-img {
            width: 100%;
            aspect-ratio: 3/4;
            object-fit: cover;
            filter: saturate(110%);
            position: relative;
            z-index: 1;
            display: block;
            background: var(--border);
        }

        /* placeholder cuando no hay imagen */
        .about-img-placeholder {
            width: 100%;
            aspect-ratio: 3/4;
            background: linear-gradient(135deg, var(--bg) 0%, var(--accent) 50%, var(--bg) 100%);
            opacity: 0.4;
            position: relative;
            z-index: 1;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .about-img-placeholder span {
            font-family: 'Cormorant Garamond', serif;
            font-size: 1.2rem;
            font-style: italic;
            color: var(--text);
            opacity: 0.6;
        }

        /* ── PROYECTOS ── */
        #proyectos { background: var(--bg); }

        .projects-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-end;
            margin-bottom: 4rem;
        }

        .projects-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 1.5rem;
        }

        .project-card {
            cursor: pointer;
            overflow: hidden;
            position: relative;
            group: true;
        }

        .project-img-wrap {
            overflow: hidden;
            aspect-ratio: 4/5;
            background: var(--border);
            position: relative;
        }

        .project-img {
            width: 100%;
            height: 100%;
            object-fit: contain; /* ← muestra completa sin recortar */
            filter: sepia(10%) saturate(85%);
            transition: transform 0.6s ease, filter 0.6s ease;
            display: block;      
            background: var(--light);   /* fondo para los huecos laterales */
        }

        .project-card:hover .project-img {
            transform: scale(1.05);
            filter: sepia(0%) saturate(100%);
        }

        /* placeholder proyecto */
        .project-placeholder {
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-family: 'Cormorant Garamond', serif;
            font-size: 1rem;
            font-style: italic;
            color: var(--muted);
        }

        .project-overlay {
            position: absolute;
            inset: 0;
            background: linear-gradient(to top, rgba(60,51,76,0.7) 0%, transparent 50%);
            opacity: 0;
            transition: opacity 0.4s;
            display: flex;
            align-items: flex-end;
            padding: 1.5rem;
        }

        .project-card:hover .project-overlay { opacity: 1; }

        .project-overlay-text {
            font-size: 0.65rem;
            letter-spacing: 0.2em;
            text-transform: uppercase;
            color: var(--bg);
        }

        .project-info {
            padding: 1.2rem 0 0;
        }

        .project-title {
            font-family: 'Cormorant Garamond', serif;
            font-size: 1.3rem;
            font-weight: 400;
            margin-bottom: 0.3rem;
        }

        .project-tag {
            font-size: 0.65rem;
            letter-spacing: 0.15em;
            text-transform: uppercase;
            color: var(--muted);
        }

        /* ── CONTACTO ── */
        #contacto {
            background: var(--text);
            color: var(--bg);
        }

        #contacto .section-tag { color: var(--accent); }
        #contacto .section-title { color: var(--bg); }
        #contacto .divider { background: var(--accent); }

        .contact-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 6rem;
            align-items: start;
        }

        .contact-desc {
            font-size: 1rem;
            line-height: 1.9;
            color: rgba(233, 209, 209, 0.6);
            margin-bottom: 2.5rem;
        }

        .contact-links {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

        .contact-link {
            display: flex;
            align-items: center;
            gap: 1rem;
            color: var(--bg);
            text-decoration: none;
            font-size: 0.85rem;
            opacity: 0.7;
            transition: opacity 0.3s, gap 0.3s;
        }

        .contact-link:hover { opacity: 1; gap: 1.5rem; }

        .contact-link-icon {
            width: 30px;
            height: 1px;
            background: var(--accent);
            flex-shrink: 0;
        }

        .contact-form {
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
        }

        .form-group {
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
        }

        .form-group label {
            font-size: 0.65rem;
            letter-spacing: 0.2em;
            text-transform: uppercase;
            color: rgba(233, 209, 209, 0.5);
        }

        .form-group input,
        .form-group textarea {
            background: transparent;
            border: none;
            border-bottom: 1px solid rgba(233, 209, 209, 0.2);
            padding: 0.8rem 0;
            color: var(--bg);
            font-family: 'Jost', sans-serif;
            font-size: 0.9rem;
            font-weight: 300;
            outline: none;
            transition: border-color 0.3s;
            resize: none;
        }

        .form-group input:focus,
        .form-group textarea:focus {
            border-color: var(--accent);
        }

        .form-group input::placeholder,
        .form-group textarea::placeholder {
            color: rgba(233, 209, 209, 0.25);
        }

        .btn-send {
            background: transparent;
            border: 1px solid rgba(233, 209, 209, 0.3);
            color: var(--bg);
            font-family: 'Jost', sans-serif;
            font-size: 0.72rem;
            letter-spacing: 0.2em;
            text-transform: uppercase;
            padding: 1rem 2.5rem;
            cursor: pointer;
            width: fit-content;
            transition: background 0.3s, border-color 0.3s;
        }

        .btn-send:hover {
            background: var(--accent);
            border-color: var(--accent);
        }

        /* ── FOOTER ── */
        footer {
            background: var(--text);
            border-top: 1px solid rgba(233, 209, 209, 0.1);
            padding: 2rem 4rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        footer p {
            font-size: 0.65rem;
            letter-spacing: 0.15em;
            text-transform: uppercase;
            color: rgba(233, 209, 209, 0.35);
        }

        .footer-back {
            font-size: 0.65rem;
            letter-spacing: 0.15em;
            text-transform: uppercase;
            color: rgba(233, 209, 209, 0.35);
            text-decoration: none;
            transition: color 0.3s;
        }
        .footer-back:hover { color: var(--bg); }

        /* ── REVEAL ANIMATIONS ── */
        .reveal {
            opacity: 0;
            transform: translateY(30px);
            transition: opacity 0.8s ease, transform 0.8s ease;
        }
        .reveal.visible {
            opacity: 1;
            transform: translateY(0);
        }

        /* ── RESPONSIVE ── */
        @media (max-width: 900px) {
            nav { padding: 1.5rem 2rem; }
            .nav-links { display: none; }
            .hamburger { display: flex; }

            #inicio {
                grid-template-columns: 1fr;
                grid-template-rows: 55vh auto;
            }
            .hero-content {
                padding: 3rem 2rem 5rem;
            }
            .hero-social { display: none; }

            .container { padding: 0 2rem; }

            .about-grid,
            .contact-grid { grid-template-columns: 1fr; gap: 3rem; }

            .about-image-wrap { order: -1; }

            .projects-grid { grid-template-columns: 1fr 1fr; }

            .projects-header { flex-direction: column; align-items: flex-start; gap: 1rem; }

            footer { flex-direction: column; gap: 1rem; text-align: center; padding: 2rem; }
        }

        @media (max-width: 560px) {
            .projects-grid { grid-template-columns: 1fr; }
            .about-stats { grid-template-columns: 1fr 1fr; }
        }
/* ── LIGHTBOX ── */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(30, 20, 40, 0.96);
    z-index: 999;
    justify-content: center;
    align-items: center;
}

.lightbox.open { display: flex; }

.lightbox-img-wrap {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 82vh;
    object-fit: contain;
    display: block;
    border: 1px solid rgba(233, 209, 209, 0.1);
}

.lightbox-caption {
    color: rgba(233, 209, 209, 0.7);
    font-family: 'Jost', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-top: 1rem;
    text-align: center;
}

.lightbox-counter {
    color: rgba(233, 209, 209, 0.4);
    font-family: 'Jost', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    margin-top: 0.4rem;
}

.lightbox-close {
    position: fixed;
    top: 1.5rem;
    right: 2rem;
    background: none;
    border: none;
    color: rgba(233, 209, 209, 0.6);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1000;
    transition: color 0.3s;
    line-height: 1;
}
.lightbox-close:hover { color: var(--bg); }

.lightbox-prev,
.lightbox-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: 1px solid rgba(233, 209, 209, 0.2);
    color: rgba(233, 209, 209, 0.6);
    font-size: 1.5rem;
    width: 3rem;
    height: 3rem;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }
.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(233, 209, 209, 0.1);
    color: var(--bg);
    border-color: rgba(233, 209, 209, 0.5);
}

@media (max-width: 560px) {
    .lightbox-prev { left: 0.5rem; }
    .lightbox-next { right: 0.5rem; }
}
/* ── LIGHTBOX ── */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(30, 20, 40, 0.96);
    z-index: 999;
    justify-content: center;
    align-items: center;
}

.lightbox.open { display: flex; }

.lightbox-img-wrap {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 82vh;
    object-fit: contain;
    display: block;
    border: 1px solid rgba(233, 209, 209, 0.1);
}

.lightbox-caption {
    color: rgba(233, 209, 209, 0.7);
    font-family: 'Jost', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-top: 1rem;
    text-align: center;
}

.lightbox-counter {
    color: rgba(233, 209, 209, 0.4);
    font-family: 'Jost', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    margin-top: 0.4rem;
}

.lightbox-close {
    position: fixed;
    top: 1.5rem;
    right: 2rem;
    background: none;
    border: none;
    color: rgba(233, 209, 209, 0.6);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1000;
    transition: color 0.3s;
    line-height: 1;
}
.lightbox-close:hover { color: var(--bg); }

.lightbox-prev,
.lightbox-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: 1px solid rgba(233, 209, 209, 0.2);
    color: rgba(233, 209, 209, 0.6);
    font-size: 1.5rem;
    width: 3rem;
    height: 3rem;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }
.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(233, 209, 209, 0.1);
    color: var(--bg);
    border-color: rgba(233, 209, 209, 0.5);
}
.sold-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--text);
    color: var(--bg);
    font-family: 'Jost', sans-serif;
    font-size: 0.6rem;
    font-weight: 300;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    padding: 0.35rem 0.8rem;
    z-index: 2;
}
.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}
.contact-link i,
.contact-link span {
    display: inline-block;
}

.contact-link-icon {
    font-size: 1.3rem;
    line-height: 1;
}
.instagram-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
}
.contact-link:hover .instagram-icon {
    transform: scale(1.15);
}

@media (max-width: 560px) {
    .lightbox-prev { left: 0.5rem; }
    .lightbox-next { right: 0.5rem; }
}