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

:root {
    --bg: #F6F4F1;
    --white: #FFFFFF;
    --text: #1A1A1A;
    --text-muted: #6B6460;
    --orange: #FF6B3D;
    --pink: #E94E77;
    --teal: #5BBFAA;
    --burgundy: #2B0F19;
    --cream-dark: #EDE9E3;
    --radius: 20px;
    --shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 16px 50px rgba(0, 0, 0, 0.15);
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    overflow-x: hidden;
    cursor: none;
}

/* ===== CUSTOM CURSOR ===== */
.cursor {
    width: 12px;
    height: 12px;
    background: var(--orange);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.15s ease;
    mix-blend-mode: multiply;
}

.cursor-glow {
    width: 40px;
    height: 40px;
    border: 1.5px solid var(--pink);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9998;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.3s;
    opacity: 0.5;
}

.cursor-spark {
    width: 6px;
    height: 6px;
    background: var(--teal);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9997;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    opacity: 0.7;
}

/* ===== FLOATING DECORATIVE ELEMENTS ===== */
.deco-star {
    position: fixed;
    pointer-events: none;
    z-index: 1;
    animation: floatStar 6s ease-in-out infinite;
    opacity: 0.15;
}

@keyframes floatStar {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

.sparkle {
    position: absolute;
    width: 20px;
    height: 20px;
    pointer-events: none;
    animation: sparklePop 3s ease-in-out infinite;
}

@keyframes sparklePop {

    0%,
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.6;
    }

    50% {
        transform: scale(1.4) rotate(45deg);
        opacity: 1;
    }
}

/* ===== NAVIGATION ===== */
nav {
    position: fixed;
    top: 32px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 48px);
    max-width: 1100px;
    z-index: 100;
    padding: 16px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.4s ease;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

nav.scrolled {
    background: rgba(255, 115, 0, 0.2);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 14px 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.nav-logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.6rem;
    letter-spacing: 0.05em;
    color: var(--text);
    text-decoration: none;
}

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

.nav-links {
    display: flex;
    gap: 36px;
    list-style: none;
}

.nav-links a {
    font-family: 'League Spartan', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--orange);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}

.nav-links a:hover {
    color: var(--text);
}

.nav-links a:hover::after {
    transform: scaleX(1);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'League Spartan', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 14px 32px;
    border-radius: 100px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: none;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-100%);
    transition: transform 0.4s ease;
}

.btn:hover::before {
    transform: translateX(0);
}

.btn:hover {
    transform: translateY(-3px) scale(1.03);
}

.btn-primary {
    background: var(--orange);
    color: #fff;
    box-shadow: 0 8px 24px rgba(255, 107, 61, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 12px 32px rgba(255, 107, 61, 0.45);
}

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

.btn-outline:hover {
    background: var(--text);
    color: var(--bg);
}

.destello {
    font-size: 12px;
}

/* ===== SECTIONS ===== */
section {
    position: relative;
}

/* ===== HERO ===== */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 48px 80px;
    overflow: hidden;
    position: relative;
}

.hero-container {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hero-bg-shapes {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: blobDrift 8s ease-in-out infinite;
}

.hero-blob-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 107, 61, 0.12), transparent 70%);
    top: -100px;
    right: -100px;
    animation-duration: 10s;
}

.hero-blob-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(233, 78, 119, 0.1), transparent 70%);
    bottom: -50px;
    left: 20%;
    animation-duration: 8s;
    animation-delay: -3s;
}

.hero-blob-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(126, 215, 193, 0.12), transparent 70%);
    top: 30%;
    left: -50px;
    animation-duration: 12s;
    animation-delay: -6s;
}

@keyframes blobDrift {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -20px) scale(1.05);
    }

    66% {
        transform: translate(-20px, 15px) scale(0.95);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-eyebrow {
    font-family: 'League Spartan', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease forwards 0.2s;
}

.hero-eyebrow::before {
    content: '';
    width: 32px;
    height: 2px;
    background: var(--orange);
}

.hero-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(4rem, 10vw, 7rem);
    line-height: 0.95;
    letter-spacing: 0.02em;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease forwards 0.4s;
}

.hero-title .accent {
    color: var(--orange);
}

.hero-title .accent-pink {
    color: var(--pink);
}

.typing-cursor {
    color: var(--text-muted);
    font-weight: 100;
    font-family: sans-serif;
    margin-left: 4px;
    animation: typingBlink 1s step-end infinite;
}

@keyframes typingBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero-subtitle {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-muted);
    max-width: 500px;
    margin-bottom: 48px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease forwards 0.6s;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease forwards 0.8s;
}

.hero-deco {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    width: min(420px, 40vw);
    opacity: 0;
    animation: fadeIn 1.2s ease forwards 1s;
}

.hero-deco-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.hero-deco-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.4s ease;
}

.hero-deco-card:hover {
    transform: translateY(-8px) rotate(1deg);
}

.hero-deco-card img,
.hero-deco-card .deco-img {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    display: block;
}

.deco-img {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.deco-img-1 {
    background: linear-gradient(135deg, #FF6B3D22, #FF6B3D44);
    font-size: 4rem;
}

.deco-img-2 {
    background: linear-gradient(135deg, #E94E7722, #E94E7744);
    aspect-ratio: 4/3 !important;
}

.deco-img-3 {
    background: linear-gradient(135deg, #7ED7C122, #7ED7C144);
    aspect-ratio: 4/3 !important;
}

.deco-img-4 {
    background: linear-gradient(135deg, #FF6B3D11, #E94E7733);
}

.hero-deco-card.tall {
    grid-row: span 2;
}

.hero-deco-card.tall .deco-img {
    aspect-ratio: 2/3;
}

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

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

/* ===== SCROLL INDICATOR ===== */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 48px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'League Spartan', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    animation: fadeIn 1s ease forwards 1.5s;
    opacity: 0;
}

.scroll-line {
    width: 40px;
    height: 1px;
    background: var(--text-muted);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--orange);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    to {
        left: 100%;
    }
}

/* ===== SECTION HEADERS ===== */
.section-header {
    margin-bottom: 64px;
}

.section-tag {
    font-family: 'League Spartan', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-tag::before {
    content: '';
    width: 24px;
    height: 2px;
    background: var(--orange);
}

.section-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(3rem, 6vw, 5.5rem);
    letter-spacing: 0.02em;
    line-height: 1;
    margin-bottom: 24px;
}

.section-desc {
    font-size: 1rem;
    line-height: 1.2;
    color: var(--text-muted);
    max-width: 600px;
}

/* ===== PROJECTS ===== */
#proyectos {
    padding: 120px 48px;
}

.filter-tabs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.filter-tab {
    font-family: 'League Spartan', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 10px 22px;
    border-radius: 100px;
    border: 1.5px solid rgba(30, 30, 30, 0.15);
    background: transparent;
    color: var(--text-muted);
    cursor: none;
    transition: all 0.3s ease;
}

.filter-tab:hover,
.filter-tab.active {
    background: var(--text);
    color: var(--bg);
    border-color: var(--text);
    transform: translateY(-2px);
}

.filter-tab.active {
    background: var(--orange);
    border-color: var(--orange);
}

/* Masonry Grid */
.masonry-grid {
    columns: 3;
    column-gap: 20px;
}

@media (max-width: 900px) {
    .masonry-grid {
        columns: 2;
    }
}

@media (max-width: 560px) {
    .masonry-grid {
        columns: 1;
    }
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 20px;
}

.project-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
    position: relative;
    cursor: pointer;
}

.project-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.project-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: var(--shadow-hover);
}

.project-img {
    width: 100%;
    display: block;
    position: relative;
    overflow: hidden;
}

.project-visual {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    position: relative;
    overflow: hidden;
}

/* ===== REAL PHOTO INSIDE PROJECT CARD ===== */
.project-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.project-card:hover .project-photo {
    transform: scale(1.05);
}

/* ===== ARCHED FRAMES (from inspo) ===== */
.arch-top {
    border-radius: 200px 200px 0 0;
    overflow: hidden;
}

.arch-top-large {
    border-radius: 260px 260px 20px 20px;
    overflow: hidden;
}

/* ===== HERO DECO REAL IMAGES ===== */
.deco-img-real {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.hero-deco-card:hover .deco-img-real {
    transform: scale(1.04);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(30, 30, 30, 0);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 24px;
    transition: background 0.4s ease;
}

.project-card:hover .project-overlay {
    background: rgba(20, 10, 10, 0.6);
}

.overlay-tag {
    font-family: 'League Spartan', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 100px;
    background: var(--orange);
    color: #fff;
    transform: translateY(8px);
    opacity: 0;
    transition: all 0.4s ease 0.05s;
}

.overlay-title {
    font-family: 'League Spartan', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-top: 8px;
    transform: translateY(8px);
    opacity: 0;
    transition: all 0.4s ease 0.1s;
}

.project-card:hover .overlay-tag,
.project-card:hover .overlay-title {
    transform: translateY(0);
    opacity: 1;
}

.project-meta {
    padding: 20px 22px;
}

.project-category {
    font-family: 'League Spartan', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 6px;
}

.project-name {
    font-family: 'League Spartan', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
}

/* ===== ABOUT ===== */
#sobre-mi {
    padding: 120px 48px;
    background: var(--white);
}

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

@media (max-width: 800px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

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

.about-image {
    width: 100%;
    aspect-ratio: 4/5;
    border-radius: 260px 260px 20px 20px;
    overflow: hidden;
    position: relative;
}

.about-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.about-image:hover .about-photo {
    transform: scale(1.03);
}

/* Serif intro text in About */
.about-intro-serif {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.35rem;
    line-height: 1.6;
    color: var(--text);
    font-style: italic;
    margin-bottom: 20px;
}

.about-badge {
    position: absolute;
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.about-badge-1 {
    bottom: -20px;
    right: -20px;
}

.about-badge-2 {
    top: 30px;
    left: -20px;
}

.badge-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.badge-icon-orange {
    background: rgba(255, 107, 61, 0.15);
}

.badge-icon-pink {
    background: rgba(233, 78, 119, 0.15);
}

.badge-icon-teal {
    background: rgba(126, 215, 193, 0.15);
}

.badge-label {
    font-family: 'League Spartan', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text);
}

.badge-sub {
    font-size: 0.7rem;
    color: var(--text-muted);
}

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

.about-text p:last-of-type {
    margin-bottom: 40px;
}

/* ===== SKILLS ===== */
#lo-que-hago {
    padding: 120px 48px;
}

.skills-intro {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 48px;
    max-width: 500px;
}

.skills-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    max-width: 800px;
}

.skill-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: 100px;
    font-family: 'League Spartan', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    background: var(--white);
    border: 1.5px solid transparent;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
    cursor: none;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: badgeFloat var(--dur, 4s) ease-in-out infinite;
    animation-delay: var(--delay, 0s);
}

@keyframes badgeFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.skill-badge:hover {
    transform: translateY(-6px) scale(1.05) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.skill-badge.orange {
    border-color: var(--orange);
}

.skill-badge.orange:hover {
    background: var(--orange);
    color: #fff;
}

.skill-badge.pink {
    border-color: var(--pink);
}

.skill-badge.pink:hover {
    background: var(--pink);
    color: #fff;
}

.skill-badge.teal {
    border-color: var(--teal);
}

.skill-badge.teal:hover {
    background: var(--teal);
    color: var(--text);
}

.skill-badge .skill-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.skill-badge.orange .skill-dot {
    background: var(--orange);
}

.skill-badge.pink .skill-dot {
    background: var(--pink);
}

.skill-badge.teal .skill-dot {
    background: var(--teal);
}

.software-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 900px;
}

@media (max-width: 650px) {
    .software-grid {
        grid-template-columns: 1fr;
    }
}

.software-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--white);
    padding: 16px 20px;
    border-radius: var(--radius);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(30, 30, 30, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.software-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.software-icon {
    width: 48px;
    height: 48px;
    background: rgba(30, 30, 30, 0.03);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.software-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.software-name {
    font-family: 'League Spartan', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text);
}

.software-stars {
    display: flex;
    gap: 6px;
    margin-top: 6px;
    align-items: center;
    height: 14px;
}

.software-stars .star {
    width: 8px;
    height: 8px;
    background: #DDDDDD;
    border-radius: 50%;
    display: inline-block;
}

.software-stars .star.filled {
    background: var(--orange);
}

.reveal .software-stars .star {
    opacity: 0;
    transform: scale(0);
}

.reveal.visible .software-stars .star {
    animation: dotAppear 0.4s forwards cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Retrasos secuenciales para que aparezcan de a uno */
.reveal.visible .software-stars .star:nth-child(1) {
    animation-delay: 0.5s;
}

.reveal.visible .software-stars .star:nth-child(2) {
    animation-delay: 1s;
}

.reveal.visible .software-stars .star:nth-child(3) {
    animation-delay: 1.5s;
}

.reveal.visible .software-stars .star:nth-child(4) {
    animation-delay: 2s;
}

.reveal.visible .software-stars .star:nth-child(5) {
    animation-delay: 2.5s;
}

@keyframes dotAppear {
    0% {
        opacity: 0;
        transform: scale(0);
    }

    50% {
        opacity: 1;
        transform: scale(1.4);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}


/* ===== QUOTE ===== */
#frase {
    padding: 100px 48px;
    background: rgb(251, 212, 196);
    overflow: hidden;
    position: relative;
}

.quote-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.quote-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.7;
    animation: quoteLightAnim 15s ease-in-out infinite alternate;
}

.quote-blob-1 {
    width: 600px;
    height: 600px;
    background: var(--orange);
    top: -200px;
    left: -100px;
    animation-duration: 20s;
}

.quote-blob-2 {
    width: 400px;
    height: 400px;
    background: var(--pink);
    bottom: -150px;
    right: 10%;
    animation-duration: 16s;
    animation-delay: -5s;
}

@keyframes quoteLightAnim {
    0% { transform: translate(0, 0) scale(1); opacity: 0.6; }
    33% { transform: translate(15vw, -10vh) scale(1.3); opacity: 0.9; }
    66% { transform: translate(-10vw, 15vh) scale(0.8); opacity: 0.5; }
    100% { transform: translate(5vw, 5vh) scale(1.1); opacity: 0.8; }
}

.quote-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.quote-text {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2.5rem, 6vw, 5rem);
    letter-spacing: 0.03em;
    line-height: 1.1;
    color: #fff;
    margin-bottom: 32px;
}

.quote-text .accent {
    color: var(--orange);
}

.quote-author {
    font-family: 'League Spartan', sans-serif !important;
    font-size: 0.8rem !important;
    font-style: normal !important;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.963) !important;
}

.marquee-wrapper {
    background: var(--text);
    overflow: hidden;
    padding: 14px 0;
    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.marquee-track {
    display: inline-flex;
    align-items: center;
    gap: 32px;
    white-space: nowrap;
    animation: marqueeScroll 28s linear infinite;
    font-family: 'League Spartan', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.85);
}

.marquee-dot {
    color: var(--orange);
    font-size: 0.6rem;
    flex-shrink: 0;
}

@keyframes marqueeScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ===== DARK SOLID BLOCK — FRASE SECTION (from inspo) ===== */
#frase.dark-block {
    background: var(--burgundy);
    padding: 120px 48px;
    overflow: hidden;
    position: relative;
    text-align: center;
}

.dark-block {
    background: var(--burgundy);
    padding: 120px 48px;
    overflow: hidden;
    position: relative;
    text-align: center;
}

.dark-block-ornament {
    position: absolute;
    top: 12%;
    left: 6%;
    font-size: 3rem;
    color: var(--orange);
    opacity: 0.25;
    animation: rotateStar 14s linear infinite;
    pointer-events: none;
}

.dark-block-ornament-2 {
    position: absolute;
    bottom: 18%;
    right: 8%;
    font-size: 2.4rem;
    color: rgba(255,255,255,0.12);
    animation: rotateStar 20s linear infinite reverse;
    pointer-events: none;
}

.dark-block-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.dark-block-eyebrow {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    font-style: italic;
    color: rgba(255,255,255,0.4);
    letter-spacing: 0.15em;
    margin-bottom: 24px;
}

.quote-text {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2.8rem, 7vw, 6rem);
    letter-spacing: 0.03em;
    line-height: 1.05;
    color: #fff;
    margin-bottom: 64px;
}

.accent-orange {
    color: var(--orange);
}

.dark-block-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-num {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1;
    color: var(--orange);
    margin-bottom: 4px;
}

.stat-label {
    font-family: 'League Spartan', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
}

.stat-divider {
    width: 1px;
    height: 48px;
    background: rgba(255,255,255,0.1);
}

@media (max-width: 600px) {
    .dark-block-stats {
        gap: 24px;
    }
    .stat-divider {
        display: none;
    }
}

/* Legacy .quote-author for any remaining refs */
.quote-author {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    font-style: italic;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.5);
}

/* ===== CONTACT ===== */
#contacto {
    padding: 120px 48px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

@media (max-width: 800px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

.contact-big-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(3rem, 7vw, 6rem);
    letter-spacing: 0.02em;
    line-height: 1;
    margin-bottom: 24px;
}

.contact-big-title .accent {
    color: var(--orange);
}

.contact-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.contact-right {
    background: var(--white);
    border-radius: 28px;
    padding: 48px;
    box-shadow: var(--shadow);
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(30, 30, 30, 0.08);
    text-decoration: none;
    color: var(--text);
    transition: all 0.3s ease;
}

.contact-link:last-child {
    border-bottom: none;
}

.contact-link:hover {
    transform: translateX(8px);
}

.contact-link:hover .contact-link-icon {
    background: var(--orange);
    color: #fff;
}

.contact-link-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(255, 107, 61, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.contact-link-info {
    flex: 1;
}

.contact-link-label {
    font-family: 'League Spartan', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.contact-link-value {
    font-family: 'League Spartan', sans-serif;
    font-size: 1rem;
    font-weight: 700;
}

.contact-arrow {
    color: var(--text-muted);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.contact-link:hover .contact-arrow {
    color: var(--orange);
}

/* ===== FOOTER ===== */
footer {
    background: var(--text);
    color: rgba(255, 255, 255, 0.5);
    padding: 32px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.4rem;
    letter-spacing: 0.05em;
    color: #fff;
}

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

.footer-copy {
    font-family: 'League Spartan', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
}

.footer-links {
    display: flex;
    gap: 24px;
    list-style: none;
}

.footer-links a {
    font-family: 'League Spartan', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--orange);
}

/* ===== SCROLL ANIMATIONS ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

.reveal-delay-4 {
    transition-delay: 0.4s;
}

/* ===== SPARKLE CANVAS ===== */
#sparkle-canvas {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9996;
}

/* ===== MOBILE NAV ===== */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: none;
    background: none;
    border: none;
    padding: 4px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s;
    display: block;
}

@media (max-width: 768px) {
    nav {
        padding: 20px 24px;
    }

    nav.scrolled {
        padding: 14px 24px;
    }

    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    #hero {
        padding: 100px 24px 60px;
    }

    .hero-deco {
        display: none;
    }

    #proyectos,
    #sobre-mi,
    #lo-que-hago,
    #contacto {
        padding: 80px 24px;
    }

    .dark-block,
    #frase.dark-block {
        padding: 80px 24px;
    }

    footer {
        padding: 24px;
    }

    .dark-block-stats {
        gap: 24px;
    }

    .contact-right {
        padding: 32px 24px;
    }
}

/* ===== STAR SVG ===== */
.star-svg {
    position: absolute;
    pointer-events: none;
    animation: rotateStar 8s linear infinite;
}

@keyframes rotateStar {
    to {
        transform: rotate(360deg);
    }
}

/* ===== GRADIENT TEXT ===== */
.gradient-text {
    background: linear-gradient(135deg, var(--orange), var(--pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== CONTENEDORES XL ===== */
.section-header,
.filter-tabs,
.masonry-grid,
.about-grid,
.skills-cloud,
.software-grid,
.contact-grid,
.project-detail-container {
    max-width: 1500px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== PROJECT DETAIL PAGE ===== */
.project-detail-hero {
    padding-top: 160px;
    padding-bottom: 80px;
    background: var(--bg);
    position: relative;
}

/* Decorative blobs — same style as index hero */
.project-detail-hero::before,
.project-detail-hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
    animation: blobDrift 10s ease-in-out infinite;
}

.project-detail-hero::before {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 107, 61, 0.10), transparent 70%);
    top: -120px;
    right: -80px;
}

.project-detail-hero::after {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(233, 78, 119, 0.08), transparent 70%);
    bottom: 10%;
    left: -60px;
    animation-delay: -4s;
}

/* Back link */
.project-back-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-family: 'League Spartan', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 60px;
    transition: color 0.3s ease, gap 0.3s ease;
}

.project-back-link:hover {
    color: var(--orange);
    gap: 14px;
}

.project-detail-header {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.project-detail-category {
    font-family: 'League Spartan', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.25rem;
    text-transform: uppercase;
    color: var(--orange);
    display: flex;
    align-items: center;
    gap: 12px;
}

.project-detail-category::before {
    content: '';
    width: 28px;
    height: 2px;
    background: var(--orange);
}

.project-detail-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(4.5rem, 10vw, 8rem);
    line-height: 0.9;
    letter-spacing: 0.02em;
    background: linear-gradient(135deg, var(--text) 60%, var(--orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.project-detail-main-img {
    width: 100%;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.12);
    margin-bottom: 80px;
    position: relative;
    z-index: 2;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.project-detail-main-img:hover {
    transform: scale(1.01);
}

.project-detail-main-img img {
    width: 100%;
    height: auto;
    display: block;
}

.project-detail-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 80px;
    margin-bottom: 100px;
    position: relative;
    z-index: 2;
}

@media (max-width: 900px) {
    .project-detail-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.project-info-sidebar {
    position: sticky;
    top: 120px;
    height: fit-content;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 24px;
    padding: 36px 28px;
    border: 1px solid rgba(255, 107, 61, 0.08);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.04);
}

.info-item {
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.info-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.info-label {
    font-family: 'League Spartan', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--orange);
    margin-bottom: 8px;
}

.info-value {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text);
}

.project-main-text h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    margin-bottom: 20px;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    gap: 14px;
}

.project-main-text h3::before {
    content: '✦';
    font-size: 0.6rem;
    color: var(--orange);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 107, 61, 0.08);
    flex-shrink: 0;
}

.project-main-text p {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--text-muted);
    margin-bottom: 48px;
}

.project-main-text section {
    padding-bottom: 8px;
}

.behance-link-section {
    margin-top: 60px;
    padding: 44px;
    background: linear-gradient(135deg, rgba(255, 107, 61, 0.04), rgba(233, 78, 119, 0.04));
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid rgba(255, 107, 61, 0.1);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.behance-link-section:hover {
    border-color: rgba(255, 107, 61, 0.25);
    box-shadow: 0 12px 40px rgba(255, 107, 61, 0.08);
}

@media (max-width: 600px) {
    .behance-link-section {
        flex-direction: column;
        text-align: center;
        gap: 24px;
        padding: 32px 24px;
    }
}

/* ===== PROJECT NAVIGATION ===== */
.project-nav {
    display: flex;
    justify-content: space-between;
    padding: 60px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    gap: 20px;
}

.project-nav-item {
    text-decoration: none;
    color: var(--text);
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 28px 32px;
    border-radius: 20px;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    flex: 1;
    max-width: 48%;
    background: transparent;
}

.project-nav-item:hover {
    background: var(--white);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    transform: translateY(-4px);
}

.project-nav-item.next {
    text-align: right;
    margin-left: auto;
}

.project-nav-item .nav-label {
    font-family: 'League Spartan', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.project-nav-item .nav-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.8rem;
    transition: color 0.3s ease;
}

.project-nav-item:hover .nav-title {
    color: var(--orange);
}

@media (max-width: 600px) {
    .project-detail-hero {
        padding-top: 120px;
    }

    .project-detail-content {
        gap: 32px;
    }

    .project-info-sidebar {
        padding: 24px 20px;
    }

    .project-nav {
        flex-direction: column;
    }

    .project-nav-item {
        max-width: 100%;
    }
}