/*
Theme Name: Base
Theme URI: https://www.invbit.com
Author: Base
Author URI: https://www.invbit.com
Description: Base para Betheme
Template: betheme
Version: 1.6.2
*/

@import './css/variables.css';

@view-transition {
    navigation: auto;
}

@font-face {
    font-family: 'buena-senal';
    src: url('./resources/fonts/agdasima/agdasima-700.woff') format('woff'),
        url('./resources/fonts/agdasima/agdasima-700.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Share Tech Mono';
    font-style: normal;
    font-display: swap;
    font-weight: 400;
    src: url(https://cdn.jsdelivr.net/fontsource/fonts/share-tech-mono@latest/latin-400-normal.woff2) format('woff2'), url(https://cdn.jsdelivr.net/fontsource/fonts/share-tech-mono@latest/latin-400-normal.woff) format('woff');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --primary: hsl(0, 0%, 0%);
    --secondary: hsl(0, 0%, 100%);
    --shadow-light: hsl(0, 0%, 96%);

    --black-steel: hsl(30, 20%, 3%);
    --mid-gray: hsl(0, 0%, 75%);
    --mate-black: hsl(30, 7%, 12%);
    --soft-gray: hsl(0, 0%, 92%);
    --old-metal: hsl(30, 5%, 28%);
    --yellow-power: hsl(60, 100%, 67%);

    /* HEX Colors */
    --primary-hex: #EA4A3C;
    --secondary-hex: #fff;
    --shadow-light-hex: #f5f5f5;
    --black-steel-hex: #080706;
    --mate-black-hex: #1E1E20;
    --mid-gray-hex: #BFBFBF;
    --soft-gray-hex: #EAEAEA;
    --old-metal-hex: #454546;
    --yellow-power-hex: #FFFF56;

    --radius: 4px;
    --radius-lg: 1.5rem;

    --font-primary: "buena-senal", "Space mono", sans-serif;
}

/* Text Color Classes */
.text-black-steel {
    color: var(--black-steel);
}

.text-mid-gray {
    color: var(--mid-gray);
}

.text-mate-black {
    color: var(--mate-black);
}

.text-soft-gray {
    color: var(--soft-gray);
}

.text-old-metal {
    color: var(--old-metal);
}

.text-yellow-power {
    color: var(--yellow-power);
}

.validate_email_against_bot {
    display: none;
}

.text-primary {
    font-family: var(--font-primary);

    :is(h1, h2, h3, h4, h5, h6) {
        font-family: var(--font-primary);
    }
}

#Content {
    &.is-top {
        z-index: 9999;
    }
}

body #cmplz-manage-consent .cmplz-manage-consent {
    background-image: url(imagenes/fondo-ajustes.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100%;
    right: unset !important;
    left: 0px;
    font-size: 0px;
    color: var(--negro) !important;
    width: 140px;
    background-color: transparent !important;
    box-shadow: unset !important;
    bottom: -2px !important;
    padding: 0 !important;
}

body #cmplz-manage-consent .cmplz-manage-consent:before {
    content: "";
    background-image: url(imagenes/icono-ajustes.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100%;
    width: 28px;
    height: 28px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.8s ease;
    -webkit-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    -o-transform: translate(-50%, -50%);
    -webkit-transition: all 0.8s ease;
    -moz-transition: all 0.8s ease;
    -ms-transition: all 0.8s ease;
    -o-transition: all 0.8s ease;
}

body #cmplz-manage-consent .cmplz-manage-consent:hover:before {
    transform: translate(-50%, -54%);
    -webkit-transform: translate(-50%, -54%);
    -moz-transform: translate(-50%, -54%);
    -ms-transform: translate(-50%, -54%);
    -o-transform: translate(-50%, -54%);
}

/* Arregla padding al abrir popup deshabilitando scroll de la web */
html.mfn-popup-browser-scroll-disabled {
    padding-right: 0;
}


/*********************************\
            COPYRIGHT
\*********************************/
body #Footer .copyright a:hover {
    text-decoration: none;
}

body #Footer .footer_copy {
    border: 0;
    background: black;
    color: white;
}

body #Footer .footer_copy a {
    color: white;
}

body #Footer .footer_copy a:hover {
    color: var(--black-steel);
}

body #Footer .footer_copy .one {
    --mfn-column-gap-bottom: 15px;
    padding-top: 15px;
    margin-bottom: 0;
}

body #Footer .footer_copy .mcb-column-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

body #Footer .menu {
    list-style: none;
    padding: 0;
    background: none;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
}

body #Footer .copyright .menu {
    gap: 0 10px;
    flex-direction: row;
}

body #Footer .menu li:after {
    content: none;
}

body #Footer .menu a {
    padding: 5px 0;
}

body #Footer .footer_copy .copyright {
    font-size: 14px;
    line-height: 1.3;
    letter-spacing: .02em;
    float: none;
    text-align: left;
}

body #Footer .footer_copy .copyText {
    margin: 0 0 5px;
}

body #Footer .footer_copy .social {
    line-height: 0;
}

body #Footer .footer_copy .social li a {
    font-size: 22px;
    line-height: 1;
}

@media only screen and (max-width: 959px) {
    body .animate {
        animation-delay: 0ms !important;
    }

    body #Footer .footer_copy .mcb-column-inner {
        flex-direction: column;
    }

    body #Footer .copyright .menu {
        justify-content: center;
    }

    body #Footer .footer_copy .copyright {
        text-align: center;
    }

    body #Footer .footer_copy .social {
        margin-top: 15px;
    }
}


/*********************************\
            KIT DIGITAL
\*********************************/
body #Footer .footer_action {
    background: none;
}

body #Footer .footer_action .one {
    margin-bottom: 0;
}

body #Footer .footer_action .financiacion {
    display: grid;
    grid-template-columns: 1fr 1fr 5fr;
    gap: 20px;
    text-align: left;
    align-items: center;
}

body #Footer .footer_action .financiacion>div {
    line-height: 0;
}

body #Footer .footer_action .financiacion>div img {
    max-height: 50px;
    width: auto;
}

body #Footer .footer_action .financiacion>div p {
    font-size: 13px;
    line-height: 15px;
    margin-bottom: 0;
}

@media only screen and (max-width: 959px) {
    body #Footer .footer_action .financiacion {
        grid-template-columns: 1fr 1fr;
        text-align: center;
        gap: 5px;
    }

    body #Footer .footer_action .financiacion>div:last-child {
        grid-column: 1 / span 2;
    }
}

@media only screen and (max-width: 767px) {
    body #Footer .footer_action .financiacion>div img {
        max-height: unset;
        width: 100%;
    }
}

body #pojo-a11y-toolbar .pojo-a11y-toolbar-overlay p.pojo-a11y-toolbar-title {
    line-height: 1.2;
}

/*********************************\
            TYPOGRAPHY
\*********************************/

.section-title {
    :is(h1, h2, h3, h4, h5, h6) {
        display: flex;
        flex-wrap: nowrap;
        flex-direction: row;
        justify-content: center;
        gap: 2px;
        font-family: var(--font-primary);
        letter-spacing: 0.07em;
        text-transform: lowercase;
        font-size: clamp(1rem, 7vw, 5rem);
        line-height: 1.05;
        word-break: break-word;
        opacity: 0;

        .letter {
            --size: 100%;
            opacity: 0;
            display: flex;
            justify-content: center;
            transition: all 0.3s ease;
            transform-origin: center;
            animation-delay: var(--delay, 0s);
            text-transform: uppercase;
            display: inline-block;
            line-height: 1;
            width: var(--size);
            height: var(--size);
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 4px;
            padding: 8px;
            transition: all 0.3s ease;
            border-radius: var(--radius);
            background-color: var(--bg, var(--black-steel));
            color: var(--color, var(--secondary));
            letter-spacing: 0;

            @media (width >=768px) {
                --size: 4rem;
            }

            @media (width >=1024px) {
                --size: 6rem;
            }
        }
    }

    &.is-white {
        .letter {
            --bg: #fff;
            --color: var(--black-steel);
        }
    }


}

/* Letter Animation Styles */
.section-title-letters {
    opacity: 1;

    &.animate {
        opacity: 1;
    }

    .letter {
        animation: letterBounce 0.6s ease forwards;
    }

    .letter-space {
        display: inline-block;
        width: 0.2em;
        animation: letterBounce 0.6s ease forwards;
        animation-delay: var(--delay, 0s);
        opacity: 0;
    }
}

@keyframes letterBounce {
    0% {
        transform: translateY(-1.5rem);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

:is(h1, h2, h3, h4, h5, h6) {
    a {
        word-break: break-word;
    }
}

/*********************************\
        PROYECTO SINGLE
\*********************************/
body:is(.single-proyectos, .post-type-archive-proyectos, .post-type-archive-partners, .post-type-archive-profesionales, .post-type-archive-proveedores) {
    #Subheader {
        display: none;
    }

    #Content {
        padding-top: 0;
        background-color: var(--blackack--black-steel);

        @media (width >=800px) {
            padding-top: 4rem;
        }
    }
}

ul.projects-vertical-list__meta {
    --gap: 1rem;
    display: grid;
    gap: var(--gap);
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    list-style: none;
    padding: 0;
    margin: 0;

    .projects-vertical-list__field {
        --padding-top: 1rem;
        margin: 0;
        border-top: 1px solid #fff;
        padding-top: var(--padding-top);
        display: flex;
        flex-direction: column;
        justify-content: space-between;

        .projects-vertical-list__year {
            display: block;

            &:not(:last-child) {
                margin-bottom: .7rem;
            }
        }

        .projects-vertical-list__year-range {
            font-weight: 700;
        }
    }

    .projects-vertical-list__label {
        font-weight: 700;
        text-transform: uppercase;
        color: #fff;
        font-size: clamp(12px, 1.2vw, 1rem);
    }

    .projects-vertical-list__value {
        margin-top: .5rem;
        display: block;
        font-weight: 400;
        color: #fff;
        flex: 1;
    }
}

.singleProjecGallery {
    --height: auto;
    height: var(--height);
    scrollbar-color: #fff transparent;

    @media (width >=1024px) {
        --height: 80vh;
        overflow: auto;
    }
}

.projects-gallery-vertical {
    --gap: 1rem;
    --columns: 1;
    display: grid;
    gap: var(--gap);
    grid-template-columns: repeat(var(--columns), 1fr);

    .projects-gallery-vertical__image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: var(--radius);
    }
}

#single-project-content {
    font-size: clamp(14px, 1vw, 1rem);
    color: #fff;
}

/*********************************\
        PROYECTO CARD COMPONENT
\*********************************/
.project-item {
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.project-item:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.proyecto-card {
    position: relative;
    height: 100%;
    display: block;
    text-decoration: none;
    color: inherit;
}

.proyecto-card__image {
    position: relative;
    overflow: hidden;
    height: 100%;
    aspect-ratio: 16/12;
}

.proyecto-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.proyecto-card__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    padding: 20px;
}

.proyecto-card__content {
    --gap: .5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--gap);
    color: #fff;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.proyecto-card__title {
    font-size: clamp(1.5rem, 2vw, 2rem);
    margin-bottom: 0;
    color: #fff;
    line-height: 1.3;
    font-weight: 700;
    text-transform: uppercase;
}

.proyecto-card__categories {
    font-size: clamp(12px, 1vw, 12px);
    font-weight: 700;
    text-transform: uppercase;
}

.proyecto-card__excerpt {
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
    font-size: 0.9em;
}

.proyecto-card__meta {
    font-size: 0.85em;
    color: #999;
    margin-top: auto;
}

.proyecto-card__meta span {
    margin-right: 15px;
}

.proyecto-card__author-name {
    color: #007cba;
}

.project-item:hover .proyecto-card__overlay {
    background: rgba(0, 0, 0, 0.7);
    opacity: 1;
}

.project-item:hover .proyecto-card__content {
    color: #fff;
    opacity: 1;
}

.project-item:hover .proyecto-card__image img {
    transform: scale(1.05);
}

.proyecto-card__content--no-image {
    background: #fff;
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    color: #333;
}

.proyecto-card__content--no-image .proyecto-card__title a {
    color: #333;
}

.proyecto-card__content--no-image .proyecto-card__title a:hover {
    color: #007cba;
}

.proyecto-card__content--no-image .proyecto-card__categories {
    color: #666;
    margin-bottom: 10px;
}

/* Projects Simple Grid */

.projects-simple-grid {}

.projects-grid-container {
    --gap: .5rem;
    display: grid;
    gap: var(--gap);
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.projects-grid-actions {
    --margin-top: 2rem;
    display: flex;
    justify-content: center;
    margin-top: var(--margin-top);

    @media (width >=768px) {
        --margin-top: 3rem;
    }
}

.projects-simple-grid[data-columns="1"] .projects-grid-container {
    grid-template-columns: 1fr;
}

.projects-simple-grid[data-columns="2"] .projects-grid-container {
    grid-template-columns: repeat(2, 1fr);
}

.projects-simple-grid[data-columns="3"] .projects-grid-container {
    grid-template-columns: repeat(3, 1fr);
}

.projects-simple-grid[data-columns="4"] .projects-grid-container {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 768px) {
    .projects-grid-container {
        grid-template-columns: 1fr;
    }

    .projects-simple-grid[data-columns="2"] .projects-grid-container,
    .projects-simple-grid[data-columns="3"] .projects-grid-container,
    .projects-simple-grid[data-columns="4"] .projects-grid-container {
        grid-template-columns: 1fr;
    }
}

/* Projects Filters Grid */
.projects-filters-grid {
    margin: 20px 0;
}

.projects-filters {
    --margin-bottom: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: var(--margin-bottom);
    justify-content: center;

    @media (width >=768px) {
        --margin-bottom: 3rem;
    }
}

.filter-btn,
.filter-year-btn {
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
    padding: 10px 20px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
}

.filter-btn:hover,
.filter-year-btn:hover {
    background: #fff;
    border-color: #fff;
    color: #000;
}

.filter-btn.active,
.filter-year-btn.active {
    background: #fff;
    border-color: #fff;
    color: #000;
}

.projects-filters-grid[data-columns="1"] .projects-grid-container {
    grid-template-columns: 1fr;
}

.projects-filters-grid[data-columns="2"] .projects-grid-container {
    grid-template-columns: repeat(2, 1fr);
}

.projects-filters-grid[data-columns="3"] .projects-grid-container {
    grid-template-columns: repeat(3, 1fr);
}

.projects-filters-grid[data-columns="4"] .projects-grid-container {
    grid-template-columns: repeat(4, 1fr);
}

.project-item.hidden {
    display: none;
}

.no-results {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-style: italic;
}

@media (max-width: 768px) {
    .projects-filters {
        justify-content: flex-start;
    }

    .filter-btn,
    .filter-year-btn {
        padding: 8px 16px;
        font-size: 13px;
    }

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

    .projects-filters-grid[data-columns="2"] .projects-grid-container,
    .projects-filters-grid[data-columns="3"] .projects-grid-container,
    .projects-filters-grid[data-columns="4"] .projects-grid-container {
        grid-template-columns: 1fr;
    }
}


/*********************************\
        PROVEEDORES CAROUSEL
\*********************************/

.proveedoresCarousel .glide__track {
    overflow: hidden;
    transition: none !important;
    display: flex;
    justify-content: end;
}

.proveedoresCarousel .glide__slides {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    width: max-content;
    flex: none;
}

.proveedoresCarousel .glide__slide {
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: calc(100% / 4);
}

/* Responsive slide widths */
@media (max-width: 1200px) {
    .proveedoresCarousel .glide__slide {
        width: calc(100% / 3);
    }
}

@media (max-width: 768px) {
    .proveedoresCarousel .glide__slide {
        width: calc(100% / 2);
    }
}

@media (max-width: 480px) {
    .proveedoresCarousel .glide__slide {
        width: 100%;
    }
}

/* Proveedor Card Styles */
.proveedor-card,
.partner-card {
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    width: 100%;
    transition: transform 0.3s ease;
}

.proveedor-card:hover,
.partner-card:hover {
    transform: scale(1.05);
}

.proveedor-card__image,
.partner-card__image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.proveedor-card__image a,
.partner-card__image a {
    display: flex;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.proveedor-card__image img,
.partner-card__image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Proveedor Modal Styles */
.proveedor-partner-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.proveedor-partner-modal[hidden] {
    display: none;
}

.proveedor-partner-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.proveedor-partner-modal__dialog {
    position: relative;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    max-width: 520px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.proveedor-partner-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    flex-shrink: 0;
}

.proveedor-partner-modal__title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.proveedor-partner-modal__close {
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    color: #6b7280;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
}

.proveedor-partner-modal__close:hover {
    background: #f3f4f6;
    color: #374151;
}

.proveedor-partner-modal__body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

ul.proveedor-partner-modal__links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: .5rem;
}

li.proveedor-partner-modal__item {
    margin: 0 !important;
}

.proveedor-partner-modal__link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 1rem;
    background: #fff;
    border: 1px solid var(--black-steel);
    color: var(--black-steel);
    text-decoration: none;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius);
    transition: all 0.3s ease;
}

.proveedor-partner-modal__link:hover {
    background: var(--black-steel);
    border-color: var(--black-steel);
    color: var(--yellow-power);
    text-decoration: none;
}

/* Button trigger styles */
.proveedor-card__trigger,
.providers-grid__trigger,
.partners-grid__trigger {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.proveedor-card__trigger:hover,
.providers-grid__trigger:hover,
.partners-grid__trigger:hover {
    text-decoration: none;
    background-color: transparent !important;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .proveedor-partner-modal {
        padding: 0.5rem;
    }

    .proveedor-partner-modal__dialog {
        max-height: 95vh;
    }

    .proveedor-partner-modal__header {
        padding: 1rem 1.25rem;
    }

    .proveedor-partner-modal__title {
        font-size: 1.125rem;
    }

    .proveedor-partner-modal__body {
        padding: 1.25rem;
    }

    .proveedor-partner-modal__link {
        padding: 1rem;
        font-size: 1rem;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .proveedor-partner-modal__dialog {
        background: #1f2937;
        color: #f9fafb;
    }

    .proveedor-partner-modal__header {
        border-bottom-color: #374151;
    }

    .proveedor-partner-modal__title {
        color: #f9fafb;
    }

    .proveedor-partner-modal__close {
        color: #9ca3af;
    }

    .proveedor-partner-modal__close:hover {
        background: #374151;
        color: #d1d5db;
    }

    .proveedor-partner-modal__link {
        background: #374151;
        border-color: #4b5563;
        color: #d1d5db;
    }

    .proveedor-partner-modal__link:hover {
        background: #fff;
        border-color: #fff;
        color: #000;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .proveedor-partner-modal__dialog {
        border: 2px solid #000;
    }

    .proveedor-partner-modal__header {
        border-bottom-width: 2px;
    }

    .proveedor-partner-modal__link {
        border-width: 2px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {

    .proveedor-partner-modal__close,
    .proveedor-partner-modal__link {
        transition: none;
    }
}


/*********************************\
        MODAL 3D ANIMATION
\*********************************/

#bs-3d-modal {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    backdrop-filter: blur(0px);
    z-index: 10000;
    transition: right 0.3s ease, background 0.3s ease, backdrop-filter 0.3s ease;
    display: flex;
    justify-content: flex-end;
    color: white;
    font-family: 'Space Mono', monospace;
    pointer-events: none;
    visibility: hidden;
}

#bs-3d-modal.show {
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(20px);
    pointer-events: auto;
    visibility: visible;
}

#bs-3d-modal .modal-content {
    --padding: 10rem 3rem;
    text-align: left;
    max-width: 550px;
    height: 100%;
    padding: var(--padding);
    background: var(--mate-black);
    transform: translateX(100%);
    transition: transform 0.5s ease;
    overflow: auto;
    box-sizing: border-box;
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);

    hr {
        --margin: 2rem 0;
        border-top: 1px solid #fff;
        margin: var(--margin);
    }
}

#bs-3d-modal.show .modal-content {
    transform: translateX(0);
}

#bs-3d-modal #modal-letter {
    font-size: clamp(1.5rem, 7vw, 5rem);
    font-weight: 400;
    font-family: "Share Tech Mono", "Space mono", sans-serif;
    line-height: 1;
    color: #fff;
    text-transform: uppercase;
    display: flex;
    border: 2px solid #fff;
    border-radius: 8px;
    padding: .5rem;
    width: 6rem;
    height: 6rem;
    text-align: center;
    align-items: center;
    justify-content: center;
}

#bs-3d-modal #modal-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    margin-bottom: 30px;
    color: #fff;
    max-width: 60%;
    text-transform: uppercase;
    line-height: 1.2;
}

#bs-3d-modal #modal-description {
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.6;
    color: #fff;
}

#bs-3d-modal #modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: 2px solid #fff;
    color: #fff;
    padding: 10px 20px;
    font-family: 'Space Mono', monospace;
    cursor: pointer;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s ease;
}

#bs-3d-modal #modal-close:hover {
    background: #fff;
    color: #000;
}

/* Responsive modal */
@media (max-width: 768px) {
    #bs-3d-modal #modal-letter {
        font-size: 80px;
    }

    #bs-3d-modal #modal-title {
        font-size: 24px;
    }

    #bs-3d-modal #modal-description {
        font-size: 16px;
    }

    #bs-3d-modal .modal-content {
        padding: 20px;
    }
}

/*********************************\
    MAIN HEADER
\*********************************/
html.mfn-header-tmpl-burger-sidebar-opened {
    overflow: auto;
}

#mfn-header-template {
    .mfn-header-tmpl-menu-sidebar {
        --max-width: 1420px;
        --padding: 2rem;
        --right: 0;
        padding: var(--padding) 0;
        width: 100%;
        max-width: var(--max-width);
        left: 0;
        background-color: transparent;
        z-index: 999;
        right: 0;
        justify-content: flex-end;

        .mfn-header-tmpl-menu-sidebar-wrapper {
            --max-width: 400px;
            max-width: var(--max-width);
            width: 100%;
            padding: 0;
            margin-left: auto;

            .mfn-header-menu {
                display: flex;
                flex-direction: column;
                gap: 10px;
            }

            .mfn-menu-link {
                border: 1px solid rgba(255, 255, 255, 0.3);
                background-color: rgba(0, 0, 0, 0.6);
                backdrop-filter: blur(4px);
                color: #fff;
                text-transform: uppercase;
                font-size: clamp(1rem, 1.2vw, 1.4rem);
                font-weight: 700;
                letter-spacing: 0.05em;
                padding: 10px 2rem;
                border-radius: 4px;
                transition: all 0.3s ease;

                &:hover {
                    background: #fff;
                    color: #000;
                }
            }
        }

        #menu-main-menu {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }
    }
}

.mfn-bring-to-front {
    &::after {
        background-color: rgba(0, 0, 0, 0.4);
        backdrop-filter: blur(4px);
        width: 100lvw;
        height: 100lvh;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 0;
        content: "";
        pointer-events: none;
    }
}

.mainLogo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;

    &:hover {
        text-decoration: none;

        .mainLogo__title {

            span {
                --border-color: #fff;
                --background-color: #fff;
                --color: #000;
            }
        }
    }

    .mainLogo__title {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 1px;

        span {
            --size: 2.2rem;
            --border-color: rgba(255, 255, 255, 0.7);
            --background-color: rgba(0, 0, 0, 0.6);
            --color: #fff;
            font-family: "Share Tech Mono", "Space mono", sans-serif;
            font-size: clamp(1rem, 1.2vw, 1.6rem);
            text-transform: uppercase;
            letter-spacing: 0.05em;
            font-weight: 400;
            line-height: 1;
            color: var(--color);
            background-color: var(--background-color);
            border: 1px solid var(--border-color);
            width: var(--size);
            height: var(--size);
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 4px;
            padding: 8px;
            transition: color 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
        }
    }

    .mainLogo__subtitle {
        font-size: 0.6em;
        margin-top: 0.2em;
        font-family: "space mono", sans-serif;
        font-size: 0.8rem;
        letter-spacing: 0.8em;
        text-transform: uppercase;
        line-height: 1;
        color: #fff;
    }
}

/*********************************\
    COVER STYLES
\*********************************/
.mainMenuCover {
    ul {
        --margin-top: 1rem;
        list-style: none;
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        align-items: center;
        justify-content: center;
        margin: 0;
        margin-top: var(--margin-top);

        @media (width >=768px) {
            --margin-top: 2rem;
        }

        li {
            margin: 0;
        }

        a {
            --padding: .5rem 1.5rem;
            color: #fff;
            display: block;
            border: 2px solid #fff;
            border-radius: 4px;
            padding: var(--padding);
            font-size: clamp(14px, 1vw, 1.4rem);
            text-decoration: none;
            transition: all 0.3s ease;
            text-transform: uppercase;
            font-weight: 700;
            letter-spacing: 0.05em;
            background-color: transparent;

            @media (width >=768px) {
                --padding: 10px 2rem;
            }

            &:hover {
                background: #000;
                border-color: #000;
                color: #fff;
            }
        }
    }
}

/*********************************\
    HEADER SCROLL BEHAVIOR
\*********************************/
/* Hide header on homepage by default */
.home #mfn-header-template {
    transform: translateY(-100%);
    opacity: 0;
}

/* Ensure header is visible on other pages */
body:not(.home) #mfn-header-template {
    transform: translateY(0);
    opacity: 1;
}

/* ========================================
   PROFESIONALES CARDS STYLES
   ======================================== */

/* Grid Layout */
.profesionales-grid {
    --cols: 1;
    --gap: .5rem;
    display: grid;
    gap: var(--gap);
    grid-template-columns: repeat(var(--cols), 1fr);

    @media (width >=768px) {
        --cols: 3;
    }

    @media (width >=1024px) {
        --cols: 4;
    }
}

/* Card Styles */
.profesional-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profesional-item:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.profesional-card {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
    position: relative;
    z-index: 2;
}

.profesional-card:hover {
    text-decoration: none;
    color: inherit;
}

/* Image Container */
.profesional-card__image {
    --max-height: 250px;
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    height: auto;
    max-height: var(--max-height);
    overflow: hidden;
    border-radius: var(--radius);

    @media (width >=768px) {
        --max-height: 400px;
    }
}

.profesional-card__img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.profesional-item:hover .profesional-card__img {
    transform: scale(1.02);
}


/* Overlay */
.profesional-card__overlay {
    --padding: 1rem;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.1) 0%,
            rgba(0, 0, 0, 0.3) 50%,
            rgba(0, 0, 0, 0.7) 100%);
    display: flex;
    align-items: flex-end;
    padding: var(--padding);
    opacity: 1;
    transition: opacity 0.3s ease;
    z-index: 1;

    @media (width >=768px) {
        --padding: 1.5rem;
    }
}

/* Content */
.profesional-card__content {
    width: 100%;
    text-align: left;
}

.profesional-card__content--no-image {
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 8px;
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Name Styles */
.profesional-card__name {
    margin: 0;
    font-size: clamp(1.5rem, 2vw, 2rem);
    font-weight: 700;
    line-height: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-transform: uppercase;
    color: #fff;
}

.profesional-card__content--no-image .profesional-card__first-name,
.profesional-card__content--no-image .profesional-card__last-name {
    color: #333;
}

/* Job Title */
.profesional-card__job {
    margin-top: 0.5rem;
    font-size: clamp(12px, 1vw, 14px);
    font-weight: 400;
    color: #fff;
    opacity: 1;
    line-height: 1.3;
    text-transform: uppercase;
}

.profesional-card__content--no-image .profesional-card__job {
    color: #666;
}

/* Empty State */
.profesionales-grid__empty,
.profesionales-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: #666;
    font-size: 1.1rem;
}

/* Shortcode Container */

/* Pagination */
.profesionales-pagination {
    margin-top: 3rem;
    text-align: center;
}

.profesionales-pagination .page-numbers {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    background: #f8f9fa;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.profesionales-pagination .page-numbers:hover,
.profesionales-pagination .page-numbers.current {
    background: #007cba;
    color: #fff;
}

/* Loading States */
.profesionales-filters__loading {
    text-align: center;
    padding: 3rem;
}

.profesionales-filters__spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/*********************************\
    SOCIAL
\*********************************/

#footerSocial {
    ul {
        --gap: 6px;
        margin: 0;
        padding: 0;
        list-style: none;
        display: flex;
        flex-wrap: wrap;
        gap: var(--gap);
        align-items: center;
        justify-content: center;

        li {
            margin: 0;
        }

        a {
            --size: 2rem;
            border-radius: 9999px;
            padding: 2px;
            background-color: #fff;
            color: #000;
            display: flex;
            align-items: center;
            justify-content: center;
            width: var(--size);
            height: var(--size);
            transition: all 0.3s ease;

            &:hover {
                background-color: #eee;
                color: #000;
            }

            svg {
                --size: 20px;
                width: var(--size);
            }
        }
    }
}

/*********************************\
    BUTTON STYLES
\*********************************/

/* Base Button */
.button {
    --padding: 12px 24px;
    --border-radius: 4px;
    --font-size: 1rem;
    --font-weight: 700;
    --text-transform: uppercase;
    --letter-spacing: 0.05em;
    --transition: all 0.3s ease;

    display: inline-block;
    padding: var(--padding);
    border-radius: var(--border-radius);
    font-size: var(--font-size);
    font-weight: var(--font-weight);
    text-transform: var(--text-transform);
    letter-spacing: var(--letter-spacing);
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    background: transparent;
    color: #333;
    min-width: 120px;

    &:hover {
        text-decoration: none;
    }
}

/*********************************\
    CONTACT FORM 7 STYLES
\*********************************/
.wpcf7-form {

    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="url"],
    input[type="number"],
    textarea {
        width: 100%;
        border: none;
        border-bottom: 1px solid color-mix(in srgb, var(--blackack--black-steel) 30%, transparent);
        background: transparent;
        padding: 0.75rem 0;
        font-size: clamp(14px, 1vw, 1.2rem);
        font-weight: 700;
        outline: none;
        transition: border-color 0.3s ease;
        box-shadow: none;
        color: var(--blackack--black-steel);

        &::placeholder {
            font-weight: 700;
            color: #666;
        }

        &:focus {
            border-bottom-color: var(--blackack--black-steel);
        }

        &:focus::placeholder {
            color: #999;
        }
    }

    textarea {
        resize: vertical;
        min-height: 120px;
    }

    a {
        text-decoration: underline;
        font-weight: 700;
    }

    .cf7-footer {
        --margin-top: 1rem;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-top: var(--margin-top);

        @media (width >=768px) {
            --margin-top: 2rem;
        }
    }

    .wpcf7-submit {
        margin-top: 1rem;
        border: 1px solid var(--blackack--black-steel);
        border-radius: var(--radius);
        padding: 0.5rem 2.5rem;
        font-size: clamp(1rem, 1.2vw, 1.2rem);
        font-weight: 700;
        text-transform: uppercase;
        color: var(--blackack--black-steel);
        background: transparent;
        transition: all 0.3s ease;

        &:hover {
            background: var(--blackack--black-steel);
            color: #fff;
        }

        .button_label {
            display: flex;
            gap: .3rem;
            align-items: center;
            justify-content: center;
        }

        svg {
            --size: 1.5rem;
            width: var(--size);
            height: var(--size);
        }
    }
}

/*********************************\
    CONTACT PAGE
\*********************************/
#contactPageSocial {
    .social {
        --gap: .5rem;
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: row;
        gap: var(--gap);
        align-items: center;
        justify-content: flex-start;

        @media (width >=1024px) {
            --gap: 1rem;
        }
    }

    .social a {
        --size: 3rem;
        --font-size: 1rem;
        font-size: var(--font-size);
        padding: 0;
        line-height: 1;
        color: #fff;
        background-color: var(--blackack--black-steel);
        width: var(--size);
        height: var(--size);
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        transition: all 0.3s ease;

        @media (width >=1024px) {
            --size: 4rem;
            --font-size: 2rem;
        }

        &:hover {
            background-color: color-mix(in srgb, var(--blackack--black-steel) 50%, transparent);
            color: #fff;
        }
    }
}

@media only screen and (max-width: 959px) {
    #contactPageSocial .social {
        margin-top: 15px;
    }
}

.form-legal {
    font-size: 10px;
    line-height: 1.3;
}

/* Button Border */
.button--white {
    background: #fff;
    color: #000;
    border-color: #fff;
}

.button--white:hover {
    background: #000;
    color: #fff;
    border-color: #000;
}

.button--border {
    background: transparent;
    color: #333;
    border-color: #333;
}

.button--border:hover {
    background: #333;
    color: #fff;
    border-color: #333;
}

/* Button Border White */
.button--border-white {
    background: transparent;
    color: #fff;
    border-color: #fff;
}

.button--border-white:hover,
.button--border-white:hover:before {
    background: #fff;
    color: #000;
    border-color: #fff;
}

.button--border-primary {
    background: transparent;
    color: var(--blackack--black-steel);
    border-color: var(--blackack--black-steel);
}

.button--border-primary:hover,
.button--border-primary:hover:before {
    background: var(--blackack--black-steel);
    color: var(--secondary);
    border-color: var(--blackack--black-steel);
}

/*********************************\
    RELATED PROJECTS SLIDER
\*********************************/
.related-projects-slider__header {
    --padding: 0 1rem 1rem 1rem;
    --margin: 0 auto 1rem auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1280px;
    padding: var(--padding);
    margin: var(--margin);
    position: relative;

    @media (width >=768px) {
        --padding: 0 1.5rem 1.5rem 1.5rem;
        --margin: 0 auto 2rem auto;
    }

    &::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100vw;
        max-width: calc(100vw - ((100vw - 1280px) / 2));
        height: 1px;
        background: rgba(0, 0, 0, 0.1);
    }
}

.related-projects-slider__title {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin: 0;
    text-transform: uppercase;
}

.related-projects-slider__controls {
    display: flex;
    gap: 0.5rem;
}

.related-projects-slider__arrow {
    border: none;
    color: #000;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    font-size: 1.5rem;
    padding: 4px;
    background: transparent;
}

.related-projects-slider__arrow:hover {
    background: #000;
    transform: scale(1.1);
}

.related-projects-slider__arrow:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Glide Slider Container */
.related-projects-slider .glide {
    --margin-bottom: 1rem;
    margin-bottom: var(--margin-bottom);

    @media (width >=768px) {
        --margin-bottom: 2rem;
    }
}

.related-projects-slider .glide__slide {
    flex: 0 0 auto;
    height: auto;
}

.related-projects-slider__item {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.related-projects-slider__footer {
    text-align: left;
    padding: 0 1rem;
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
}

/* Glide Slider Overrides */

.related-projects-slider .glide__slides {
    --padding-left: 1rem;
    margin: 0 -0.75rem;
    list-style: none;
    padding-left: var(--padding-left);

    @media (width >=768px) {
        --padding-left: 1.5rem;
    }
}

.related-projects-slider .glide__slide>div {
    height: 100%;
}

/*********************************\
    FOOTER
\*********************************/

#footerCustomButton {
    .button {
        padding-right: 5rem;
    }

    .button_icon {
        background-color: #fff;
        position: absolute;
        right: 0;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 1rem;
        top: 0;
    }
}

/* ==========================================================================
   LENIS SMOOTH SCROLL CUSTOM STYLES
   ========================================================================== */

/* Lenis core styles */
html.lenis,
html.lenis body {
    height: auto;
}

.lenis:not(.lenis-autoToggle).lenis-stopped {
    overflow: clip;
}

.lenis [data-lenis-prevent],
.lenis [data-lenis-prevent-wheel],
.lenis [data-lenis-prevent-touch] {
    overscroll-behavior: contain;
}

.lenis.lenis-smooth iframe {
    pointer-events: none;
}

.lenis.lenis-autoToggle {
    transition-property: overflow;
    transition-duration: 1ms;
    transition-behavior: allow-discrete;
}

/* Ensure smooth scroll works properly */
html.lenis {
    scroll-behavior: auto !important;
}

/* Custom scrollbar for all browsers */
html.lenis {
    scrollbar-width: thin;
    scrollbar-color: #000000 transparent;
}

/* Webkit scrollbar customization */
html.lenis::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

html.lenis::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 4px;
}

html.lenis::-webkit-scrollbar-thumb {
    background: #000000;
    border-radius: 4px;
    transition: all 0.3s ease;
}

html.lenis::-webkit-scrollbar-thumb:hover {
    background: #333333;
    transform: scale(1.1);
}

html.lenis::-webkit-scrollbar-thumb:active {
    background: #666666;
}

html.lenis::-webkit-scrollbar-corner {
    background: transparent;
}

/* Additional smooth scroll enhancements */
.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: auto;
}

/* Scroll indicator styles */
.lenis-scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #000000 0%, #000000 100%);
    transform-origin: left;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.lenis-scrolling .lenis-scroll-indicator {
    opacity: 1;
}

/* Mobile scrollbar adjustments */
@media (max-width: 768px) {
    html.lenis::-webkit-scrollbar {
        width: 4px;
        height: 4px;
    }

    .lenis-scroll-indicator {
        height: 2px;
    }
}

/* Dark mode scrollbar support */
@media (prefers-color-scheme: dark) {
    html.lenis {
        scrollbar-color: #ffffff transparent;
    }

    html.lenis::-webkit-scrollbar-thumb {
        background: #ffffff;
    }

    html.lenis::-webkit-scrollbar-thumb:hover {
        background: #cccccc;
    }

    .lenis-scroll-indicator {
        background: linear-gradient(90deg, #ffffff 0%, #ffffff 100%);
    }
}

/* Single Project Gallery Lenis Smooth Scroll */
.singleProjecGallery {
    --max-height: auto;
    --height: auto;
    overflow: hidden;
    position: relative;
    height: var(--height);
    max-height: var(--max-height);

    @media (width >=1024px) {
        --max-height: 100vh;
        --height: 100vh;
    }
}

.gallery-scroll-container {
    --max-height: auto;
    --height: auto;
    --min-height: auto;
    height: var(--height);
    max-height: var(--max-height);
    min-height: var(--min-height) !important;
    box-sizing: border-box;

    @media (width >=1024px) {
        --max-height: 200vh;
        --height: auto;
        --min-height: 200vh !important;
        padding: 20px;
    }
}

.singleProjecGallery .projects-gallery-vertical__container {
    height: auto;
    min-height: 100%;
}

.singleProjecGallery .projects-gallery-vertical__item {
    margin-bottom: 1rem;
}

.singleProjecGallery .projects-gallery-vertical__item:last-child {
    margin-bottom: 0;
}

/* Contenedor de la barra de scroll personalizada */
.gallery-scroll-bar-container {
    --display: none;
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    width: 4px !important;
    height: 100% !important;
    z-index: 10 !important;
    pointer-events: none !important;
    display: var(--display) !important;

    @media (width >=1024px) {
        --display: block;
    }
}

/* Barra de scroll personalizada para la galería */
.gallery-scroll-bar {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(255, 255, 255, 0.2) !important;
    pointer-events: none !important;
    border-radius: 2px;
}

.gallery-scroll-thumb {
    width: 100% !important;
    background: linear-gradient(180deg, #ffffff 0%, #f0f0f0 100%) !important;
    border-radius: 3px !important;
    transition: all 0.1s ease !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.gallery-scroll-thumb:hover {
    background: linear-gradient(180deg, #ffffff 0%, #e0e0e0 100%) !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4) !important;
}

/* Gallery Lightbox Styles */
.projects-gallery-vertical__link {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.projects-gallery-vertical__link:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.projects-gallery-vertical__link::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    html.lenis::-webkit-scrollbar-thumb {
        background: #000000;
        border: 1px solid #ffffff;
    }

    .lenis-scroll-indicator {
        background: linear-gradient(90deg, #000000 0%, #000000 100%);
        box-shadow: 0 0 2px rgba(255, 255, 255, 0.5);
    }
}

/* ========================================
   PARTNERS GRID SHORTCODE
   ======================================== */
.partners-grid {
    --mt: 2rem;
    width: 100%;
    margin-top: var(--mt);
}

.partners-grid__list {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;

    @media (width >=800px) {
        gap: 4rem;
    }
}

@media (width >=768px) {

    /* tablet */
    .partners-grid__list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (width >=1024px) {

    /* desktop */
    .partners-grid__list {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (width >=1400px) {

    /* large desktop */
    .partners-grid__list {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

.partners-grid__item {
    display: block;
}

.partners-grid__figure {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    min-height: 100px;

    @media (width >=1024px) {
        padding: 1rem;
        height: 100%;
    }
}

.partners-grid__image {
    max-width: 100%;
    height: auto;
    display: block;
    filter: invert(1);
}

.partners-grid__title {
    display: block;
    text-align: center;
    font-size: 14px;
}

/* ========================================
   PROVIDERS GRID SHORTCODE
   ======================================== */
.providers-grid {
    width: 100%;
    margin-top: var(--mt, 2rem);
}

.providers-grid__list {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;

    @media (width >=800px) {
        gap: 4rem;
    }
}

@media (min-width: 640px) {

    /* tablet */
    .providers-grid__list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {

    /* desktop */
    .providers-grid__list {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 1400px) {

    /* large desktop */
    .providers-grid__list {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

.providers-grid__item {
    display: block;
}

.providers-grid__figure {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    min-height: 100px;

    @media (width >=1024px) {
        padding: 1rem;
        height: 100%;
    }
}

.providers-grid__link {
    display: flex;
}

.providers-grid__image {
    max-width: 100%;
    height: auto;
    display: block;
}

.providers-grid__title {
    display: block;
    text-align: center;
    font-size: 14px;
}