:root {
    --bg-color: #050505;
    --text-color: #ffffff;
    --pastel-pink: #ffb3ba;
    --pastel-green: #baffc9;
    --pastel-white: #fdfdfd;
    --font-main: 'Host Grotesk', sans-serif;
}

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

html {
    /* Removed scroll-behavior to prevent scrolling animation on page navigation */
}

html.snap-enabled {
    scroll-snap-type: y mandatory;
}

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

/* NAVBAR Y LOGO FIJO */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 10;
    pointer-events: none; /* Para no bloquear clicks si no hay menú */
}

#main-logo {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 25vw;
    max-width: 320px;
    min-width: 180px;
    height: auto;
    z-index: 10;
    transition: all 0.8s cubic-bezier(0.77, 0, 0.175, 1);
    pointer-events: auto;
    object-fit: contain;
}

/* Clase añadida por JS cuando se hace scroll */
#main-logo.scrolled {
    top: 60px; /* Un poco más abajo para que no se corte por arriba al ser tan grande */
    left: 40px; /* Margen izquierdo */
    transform: translate(0, -50%); /* Solo centrado vertical */
    height: 160px; /* Fijar alto para que la cabeza no cambie de tamaño al revelar el texto */
    width: auto;
    max-width: none;
    min-width: 0;
    transform-origin: left center;
    cursor: pointer;
    pointer-events: auto;
}

#logo-hover-text {
    position: fixed;
    top: 100px; /* Un poco más arriba */
    left: 118px; /* Un pelín más a la derecha */
    transform: translateX(-50%); /* Centrado perfecto sobre ese punto */
    font-size: 2.2rem;
    font-weight: 600;
    color: white;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    font-family: var(--font-main);
    z-index: 100;
    letter-spacing: -1px;
}

#main-logo.scrolled:hover + #logo-hover-text {
    opacity: 1;
}


/* SECCIÓN HERO (SCRATCH) */
.hero-section {
    position: relative;
    height: 100vh;
    width: 100%;
    z-index: 20; /* Encima del logo para que el canvas lo tape */
    background: transparent;
    scroll-snap-align: start;
}

#scratch-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 21; /* Encima de todo */
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32"><g transform="scale(-1, 1) translate(-32, 0)"><text y="28" font-size="28">✏️</text></g></svg>') 10 28, crosshair;
}

#scratch-instruction {
    position: absolute;
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.9);
    transition: opacity 0.5s ease;
    font-family: var(--font-main);
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    pointer-events: none;
    z-index: 25; /* above canvas */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.scroll-indicator {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: white;
    z-index: 70;
    animation: bounce 2s infinite;
    pointer-events: none;
    opacity: 0; /* Oculto inicialmente */
    transition: opacity 1s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.scroll-indicator.visible {
    opacity: 1;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-15px) translateX(-50%); }
    60% { transform: translateY(-7px) translateX(-50%); }
}

/* SECCIÓN HOME (MENÚ INTERACTIVO) */
.home-section {
    position: relative;
    min-height: 100vh;
    width: 100%;
    background-color: var(--bg-color);
    z-index: 5;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 0; /* Sin espacio extra, empalma directo con hero */
    scroll-snap-align: start;
}

.menu-container {
    display: flex;
    flex-direction: column; /* Una arriba de la otra */
    justify-content: center;
    align-items: center;
    gap: 40px; /* Separación vertical */
    padding: 0 40px;
}

.menu-item {
    position: relative;
    font-size: 6vw;
    font-weight: 900;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--text-color);
    display: grid;
    place-items: center;
    white-space: nowrap;
    text-align: center;
}

.menu-item .default-text, .menu-item .hover-text {
    grid-area: 1 / 1;
    transition: opacity 0.3s ease;
    white-space: nowrap;
}

.menu-item .default-text {
    opacity: 1;
}

.menu-item .hover-text {
    opacity: 0;
    font-family: var(--font-main);
}

/* Colores pastel sin brillo */
.color-pink { color: var(--pastel-pink); }
.color-green { color: var(--pastel-green); }
.color-white { color: var(--pastel-white); }

.menu-item:hover .default-text {
    opacity: 0;
}

.menu-item:hover .hover-text {
    opacity: 1;
}

/* SECCIONES DE CONTENIDO */
.content-section {
    min-height: 100vh;
    padding: 100px 40px;
    background-color: var(--bg-color);
    z-index: 5; /* Menor que navbar (10) para no tapar el logo */
    position: relative;
}
.content-section h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
    color: var(--neon-green);
}

/* GRILLA DE TRABAJOS */
.works-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding-top: 40px;
}

.work-item {
    position: relative;
    overflow: hidden; /* Importante para el zoom interior */
    cursor: pointer;
}

.work-item.square {
    aspect-ratio: 1 / 1;
}

.work-item.full-width {
    grid-column: span 2;
    aspect-ratio: 2 / 1;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    border-radius: 0;
}

.full-bleed {
    width: 100vw !important;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    max-width: none !important;
    border-radius: 0 !important;
}

.work-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease; /* Efecto zoom suave */
    z-index: 1;
}

.composite-bg {
    display: flex;
    width: 100%;
    height: 100%;
}

.composite-img {
    flex: 1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.work-item:hover .work-bg {
    transform: scale(1.15); /* Zoom más generoso al pasar el ratón */
}

.work-content {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Que no bloquee el hover del item */
}

.work-number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-color);
    z-index: 3;
    background: rgba(5, 5, 5, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    width: 70px;
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    font-family: var(--font-main);
}

.work-item:hover .work-number {
    background: rgba(255, 255, 255, 0.15);
    transform: translate(-50%, -50%) scale(1.1);
}

.work-item:nth-child(odd):hover .work-number {
    border-color: var(--pastel-pink);
    color: var(--pastel-pink);
}

.work-item:nth-child(even):hover .work-number {
    border-color: var(--pastel-green);
    color: var(--pastel-green);
}

.overlay-text {
    text-shadow: 2px 2px 10px rgba(0,0,0,0.8);
}

/* EFECTOS DE SCROLL (REVEAL) */
.reveal-item {
    opacity: 0;
    transform: translateY(80px);
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- VISTA DE DETALLE DE PROYECTO --- */
.project-container {
    max-width: 1020px;
    margin: 0 auto;
    width: 100%;
}

.project-hero {
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
    margin-top: 40px; /* Separar del top bar */
}

.hero-left {
    position: relative;
    background-color: #d4d4d4; /* Placeholder base */
    aspect-ratio: 4 / 5;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px;
    overflow: hidden;
}

.hero-image-placeholder {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: #333; /* Darker placeholder if needed */
    z-index: 1;
}

.hero-text-overlay {
    position: relative;
    z-index: 2;
    color: white;
}

.quien-soy-greeting {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 30px;
    letter-spacing: -1px;
    text-transform: uppercase;
    text-align: center;
}

#dynamic-name {
    display: inline-block;
    transition: color 0.3s ease;
}

#dynamic-name.name-valen {
    color: var(--pastel-pink);
    animation: namePop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes namePop {
    0% { transform: scale(1); filter: blur(2px); }
    100% { transform: scale(1.05) rotate(-2deg); filter: blur(0); }
}

.hover-pop {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: default;
}

.hover-pop:hover {
    transform: scale(1.05) rotate(-2deg);
}

.hero-right h2 {
    font-size: 2.1rem;
    line-height: 1.15;
    margin-bottom: 15px;
    font-weight: normal;
    text-transform: uppercase;
}

.hero-right h2 .title-bold {
    font-weight: 900;
}

.hero-right h2 .title-light {
    font-weight: 300;
}

.project-tagline {
    font-size: 1.05rem;
    font-weight: 400;
    max-width: 90%;
    line-height: 1.45;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.5px;
    margin-bottom: 25px;
}

.hero-right {
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.hero-right h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--pastel-pink);
    text-transform: uppercase;
}

.hero-right p {
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
}

.hero-right p strong {
    font-weight: 700;
    color: var(--text-color);
}

.hero-caption {
    margin-top: auto;
    font-size: 0.85rem !important;
    color: #888 !important;
}


.project-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.project-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

/* --- HORIZONTAL SCROLL --- */
.project-horizontal-scroll {
    width: 100%;
    margin-bottom: 40px;
}

.horizontal-scroll-track {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding-bottom: 15px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: var(--pastel-pink) #111;
}

.horizontal-scroll-track::-webkit-scrollbar {
    height: 6px;
}

.horizontal-scroll-track::-webkit-scrollbar-track {
    background: #111;
    border-radius: 3px;
}

.horizontal-scroll-track::-webkit-scrollbar-thumb {
    background: var(--pastel-pink);
    border-radius: 3px;
}

.scroll-item {
    flex: 0 0 calc(33.333% - 14px);
    min-width: 280px;
    scroll-snap-align: start;
}

.project-img-placeholder {
    position: relative;
    background-color: #222;
    aspect-ratio: 3 / 4;
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
    padding: 20px;
    overflow: hidden;
}

.project-img-placeholder.vertical {
    aspect-ratio: 2 / 3;
}

.placeholder-label {
    color: white;
    font-weight: 800;
    font-size: 1.2rem;
    text-align: left;
    z-index: 2;
}

/* --- SECCIÓN QUIÉN SOY (ABOUT) --- */
.quien-soy-container {
    max-width: 95%;
    margin: 80px auto 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 0 40px;
}

.quien-soy-greeting,
.about-text p {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.25;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: -1px;
}

.quien-soy-icon {
    margin-bottom: 35px;
    display: flex;
    justify-content: center;
    font-weight: 900;
}

.portfolio-reveal {
    position: relative;
    width: 150px;
    height: 150px;
    cursor: zoom-in; /* Cursor de lupa */
}

.portfolio-reveal .base-img,
.portfolio-reveal .reveal-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.portfolio-reveal .reveal-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
    mask-image: radial-gradient(circle 80px at var(--mouse-x, 50%) var(--mouse-y, 50%), black 0%, rgba(0,0,0,0.8) 50%, transparent 100%);
    -webkit-mask-image: radial-gradient(circle 80px at var(--mouse-x, 50%) var(--mouse-y, 50%), black 0%, rgba(0,0,0,0.8) 50%, transparent 100%);
}

.portfolio-reveal:hover .reveal-wrapper {
    opacity: 1;
}

.portfolio-reveal .reveal-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: scale(1);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.3)); /* Efecto copado de brillo */
}

.click-to-reveal-text {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    color: var(--pastel-pink);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    animation: colorPulse 0.5s infinite alternate;
}

@keyframes colorPulse {
    0% { color: var(--pastel-pink); }
    100% { color: var(--pastel-green); }
}

.portfolio-reveal:hover .click-to-reveal-text {
    opacity: 1;
}

.portfolio-reveal.locked .click-to-reveal-text {
    opacity: 0 !important;
}

/* --- ESTADOS DE CLICK: LOCKED Y ANIMATING --- */
.portfolio-reveal.locked .reveal-wrapper {
    opacity: 1 !important;
    mask-image: none !important;
    -webkit-mask-image: none !important;
}

/* --- TU MARCA ANIMACIONES --- */
#tu-marca-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    border: 2px dashed rgba(255,255,255,0.4);
    animation: bgCycle 3s infinite alternate;
}

@keyframes bgCycle {
    0% { background-color: var(--pastel-pink); }
    100% { background-color: var(--pastel-green); }
}

@keyframes shakeText {
    0%, 100% { transform: translateX(0) rotate(0deg); }
    20% { transform: translateX(-10px) rotate(-5deg); }
    40% { transform: translateX(10px) rotate(5deg); }
    60% { transform: translateX(-10px) rotate(-5deg); }
    80% { transform: translateX(10px) rotate(5deg); }
}
.shake-animation {
    animation: shakeText 0.5s ease-in-out;
}

.floating-joy-msg {
    position: absolute;
    font-family: var(--font-main);
    font-weight: 900;
    font-size: 1.5rem;
    pointer-events: none;
    z-index: 50;
    white-space: nowrap;
    text-transform: uppercase;
    text-shadow: 2px 2px 0px rgba(0,0,0,0.8);
    animation: floatJoy 2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes floatJoy {
    0% { opacity: 0; transform: translate(-50%, 0) scale(0.5) rotate(var(--rot, 0deg)); }
    20% { opacity: 1; transform: translate(-50%, -30px) scale(1.2) rotate(var(--rot, 0deg)); }
    80% { opacity: 1; transform: translate(-50%, -80px) scale(1) rotate(var(--rot, 0deg)); }
    100% { opacity: 0; transform: translate(-50%, -100px) scale(0.8) rotate(var(--rot, 0deg)); }
}

.portfolio-reveal.locked .reveal-img {
    transform: scale(1) !important; /* Vuelve a tamaño original al quedarse fijo */
}

/* Ocultar la primera foto (base) para que no se superponga por la transparencia del PNG */
.portfolio-reveal.locked .base-img {
    opacity: 0;
}

.portfolio-reveal.animating {
    animation: portfolioBounce 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes portfolioBounce {
    0% { transform: scale(1); }
    40% { transform: scale(0.85); }
    100% { transform: scale(1); }
}

/* --- FRASES DEL VIDEO HABLANDO --- */
#reveal-video-talking {
    opacity: 0;
    transition: opacity 0.5s ease; /* Transición crossfade más rápida */
}

#reveal-img-static {
    transition: opacity 0.5s ease; /* Transición crossfade más rápida */
}

.talking-phrase {
    position: absolute;
    left: 50%;
    top: 55%;
    transform: translate(-50%, -50%);
    background: transparent;
    padding: 0;
    font-size: 0.95rem;
    font-weight: 800;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    z-index: 30;
    text-shadow: 0 3px 6px rgba(0,0,0,0.4);
    animation: floatUpPhrase 8s cubic-bezier(0.25, 1, 0.5, 1) forwards; /* Más lento */
}

@keyframes floatUpPhrase {
    0% { transform: translate(-50%, -50%) scale(0.5); opacity: 0; }
    10% { transform: translate(calc(-50% + var(--tx-start)), calc(-50% - 15px)) scale(1); opacity: 1; }
    85% { transform: translate(calc(-50% + var(--tx-end)), calc(-50% - 60px)) scale(1); opacity: 1; }
    100% { transform: translate(calc(-50% + var(--tx-end)), calc(-50% - 80px)) scale(1); opacity: 0; }
}

/* --- ONDA EXPANSIVA --- */
.shockwave {
    position: absolute;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    background: transparent;
    border: 3px solid var(--pastel-pink);
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    animation: rippleEffect 0.6s ease-out forwards;
    pointer-events: none;
    z-index: 10;
}

@keyframes rippleEffect {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
        border-width: 6px;
    }
    100% {
        transform: translate(-50%, -50%) scale(15);
        opacity: 0;
        border-width: 1px;
    }
}

/* --- CONFETI --- */
.confetti-piece {
    position: absolute;
    width: 8px;
    height: 12px;
    opacity: 1;
    border-radius: 2px;
    transform-origin: center;
    /* Efecto slowmo y gravedad */
    animation: confettiExplode 2.5s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
    pointer-events: none;
    z-index: 15;
}

@keyframes confettiExplode {
    0% {
        transform: translate(-50%, -50%) rotate(0deg) scale(0.5);
        opacity: 1;
    }
    60% {
        opacity: 1;
    }
    100% {
        /* Se añade 40px a la Y final para simular que caen un poco (gravedad en cámara lenta) */
        transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty) + 40px)) rotate(var(--rot)) scale(1);
        opacity: 0;
    }
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: 25px;
    scroll-snap-align: start;
}

/* --- SECCIÓN CONTACTO --- */
#contact {
    height: 100vh;
    min-height: 100vh;
    padding: 0;
    overflow: hidden;
    box-sizing: border-box;
    scroll-snap-align: start;
}

.contacto-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    padding-top: 80px; /* Offset para el navbar */
    box-sizing: border-box;
}

.contacto-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.contacto-link {
    font-size: 6.5vw;
    font-weight: 900;
    color: var(--text-color);
    text-decoration: none;
    text-transform: lowercase;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    letter-spacing: -2px;
}

.contacto-link:hover {
    letter-spacing: 2px;
}

.contacto-link:nth-child(1):hover { color: var(--pastel-pink); }
.contacto-link:nth-child(2):hover { color: var(--pastel-green); }
.contacto-link:nth-child(3):hover { color: var(--pastel-pink); }
.contacto-link:nth-child(4):hover { color: var(--pastel-green); }

/* INTERACTIVE DRAWING BOX */
.interactive-drawing-box {
    margin-top: 100px;
    padding: 60px 40px;
    background-color: #000000;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
}

.interactive-drawing-box h3 {
    font-size: 2.2rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -1px;
    color: var(--text-color);
    margin: 0;
    font-family: var(--font-main);
}

.drawing-canvas-wrapper {
    background-color: #050505;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    overflow: hidden;
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32"><g transform="scale(-1, 1) translate(-32, 0)"><text y="28" font-size="28">✏️</text></g></svg>') 10 28, crosshair;
    display: flex;
    justify-content: center;
    align-items: center;
}

#drawing-canvas {
    background-color: #050505;
    display: block;
    max-width: 100%;
    height: auto;
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32"><g transform="scale(-1, 1) translate(-32, 0)"><text y="28" font-size="28">✏️</text></g></svg>') 10 28, crosshair;
}

.drawing-controls {
    display: flex;
    gap: 20px;
    width: 100%;
    justify-content: center;
}

.drawing-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: var(--text-color);
    padding: 12px 35px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    font-family: var(--font-main);
}

.drawing-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.8);
}

.drawing-btn.primary {
    background: var(--text-color);
    color: var(--bg-color);
    border-color: var(--text-color);
}

.drawing-btn.primary:hover {
    background: transparent;
    color: var(--text-color);
    border-color: var(--pastel-pink);
}

/* FLOATING PRAISES */
.floating-praise {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    font-family: var(--font-main);
    font-weight: 900;
    font-size: 1.4rem;
    text-shadow: 2px 2px 12px rgba(0,0,0,0.95), -2px -2px 12px rgba(0,0,0,0.95);
    white-space: nowrap;
    animation: floatAway 9.5s cubic-bezier(0.25, 1, 0.5, 1) forwards, fadeOutPraise 9.5s ease forwards;
    z-index: 999;
}

@keyframes floatAway {
    0% {
        transform: translate(calc(-50% + var(--start-x)), calc(-50% + var(--start-y))) scale(0.6) rotate(var(--start-rot));
    }
    100% {
        transform: translate(calc(-50% + var(--end-x)), calc(-50% + var(--end-y))) scale(0.95) rotate(var(--end-rot));
    }
}

@keyframes fadeOutPraise {
    0% {
        opacity: 0;
    }
    15% {
        opacity: 1;
    }
    55% {
        opacity: 1;
    }
    75% {
        opacity: 0;
    }
    100% {
        opacity: 0;
    }
}

/* BOTÓN VOLVER A TRABAJOS */
.back-to-works-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
    width: 100%;
}

.back-to-works-btn {
    background: transparent;
    border: none;
    color: var(--pastel-pink);
    padding: 5px 0;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    font-family: var(--font-main);
    letter-spacing: 2px;
}

.back-to-works-btn:hover {
    color: var(--pastel-green);
}

/* DISEÑO ADAPTADO DE GIZEH */
.gizeh-layout {
    grid-template-columns: 1.2fr 1fr;
    align-items: start;
}

.gizeh-hero-left {
    height: auto;
    max-height: none;
    background-color: transparent !important;
    padding: 0 !important;
    aspect-ratio: auto;
}

.gizeh-double-images {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.gizeh-img {
    width: calc(50% - 7.5px);
    height: auto;
    object-fit: cover;
}

.gizeh-banner {
    width: 100%;
    height: auto;
    object-fit: cover;
    margin-bottom: 40px;
    display: block;
}

.gizeh-bottom-row {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
    align-items: start;
    height: auto;
    max-height: none;
}

.gizeh-port3-img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.gizeh-stories-col {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: auto;
}

.gizeh-stories-grid {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.gizeh-story-img {
    width: calc(50% - 7.5px);
    height: auto;
    object-fit: cover;
}

.gizeh-stories-caption {
    margin-top: 15px;
    font-size: 0.85rem;
    color: #888;
    font-weight: 300;
    line-height: 1.4;
}

/* Responsividad para Gizeh */
@media (max-width: 768px) {
    .gizeh-layout {
        grid-template-columns: 1fr;
    }
    .gizeh-hero-left {
        height: auto;
        aspect-ratio: auto;
    }
    .gizeh-double-images {
        height: auto;
    }
    .gizeh-bottom-row {
        grid-template-columns: 1fr;
        height: auto;
        max-height: none;
        gap: 20px;
    }
    .gizeh-port3-img {
        height: auto;
    }
    .gizeh-stories-grid {
        flex-direction: row;
        height: auto;
    }
    .gizeh-story-img {
        height: auto;
    }
}

/* --- LIGHTBOX MODAL --- */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.lightbox-modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
    transform: scale(0.95);
    animation: zoomIn 0.3s ease forwards;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #f1f1f1;
    font-size: 50px;
    font-weight: 300;
    transition: 0.3s;
    cursor: pointer;
    font-family: var(--font-main);
    z-index: 1001;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: var(--pastel-pink);
    text-decoration: none;
    cursor: pointer;
}

@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}

@keyframes zoomIn {
    from {transform: scale(0.95);}
    to {transform: scale(1);}
}

.zoomable {
    cursor: pointer;
}

.zoomable:hover {
    filter: brightness(1.15);
}

/* --- FAKE BEHANCE SECTION --- */
#behance-fake {
    background-color: #f9f9f9;
    color: #191919;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.behance-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
    height: 64px;
    background: #ffffff;
    border-bottom: 1px solid #ebebeb;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.behance-nav-left {
    display: flex;
    align-items: center;
    gap: 24px;
}

.behance-logo-text {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -0.5px;
}

.behance-nav-link {
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}

.behance-nav-link:hover {
    color: #0057ff;
}

.behance-btn-back {
    background: #0057ff;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.9rem;
}

.behance-btn-back:hover {
    background: #004add;
}

.behance-project-wrapper {
    max-width: 1400px;
    margin: 40px auto;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-radius: 4px;
    overflow: hidden;
}

.behance-project-header {
    display: flex;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid #ebebeb;
}

.behance-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 16px;
}

.behance-project-info {
    flex-grow: 1;
}

.behance-project-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 4px 0;
    color: #191919;
}

.behance-project-owner {
    font-size: 0.9rem;
    color: #696969;
    margin: 0;
}

.behance-project-actions button {
    background: #0057ff;
    color: white;
    border: none;
    padding: 8px 24px;
    border-radius: 20px;
    font-weight: 700;
    cursor: pointer;
    margin-left: 12px;
}

.behance-project-actions .behance-btn-save {
    background: #f0f0f0;
    color: #191919;
}

.behance-project-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #ffffff;
}

.behance-placeholder {
    width: 100%;
    max-width: 1200px; /* Max width to mimic Behance's common content width */
    background: #eaeaea;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #888;
    font-weight: 600;
    font-size: 1.2rem;
    margin: 10px 0;
    border: 2px dashed #ccc;
}

.behance-project-footer {
    padding: 40px;
    display: flex;
    justify-content: center;
    border-top: 1px solid #ebebeb;
}

.behance-btn-appreciate-big {
    background: #0057ff;
    color: white;
    border: none;
    padding: 16px 40px;
    border-radius: 30px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}

.behance-grid-1 {
    width: 100%;
    margin-bottom: 20px;
}

.behance-grid-constrained {
    width: 100%;
    max-width: 800px;
    margin: 0 auto 20px auto;
    display: flex;
    justify-content: center;
}

.behance-grid-constrained .behance-media {
    max-height: 85vh;
    width: auto;
    object-fit: contain;
}

.behance-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    width: 100%;
    max-width: 1200px;
    margin-bottom: 20px;
}

.behance-grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    width: 100%;
    max-width: 1200px;
    margin-bottom: 20px;
}

.behance-media {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}
