:root {
    --primary: #a78bfa;
    --primary-pastel: #c4b5fd;
    --primary-dark: #8b5cf6;
    --secondary: #34d399;
    --secondary-pastel: #6ee7b7;
    --accent: #f472b6;
    --accent-pastel: #f9a8d4;
    --brand-color: #818cf8;
    --brand-dark: #6366f1;
    --bg-dark: #0f172a;
    --text-main: #1e293b;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.15);
}

body,
html {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background-color: #fcfaff;
    color: var(--text-main);
    overflow-x: hidden;
}

/* Global box sizing */
*, *:before, *:after {
    box-sizing: border-box;
}

/* Responsive fix for images and content */
img, video, iframe, canvas {
    max-width: 100%;
    height: auto;
}

a {
    color: white;
}

header {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #333;
    z-index: 1010;
    height: 5em;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

header #logo a {
    font-weight: 600;
    color: var(--brand-color);
    font-size: 1.8em;
    text-decoration: none;
    letter-spacing: -1px;
    font-family: 'Courier New', Courier, monospace;
}

header nav .menubtn {
    display: none;
}

header nav {
    line-height: 5em;
}

header nav ul {
    margin: 0;
    padding: 0;
    display: flex;
}

header nav li {
    list-style: none;
    margin: 0 10px;
    height: 5em;
    transition: all 0.3s ease;
}

header nav li a {
    color: #555;
    text-decoration: none;
    font-weight: 500;
    padding: 0 15px;
    display: block;
    position: relative;
    font-size: 0.95em;
}

header nav li a:after {
    content: '';
    position: absolute;
    bottom: 30%;
    left: 15px;
    right: 15px;
    height: 2px;
    background: var(--brand-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

header nav li:hover a {
    color: var(--brand-color);
}

header nav li:hover a:after {
    transform: scaleX(1);
}

.parallax {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    overflow: hidden;
}

.hero-wrapper {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #0f172a;
}

.background-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.parallax-small {
    /* Full height */
    min-height: 40vh;
}

section.parallax:before {
    opacity: 0.7;
    position: absolute;
    content: '';
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(30, 58, 138, 0.6) 100%);
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

/* Internal Hero variations */
.about-hero {
    background-color: #5b21b6;
}

.work-hero {
    background-color: #047857;
}

.contact-hero {
    background-color: #be185d;
}

.project-detail-hero {
    background-color: #4338ca;
}

.parallax::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulse-bg 8s infinite alternate ease-in-out;
    z-index: 0;
}

@keyframes pulse-bg {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(10%, 10%);
    }
}

#main {
    z-index: 2;
}

#content {
    position: relative;
    top: 0;
    color: #333;
    z-index: 2;
    background: #fdfdfd;
    width: 100%;
    flex-grow: 1;
    padding: 60px 20px;
}

#content ul#workfields {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    padding: 40px 5%;
    margin: 0;
}

#content li {
    list-style: none;
    position: relative;
    margin: 0;
}

/* About View Styles */
.about-view {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    padding: 0 5%;
}

.about-section {
    margin-bottom: 60px;
}

.about-section h2 {
    font-size: 2.2em;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 25px;
    position: relative;
    text-align: left;
}

.about-section h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 60px;
    height: 4px;
    background: var(--brand-color);
    border-radius: 2px;
}

.about-section p {
    font-size: 1.15em;
    line-height: 1.8;
    color: #475569;
    margin-bottom: 20px;
    text-align: left;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-top: 40px;
}

.skill-card {
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
    text-align: center;
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
    border-color: var(--brand-color);
}

.skill-card i {
    font-size: 2em;
    color: var(--brand-color);
    margin-bottom: 15px;
    display: block;
}

.skill-card h3 {
    margin-bottom: 10px;
    font-size: 1.25em;
    color: #1e293b;
}

.skill-card p {
    font-size: 0.95em;
    margin-bottom: 0;
    line-height: 1.5;
    text-align: center;
}

.about-sidebar {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.profile-card {
    background: #fff;
    padding: 40px;
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.profile-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 25px;
    border: 5px solid #f1f5f9;
}

.profile-card h3 {
    font-size: 1.5em;
    margin-bottom: 5px;
}

.profile-title {
    color: var(--brand-color);
    font-weight: 600;
    font-size: 0.95em;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.profile-bio {
    font-size: 1em;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Contact View Styles */
.contact-view {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    padding: 0 5%;
}

.contact-info-panel h2 {
    font-size: 2.5em;
    font-weight: 800;
    margin-bottom: 20px;
    text-align: left;
}

.contact-methods {
    margin: 50px 0;
}

.method-item {
    display: flex;
    gap: 20px;
    margin-bottom: 35px;
    align-items: center;
}

.method-item i {
    width: 60px;
    height: 60px;
    background: #f1f5f9;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    color: var(--brand-color);
}

.method-item h4 {
    margin-bottom: 5px;
    font-size: 1.1em;
    color: #1e293b;
}

.method-item p,
.method-item a {
    color: #64748b;
    text-decoration: none;
    font-size: 1em;
}

.social-contact h4 {
    margin-bottom: 20px;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #94a3b8;
}

.social-pills {
    display: flex;
    gap: 15px;
}

.social-pills a {
    background: #fff;
    padding: 12px 20px;
    border-radius: 12px;
    text-decoration: none;
    color: #1e293b;
    font-weight: 600;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-pills a:hover {
    background: var(--brand-color);
    color: #fff;
    border-color: var(--brand-color);
    transform: translateY(-3px);
}

.contact-form-panel {
    background: #fff;
    padding: 60px;
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
}

.modern-form .input-group {
    margin-bottom: 25px;
}

.modern-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: #1e293b;
    text-align: left;
}

.modern-form input,
.modern-form textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    font-family: inherit;
    font-size: 1em;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.modern-form input:focus,
.modern-form textarea:focus {
    outline: none;
    border-color: var(--brand-color);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1);
}

.modern-form textarea {
    height: 150px;
    resize: none;
}

#content #workfields li {
    position: relative;
    height: 350px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
    background: #fff;
}

#content #workfields li:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

#content #workfields li img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.6s ease;
}

#content #workfields li:hover img {
    transform: scale(1.1);
}

#content #workfields li.hide {
    display: none;
}

#content #workfields li.show {
    display: block;
    animation: fadeInScale 0.4s ease forwards;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

#content li a {
    height: 100%;
    width: 100%;
    display: block;
}

#content li img {
    width: 100%;
    min-height: 100%;
}

figcaption {
    z-index: 2;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

.block-item__bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    background: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 1;
}

#workfields li:hover .block-item__bg {
    opacity: 0.8;
}

.block-item__icon {
    position: absolute;
    bottom: 20px;
    right: 20px;
    padding: 8px 15px;
    background: var(--brand-color);
    color: #fff;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
    z-index: 3;
}

#workfields li:hover .block-item__icon {
    opacity: 1;
    transform: translateX(0);
}

#workfields li:hover .block-item__details {
    -webkit-transform: translateY(-25px);
    -moz-transform: translateY(-25px);
    -ms-transform: translateY(-25px);
    -o-transform: translateY(-25px);
    transform: translateY(-25px);
}

.block-item__details {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 60px 20px 40px;
    z-index: 2;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-align: center;
}

#workfields li:hover .block-item__details {
    transform: translateY(-40px);
}

.block-item__details p {
    margin: 0;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 5px;
}

.block-item__details h3 {
    margin: 0;
    font-size: 1.1em;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

/*Project fields*/
#projectfields {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    padding: 40px 5%;
    margin: 0;
    list-style: none;
    justify-content: center;
}

#projectfields li {
    padding: 0;
    width: calc(50% - 15px);
    vertical-align: top;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

#projectfields li.doublewidth {
    width: 100%;
}

#projectfields li.center div {
    text-align: center;
    padding: 40px;
}

#projectfields li img {
    width: 100%;
    height: auto;
    display: block;
}

#projectfields li div {
    font-size: 1.1em;
    color: #444;
    padding: 30px;
    line-height: 1.7;
}

#projectfields li div h4 {
    text-align: center;
    color: var(--brand-color);
    margin-bottom: 20px;
}

#projectfields li div a {
    text-decoration: none;
    color: #fff;
    font-size: 1em;
    display: inline-block;
    background: var(--brand-color);
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

#projectfields li div a:hover {
    background: var(--brand-dark);
    transform: translateY(-2px);
}

#projectfields li span.in-devel {
    color: #f39c12;
    font-size: 1.2em;
    font-weight: 600;
}

/*End Project fields*/

/*Contact form*/
form {
    width: 100%;
    margin: 0 auto;
    /* border: 1px dashed #888; */
    padding: 30px;
}

form div {
    position: relative;
}

form input,
form textarea {
    -webkit-appearance: none;
    appearance: none;
    background: #ffffff;
    padding: 0.8em;
    border: 1px solid #e0e0e0;
    width: calc(100% - 5.6em);
    border-radius: 8px;
    padding-left: 4em;
    padding-right: 1.6em;
    height: 3em;
    color: #333;
    margin-bottom: 1.6em;
    transition: all 0.3s ease;
}

form textarea {
    padding-top: 1.3em;
    height: 10em;
}

form input:focus,
form textarea:focus {
    outline: none;
    box-shadow: 0px 0px 30px 0px rgba(0, 0, 0, 0.1);
}

::-webkit-input-placeholder {
    /* Chrome/Opera/Safari */
    color: #cbcbcb;
}

::-moz-placeholder {
    /* Firefox 19+ */
    color: #cbcbcb;
}

:-ms-input-placeholder {
    /* IE 10+ */
    color: #cbcbcb;
}

:-moz-placeholder {
    /* Firefox 18- */
    color: #cbcbcb;
}

form i {
    position: absolute;
    font-size: 1.4375em;
    margin-left: 1.1304347826087em;
    top: 15px;
    left: 0;
    color: #444;
}

button,
.btn-action {
    cursor: pointer;
    background: var(--brand-color);
    color: #fff;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    line-height: 28px;
    min-width: 100px;
    outline: 0;
    padding: 10px 25px;
    position: relative;
    display: inline-block;
    transition: all .3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(26, 115, 232, 0.3);
    text-decoration: none;
}

button:hover,
.btn-action:hover {
    background-color: var(--brand-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 115, 232, 0.4);
    color: white;
}

/*end contact form*/

/*Slogans*/
#main {
    position: relative;
    padding-top: 15vh;
    padding-bottom: 8vh;
    color: #fff;
    z-index: 2;
    text-align: center;
    width: 80%;
    margin: 0 auto;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

#main h1 {
    font-size: 3.5em;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -2px;
    color: #fff;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Reduced hero for internal pages */
#main:not(.inicio) {
    padding-top: 120px;
    padding-bottom: 40px;
}

#main:not(.inicio) h1 {
    font-size: 2.5em;
}

#main .highlight {
    color: var(--brand-color);
    background: linear-gradient(120deg, var(--primary-pastel) 0%, var(--accent-pastel) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn-secondary-hero {
    padding: 14px 35px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.05em;
    cursor: pointer;
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary-hero:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

/* Glass Moving Button */
.btn-glass-moving {
    position: relative;
    padding: 2px;
    display: inline-block;
    border-radius: 30px;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.3s ease;
    min-width: 150px;
}

.btn-glass-moving:hover {
    transform: translateY(-3px) scale(1.02);
}

.btn-glass-moving::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg,
            transparent,
            var(--brand-dark),
            var(--brand-color),
            transparent 30%);
    animation: rotate-border 4s linear infinite;
}

@keyframes rotate-border {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.btn-glass-moving .btn-text {
    position: relative;
    display: block;
    padding: 10px 20px;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    border-radius: 28px;
    color: #fff;
    font-weight: 600;
    text-align: center;
    z-index: 1;
}

/* Project View Layout */
.project-view {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 5%;
}

.project-info-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
}

.project-description h2 {
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 25px;
    color: #1e293b;
}

.project-description {
    padding: 0 30px;
}

.description-text {
    font-size: 1.15em;
    line-height: 1.8;
    color: #475569;
}

.project-meta-pills {
    background: #fff;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    height: fit-content;
}

.meta-item {
    margin-bottom: 30px;
}

.meta-item:last-child {
    margin-bottom: 0;
}

.meta-item label {
    display: block;
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #94a3b8;
    font-weight: 700;
    margin-bottom: 12px;
}

.pills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-pill {
    background: #f1f5f9;
    color: #475569;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 600;
}

.project-gallery h3 {
    font-size: 1.8em;
    font-weight: 700;
    margin-bottom: 15px;
    text-align: center;
}

.gallery-info {
    text-align: center;
    color: #64748b;
    margin-bottom: 40px;
}

.gallery-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) !important;
    gap: 20px !important;
    padding: 0 !important;
}

.gallery-item {
    width: 100% !important;
    height: auto !important;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
}

.img-zoom-container {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.zoomable-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.zoomable-img:hover {
    transform: scale(1.1);
}

/* Lightbox simulation with CSS */
.overlay-full {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(15px);
    z-index: 12000;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}

.overlay-full img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

#main.hero-content-simple {
    padding-top: 15vh;
    padding-bottom: 5vh;
}

#main .hero-subtext {
    font-size: 1.25em;
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
    margin: 0 auto 40px;
    font-weight: 400;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-primary,
.btn-secondary {
    padding: 14px 35px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 1.05em;
    cursor: pointer;
    display: inline-block;
}

.btn-primary {
    background: var(--brand-color);
    color: #fff;
    border: none;
    box-shadow: 0 4px 15px rgba(26, 115, 232, 0.3);
}

.btn-primary:hover {
    background: var(--brand-dark);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(26, 115, 232, 0.4);
}

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

.btn-secondary:hover {
    background: rgba(26, 115, 232, 0.05);
    transform: scale(1.05);
}

.languages,
.project-for {
    font-size: 0.9em;
    color: #666;
    margin-top: 10px;
}

.languages strong,
.project-for strong {
    color: #333;
}

.scroll-down {
    display: inline-block;
    margin-top: 30px;
    font-size: 1.5em;
    color: var(--brand-color);
    animation: bounce 2s infinite;
}

@keyframes bounce {

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

    40% {
        transform: translateY(-10px);
    }

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

/* Typewriter Cursor */
.cursor {
    display: inline-block;
    animation: blink-cursor 0.7s infinite;
    color: var(--brand-color);
    font-weight: bold;
    margin-left: 2px;
}

@keyframes blink-cursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}


/*End slogans*/

#filter {
    width: 100%;
    color: #888;
    z-index: 2;
    text-align: center;
    margin-bottom: 30px;
    padding: 0 20px;
}

#filter ul {
    font-size: 0.9em;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

#filter li {
    list-style: none;
    margin: 0;
}

#filter li:after {
    display: none;
}

.filter {
    cursor: pointer;
    border: 1px solid #eee;
    padding: 8px 20px;
    border-radius: 20px;
    background: #fff;
    transition: all 0.3s ease;
    color: #666;
    font-weight: 500;
}

.filter:hover,
.filter.active {
    background: var(--brand-color);
    color: #fff;
    border-color: var(--brand-color);
    box-shadow: 0 4px 10px rgba(26, 115, 232, 0.2);
}

#filter ul.filter-row {
    margin-bottom: 15px;
    justify-content: center;
}

#filter li.separator {
    color: #cbd5e1;
    margin: 0 10px;
    font-size: 1.2em;
    line-height: 36px;
    font-weight: 300;
}

/* Card Status Badge */
.card-status-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 0.7em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    backdrop-filter: blur(8px);
}

.card-status-badge.status-legacy {
    background: rgba(241, 245, 249, 0.95);
    color: #64748b;
}
.card-status-badge.status-development {
    background: rgba(255, 247, 237, 0.95);
    color: #c2410c;
}
.card-status-badge.status-active {
    background: rgba(240, 253, 244, 0.95);
    color: #15803d;
}
.card-status-badge.status-delivered {
    background: rgba(239, 246, 255, 0.95);
    color: #1d4ed8;
}

/* Project Status Pills */
.status-pill {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 600;
}

.status-legacy {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #cbd5e1;
}

.status-development {
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #fdba74;
}

.status-active {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #86efac;
}

.status-delivered {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #93c5fd;
}

.status-default {
    background: #f8fafc;
    color: #475569;
    border: 1px solid #e2e8f0;
}

#loaderback {
    display: none;
    position: fixed;
    z-index: 1012;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.8);
}

#loaderback .loader {
    position: fixed;
    left: calc(50% - 22px);
    top: calc(50% - 22px);
}

#changelog {
    display: none;
    position: fixed;
    top: 10%;
    bottom: 10%;
    left: 15%;
    right: 15%;
    overflow: auto;
    background: white;
    z-index: 1013;
    padding: 0 30px 30px;
}

#changelog>div {
    text-align: center;
}

#changelog #closechangelog {
    position: absolute;
    top: 8px;
    right: 20px;
    cursor: pointer;
}

/*
 * Pure CSS Loader http://www.wifeo.com/code
 */
.contener_general {
    -webkit-animation: animball_two 1s infinite;
    -moz-animation: animball_two 1s infinite;
    -ms-animation: animball_two 1s infinite;
    animation: animball_two 1s infinite;
    width: 44px;
    height: 44px;
    margin: auto;
}

.contener_mixte {
    width: 44px;
    height: 44px;
    position: absolute;
}

.ballcolor {
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

.ball_1,
.ball_2,
.ball_3,
.ball_4 {
    position: absolute;
    -webkit-animation: animball_one 1s infinite ease;
    -moz-animation: animball_one 1s infinite ease;
    -ms-animation: animball_one 1s infinite ease;
    animation: animball_one 1s infinite ease;
}

.ball_1 {
    background-color: #cb2025;
    top: 0;
    left: 0;
}

.ball_2 {
    background-color: #f8b334;
    top: 0;
    left: 24px;
}

.ball_3 {
    background-color: #00a096;
    top: 24px;
    left: 0;
}

.ball_4 {
    background-color: #97bf0d;
    top: 24px;
    left: 24px;
}

@-webkit-keyframes animball_one {
    0% {
        position: absolute;
    }

    50% {
        top: 12px;
        left: 12px;
        position: absolute;
        opacity: 0.5;
    }

    100% {
        position: absolute;
    }
}

@-moz-keyframes animball_one {
    0% {
        position: absolute;
    }

    50% {
        top: 12px;
        left: 12px;
        position: absolute;
        opacity: 0.5;
    }

    100% {
        position: absolute;
    }
}

@-ms-keyframes animball_one {
    0% {
        position: absolute;
    }

    50% {
        top: 12px;
        left: 12px;
        position: absolute;
        opacity: 0.5;
    }

    100% {
        position: absolute;
    }
}

@keyframes animball_one {
    0% {
        position: absolute;
    }

    50% {
        top: 12px;
        left: 12px;
        position: absolute;
        opacity: 0.5;
    }

    100% {
        position: absolute;
    }
}

@-webkit-keyframes animball_two {
    0% {
        -webkit-transform: rotate(0deg) scale(1);
    }

    50% {
        -webkit-transform: rotate(360deg) scale(1.3);
    }

    100% {
        -webkit-transform: rotate(720deg) scale(1);
    }
}

@-moz-keyframes animball_two {
    0% {
        -moz-transform: rotate(0deg) scale(1);
    }

    50% {
        -moz-transform: rotate(360deg) scale(1.3);
    }

    100% {
        -moz-transform: rotate(720deg) scale(1);
    }
}

@-ms-keyframes animball_two {
    0% {
        -ms-transform: rotate(0deg) scale(1);
    }

    50% {
        -ms-transform: rotate(360deg) scale(1.3);
    }

    100% {
        -ms-transform: rotate(720deg) scale(1);
    }
}

@keyframes animball_two {
    0% {
        transform: rotate(0deg) scale(1);
    }

    50% {
        transform: rotate(360deg) scale(1.3);
    }

    100% {
        transform: rotate(720deg) scale(1);
    }
}

/* Fin css loader */

/*Columnas 1*/
@media screen and (max-width: 992px) {
    header nav ul {
        visibility: hidden;
        opacity: 0;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 1000;
        padding: 0;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    header nav ul.mobile-open {
        visibility: visible;
        opacity: 1;
    }

    header nav li {
        display: block !important;
        margin: 20px 0;
    }

    header nav li a {
        font-size: 1.5em;
        color: #fff !important;
    }

    header nav .menubtn {
        position: fixed;
        top: 18px;
        right: 5%;
        z-index: 1001;
        cursor: pointer;
        background: var(--brand-color);
        width: 45px;
        height: 45px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
    }

    #main {
        padding-top: 120px;
        width: 90%;
    }

    #main h1 {
        font-size: 2em;
    }

    #main.inicio h1 {
        font-size: 3em;
    }

    #content #workfields li {
        width: 100%;
        margin-bottom: 20px;
    }

    #projectfields li {
        width: 100%;
    }

    form {
        width: 90%;
    }

    .contact-form-panel {
        padding: 30px;
    }

    .project-info-grid, .about-grid, .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-sidebar {
        position: relative;
        top: 0;
        order: -1; /* Show profile first on mobile */
        margin-bottom: 40px;
    }

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

    #filter ul {
        flex-wrap: wrap;
        overflow-x: visible;
        justify-content: center;
        padding-bottom: 0;
        gap: 16px 8px;
    }

    .filter {
        padding: 6px 12px;
        font-size: 0.85em;
        white-space: normal;
        flex-shrink: 1;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }

    .hero-actions a {
        width: 100%;
    }
}

/* Footer Styles */
footer {
    background: #1a1a1a;
    color: #fff;
    padding: 80px 0 40px;
    margin-top: 0;
    position: relative;
    z-index: 2;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
}

.footer-section h3 {
    font-size: 1.4em;
    font-weight: 700;
    margin-bottom: 25px;
    color: #fff;
    position: relative;
    letter-spacing: -0.5px;
}

.footer-section h3:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 35px;
    height: 3px;
    background: var(--brand-color);
    border-radius: 2px;
}

.footer-section p {
    color: #999;
    line-height: 1.8;
    font-size: 1.05em;
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 15px;
}

.footer-section ul li a {
    color: #999;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1em;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.footer-section ul li a:hover {
    color: var(--brand-color);
    transform: translateX(5px);
}

.footer-section ul li i {
    color: var(--brand-color);
    width: 20px;
}

.social-links {
    margin-top: 30px;
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: #fff !important;
    text-decoration: none;
    font-size: 1.2em;
}

.social-links a:hover {
    background: var(--brand-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(26, 115, 232, 0.3);
}

.footer-bottom {
    max-width: 1200px;
    margin: 60px auto 0;
    padding: 30px 5% 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #666;
    font-size: 0.95em;
}

.footer-bottom p {
    margin: 0;
}

@media screen and (max-width: 992px) {
    .footer-content {
        grid-template-columns: 1.5fr 1fr;
    }
}

@media screen and (max-width: 768px) {
    footer {
        padding: 60px 0 30px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        margin-top: 40px;
    }
}