/* =========================================================
   VIENTOS SONOROS - Proyectos en Movimiento
   Hero principal
   ========================================================= */

.vs-proyectos-hero {
    position: relative;
    width: 100%;
    min-height: 620px;
    display: flex;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
    padding: 120px 24px 100px;
    background-color: #3f3152;
}

/*
 * La imagen de fondo puede asignarse desde Elementor.
 * Este pseudo-elemento añade la superposición para mejorar
 * la legibilidad del contenido.
 */
.vs-proyectos-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        linear-gradient(90deg,
            rgba(35, 26, 46, 0.9) 0%,
            rgba(45, 34, 58, 0.76) 48%,
            rgba(45, 34, 58, 0.34) 100%),
        linear-gradient(180deg,
            rgba(35, 26, 46, 0.12) 20%,
            rgba(35, 26, 46, 0.62) 100%);
}

/* Detalle luminoso decorativo */
.vs-proyectos-hero::after {
    content: "";
    position: absolute;
    top: -180px;
    right: -140px;
    z-index: -1;
    width: 560px;
    height: 560px;
    border-radius: 50%;
    pointer-events: none;
    background: rgba(224, 178, 237, 0.18);
    filter: blur(10px);
}

.vs-proyectos-hero__inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.vs-proyectos-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 22px;
    color: #ffffff !important;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    line-height: 1.3;
    text-transform: uppercase;
}

.vs-proyectos-hero__eyebrow::before {
    content: "";
    flex: 0 0 42px;
    width: 42px;
    height: 2px;
    border-radius: 999px;
    background: var(--vs-color-accent, #ef3f4d);
}

.vs-proyectos-hero__title,
.vs-proyectos-hero__title .elementor-heading-title {
    max-width: 900px;
    margin: 0;
    color: #ffffff !important;
    font-size: clamp(3.3rem, 7vw, 6.2rem);
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 0.98;
    text-wrap: balance;
}

.vs-proyectos-hero__text,
.vs-proyectos-hero__text .elementor-widget-container,
.vs-proyectos-hero__text p {
    max-width: 760px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.96) !important;
    font-size: clamp(1.08rem, 1.8vw, 1.32rem);
    font-weight: 500;
    line-height: 1.75;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.32);

    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    overflow-wrap: break-word;
}

.vs-proyectos-hero__text p {
    margin: 0;
}

.vs-proyectos-hero__actions {
    width: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-top: 30px;
}


/* =========================================================
   Botón del hero
   Compatible con el widget Botón de Elementor
   ========================================================= */

.vs-proyectos-hero__button {
    width: auto;
}

.vs-proyectos-hero__button .elementor-button,
a.vs-proyectos-hero__button,
.vs-proyectos-hero__button--secondary .elementor-button {
    min-height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 30px;
    border: 2px solid var(--vs-color-accent, #e95f4f);
    border-radius: 999px;
    background: var(--vs-color-accent, #e95f4f) !important;
    color: #ffffff !important;
    font-size: 0.98rem;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none !important;
    box-shadow: 0 14px 32px rgba(150, 48, 42, 0.28);
    transition:
        transform 0.22s ease,
        background-color 0.22s ease,
        border-color 0.22s ease,
        box-shadow 0.22s ease;
}

.vs-proyectos-hero__button .elementor-button:hover,
.vs-proyectos-hero__button .elementor-button:focus-visible,
a.vs-proyectos-hero__button:hover,
a.vs-proyectos-hero__button:focus-visible,
.vs-proyectos-hero__button--secondary .elementor-button:hover,
.vs-proyectos-hero__button--secondary .elementor-button:focus-visible {
    transform: translateY(-3px);
    border-color: #c9473d;
    background: #c9473d !important;
    color: #ffffff !important;
    text-decoration: none !important;
    box-shadow: 0 18px 38px rgba(120, 34, 30, 0.36);
}


/* =========================================================
   Ajustes para la estructura de Elementor
   ========================================================= */

.vs-proyectos-hero>.e-con-inner,
.vs-proyectos-hero>.elementor-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
}

.vs-proyectos-hero .elementor-widget-heading,
.vs-proyectos-hero .elementor-widget-text-editor,
.vs-proyectos-hero .elementor-widget-button {
    margin-bottom: 0;
}

.vs-proyectos-hero__title .elementor-heading-title {
    margin: 0;
    color: inherit;
    font: inherit;
    letter-spacing: inherit;
    line-height: inherit;
}

.vs-proyectos-hero__eyebrow .elementor-heading-title,
.vs-proyectos-hero__eyebrow .elementor-widget-container {
    color: inherit;
    font: inherit;
    letter-spacing: inherit;
    line-height: inherit;
    text-transform: inherit;
}


/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1024px) {

    .vs-proyectos-hero {
        min-height: 560px;
        padding: 110px 40px 86px;
    }

    .vs-proyectos-hero__title {
        max-width: 800px;
    }

    .vs-proyectos-hero__text {
        max-width: 680px;
    }
}

@media (max-width: 767px) {

    .vs-proyectos-hero {
        min-height: 540px;
        align-items: flex-end;
        padding: 110px 20px 66px;

        /* Elimina la imagen del hero en móvil */
        background-image: none !important;

        /* Fondo morado oscuro similar al actual */
        background-color: #2f2238 !important;
        background-position: initial !important;
        background-size: auto !important;
        background-repeat: no-repeat !important;
    }

    /*
     * Mantiene profundidad visual sin cargar imágenes.
     */
    .vs-proyectos-hero::before {
        background:
            linear-gradient(180deg,
                rgba(70, 49, 73, 0.96) 0%,
                rgba(47, 34, 56, 0.98) 48%,
                rgba(31, 23, 40, 1) 100%);
    }

    /*
     * Mancha decorativa morada creada solo con CSS.
     */
    .vs-proyectos-hero::after {
        top: -120px;
        right: -260px;
        width: 480px;
        height: 480px;
        opacity: 0.65;
        background:
            radial-gradient(circle,
                rgba(116, 83, 121, 0.42) 0%,
                rgba(82, 57, 88, 0.22) 42%,
                transparent 72%);
    }

    .vs-proyectos-hero__eyebrow {
        margin-bottom: 17px;
        font-size: 0.72rem;
        letter-spacing: 0.11em;
    }

    .vs-proyectos-hero__eyebrow::before {
        flex-basis: 30px;
        width: 30px;
    }

    .vs-proyectos-hero__title {
        font-size: clamp(2.8rem, 13vw, 4.2rem);
        line-height: 1;
    }

    .vs-proyectos-hero__text {
        margin-top: 21px;
        font-size: 1.02rem;
        line-height: 1.65;
    }

    .vs-proyectos-hero__actions {
        width: 100%;
        margin-top: 29px;
    }

    .vs-proyectos-hero__button {
        width: 100%;
    }

    .vs-proyectos-hero__button .elementor-button,
    a.vs-proyectos-hero__button,
    .vs-proyectos-hero__button--secondary .elementor-button {
        width: 100%;
    }
}

@media (max-width: 480px) {

    .vs-proyectos-hero {
        min-height: 520px;
        padding-right: 16px;
        padding-left: 16px;
    }

    .vs-proyectos-hero__title {
        font-size: clamp(2.55rem, 13vw, 3.35rem);
    }
}

/* =========================================================
   Introducción
   ========================================================= */

.vs-proyectos-intro {
    position: relative;
    width: 100%;
    padding: 96px 24px 54px;
    background:
        radial-gradient(circle at 10% 18%,
            rgba(233, 221, 240, 0.24) 0,
            transparent 28%),
        radial-gradient(circle at 92% 82%,
            rgba(249, 216, 200, 0.18) 0,
            transparent 30%),
        #ffffff;
}


/* =========================================================
   Contenedor interior
   ========================================================= */

.vs-proyectos-intro__inner {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
}

/*
 * Compatibilidad con contenedores Elementor.
 * Centra todos los widgets superiores y mantiene el ancho.
 */
.vs-proyectos-intro__inner,
.vs-proyectos-intro__inner>.e-con-inner,
.vs-proyectos-intro__inner>.elementor-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.vs-proyectos-intro__inner>.e-con-inner,
.vs-proyectos-intro__inner>.elementor-container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
}


/* =========================================================
   Eyebrow
   ========================================================= */

.vs-proyectos-intro__eyebrow {
    width: fit-content;
    max-width: 100%;
    margin: 0 auto 16px;
    color: #75609b;
}

.vs-proyectos-intro__eyebrow,
.vs-proyectos-intro__eyebrow .elementor-widget-container,
.vs-proyectos-intro__eyebrow .elementor-heading-title {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #75609b !important;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    line-height: 1.3;
    text-align: center;
    text-transform: uppercase;
}

.vs-proyectos-intro__eyebrow::before {
    content: "";
    flex: 0 0 32px;
    width: 32px;
    height: 2px;
    border-radius: 999px;
    background: var(--vs-color-accent, #ef3f4d);
}


/* =========================================================
   Título
   ========================================================= */

.vs-proyectos-intro__title {
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
}

.vs-proyectos-intro__title,
.vs-proyectos-intro__title .elementor-widget-container,
.vs-proyectos-intro__title .elementor-heading-title {
    color: #49385e !important;
    text-align: center;
}

.vs-proyectos-intro__title .elementor-heading-title,
h2.vs-proyectos-intro__title {
    margin: 0;
    font-size: clamp(2.35rem, 4.8vw, 4.2rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.08;
    text-wrap: balance;
}


/* =========================================================
   Texto introductorio
   ========================================================= */

.vs-proyectos-intro__text {
    width: 100%;
    max-width: 860px;
    margin: 28px auto 0;
}

.vs-proyectos-intro__text,
.vs-proyectos-intro__text .elementor-widget-container,
.vs-proyectos-intro__text p {
    color: #6d6672 !important;
    font-size: 1.08rem;
    line-height: 1.8;
    text-align: center;
}

.vs-proyectos-intro__text p {
    margin: 0 0 18px;
}

.vs-proyectos-intro__text p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   Contenedor de las tres tarjetas
   ========================================================= */

/* =========================================================
   Contenedor de las tres tarjetas
   Elementor clásico: sección interior + columnas
   ========================================================= */

.vs-proyectos-intro__features {
    width: 100% !important;
    max-width: 1180px !important;
    margin: 54px auto 0 !important;
    padding: 0 !important;

    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* Contenedor interno generado por la sección interior */
.vs-proyectos-intro__features>.elementor-container {
    width: 100% !important;
    max-width: 1180px !important;
    margin: 0 auto !important;
    padding: 0 !important;

    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    align-items: stretch !important;
    gap: 22px !important;

    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}


/* =========================================================
   Columnas convertidas en tarjetas
   ========================================================= */

.vs-proyectos-intro__features>.elementor-container>.elementor-column.vs-proyectos-intro__feature {
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    min-height: 190px;
    margin: 0 !important;
    padding: 0 !important;

    border: 1px solid rgba(76, 58, 94, 0.12) !important;
    border-radius: 24px !important;
    background: #ffffff !important;

    overflow: hidden;
    box-shadow: 0 16px 40px rgba(55, 41, 68, 0.08) !important;

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.vs-proyectos-intro__features>.elementor-container>.elementor-column.vs-proyectos-intro__feature:hover {
    transform: translateY(-4px);
    border-color: rgba(76, 58, 94, 0.22) !important;
    box-shadow: 0 22px 48px rgba(55, 41, 68, 0.13) !important;
}


/* Interior de cada columna */
.vs-proyectos-intro__feature>.elementor-widget-wrap {
    width: 100% !important;
    min-height: 190px;
    padding: 30px 26px !important;

    display: flex !important;
    flex-direction: column !important;
    align-content: center !important;
    align-items: center !important;
    justify-content: center !important;

    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    text-align: center;
}


/* =========================================================
   Contenido de cada tarjeta
   ========================================================= */

.vs-proyectos-intro__feature .elementor-widget-heading,
.vs-proyectos-intro__feature .elementor-widget-text-editor {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
}

.vs-proyectos-intro__feature h3,
.vs-proyectos-intro__feature .elementor-heading-title {
    width: 100%;
    margin: 0 !important;

    color: #49385e !important;
    font-size: 1.22rem !important;
    font-weight: 800 !important;
    line-height: 1.3 !important;

    white-space: normal !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    text-align: center !important;
}

.vs-proyectos-intro__feature .elementor-widget-text-editor {
    margin-top: 14px !important;
}

.vs-proyectos-intro__feature p {
    width: 100%;
    margin: 0 !important;

    color: #6d6672 !important;
    font-size: 0.98rem !important;
    line-height: 1.68 !important;

    white-space: normal !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    text-align: center !important;
}


/* =========================================================
   Tablet
   ========================================================= */

@media (max-width: 900px) {

    .vs-proyectos-intro__features {
        max-width: 680px !important;
    }

    .vs-proyectos-intro__features>.elementor-container {
        grid-template-columns: 1fr !important;
    }

    .vs-proyectos-intro__features>.elementor-container>.elementor-column.vs-proyectos-intro__feature {
        width: auto !important;
        min-height: auto;
    }

    .vs-proyectos-intro__feature>.elementor-widget-wrap {
        min-height: auto;
    }
}


/* =========================================================
   Móvil
   ========================================================= */

@media (max-width: 767px) {

    .vs-proyectos-intro {
        padding: 72px 16px 40px;
    }

    .vs-proyectos-intro__inner,
    .vs-proyectos-intro__inner>.e-con-inner,
    .vs-proyectos-intro__inner>.elementor-container {
        align-items: flex-start;
        text-align: justify !important;
    }

    .vs-proyectos-intro__eyebrow {
        margin-right: 0;
        margin-left: 0;
    }

    .vs-proyectos-intro__eyebrow,
    .vs-proyectos-intro__eyebrow .elementor-widget-container,
    .vs-proyectos-intro__eyebrow .elementor-heading-title {
        justify-content: flex-start;
        text-align: justify !important;
    }

    .vs-proyectos-intro__title {
        margin-right: 0;
        margin-left: 0;
    }

    .vs-proyectos-intro__title,
    .vs-proyectos-intro__title .elementor-widget-container,
    .vs-proyectos-intro__title .elementor-heading-title {
        text-align: justify !important;
    }

    .vs-proyectos-intro__title .elementor-heading-title,
    h2.vs-proyectos-intro__title {
        font-size: clamp(2.1rem, 10vw, 3rem);
    }

    .vs-proyectos-intro__text {
        margin-top: 22px;
        margin-right: 0;
        margin-left: 0;
    }

    .vs-proyectos-intro__text,
    .vs-proyectos-intro__text .elementor-widget-container,
    .vs-proyectos-intro__text p {
        font-size: 1rem;
        text-align: justify !important;
    }

    .vs-proyectos-intro__features,
    .vs-proyectos-intro__features>.e-con-inner,
    .vs-proyectos-intro__features>.elementor-container {
        margin-top: 38px;
    }

    .vs-proyectos-intro__feature {
        align-items: flex-start;
        padding: 27px 24px !important;
        text-align: justify !important;
    }

    .vs-proyectos-intro__feature>.e-con-inner,
    .vs-proyectos-intro__feature>.elementor-container {
        align-items: flex-start;
    }

    .vs-proyectos-intro__feature h3,
    .vs-proyectos-intro__feature .elementor-heading-title,
    .vs-proyectos-intro__feature p {
        text-align: justify !important;
    }
}

/* =========================================================
   VIENTOS SONOROS - Proyectos en Movimiento
   Grid dinámico de proyectos
   ========================================================= */

.vs-proyectos-grid-section {
    position: relative;
    width: 100%;
    padding: 30px 0 100px;
}

.vs-proyectos-grid {
    width: min(1240px, calc(100% - 48px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px;
}


/* =========================================================
   Tarjeta
   ========================================================= */

.vs-proyecto-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(76, 58, 94, 0.12);
    border-radius: 30px;
    background: #ffffff;
    box-shadow:
        0 16px 42px rgba(55, 41, 68, 0.08),
        0 2px 8px rgba(55, 41, 68, 0.04);
    transition:
        transform 0.28s ease,
        box-shadow 0.28s ease,
        border-color 0.28s ease;
}

.vs-proyecto-card:hover {
    transform: translateY(-7px);
    border-color: rgba(111, 86, 143, 0.22);
    box-shadow:
        0 26px 60px rgba(55, 41, 68, 0.14),
        0 4px 12px rgba(55, 41, 68, 0.06);
}


/* =========================================================
   Imagen
   ========================================================= */

.vs-proyecto-card__image-link {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #eee8f1;
}

.vs-proyecto-card__image-link::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(180deg,
            transparent 52%,
            rgba(35, 26, 43, 0.38) 100%);
}

.vs-proyecto-card__image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    transition: transform 0.55s ease;
}

.vs-proyecto-card:hover .vs-proyecto-card__image {
    transform: scale(1.045);
}

.vs-proyecto-card__image--placeholder {
    min-height: 300px;
    background:
        radial-gradient(circle at 20% 25%,
            rgba(239, 140, 99, 0.25) 0,
            transparent 30%),
        linear-gradient(135deg,
            #ece3f1 0%,
            #d8c6e1 100%);
}


/* =========================================================
   Tipo de proyecto
   ========================================================= */

.vs-proyecto-card__type {
    position: absolute;
    left: 24px;
    bottom: 22px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 999px;
    background: rgba(42, 31, 52, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #ffffff;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-transform: uppercase;
}


/* =========================================================
   Contenido
   ========================================================= */

.vs-proyecto-card__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 32px;
}

.vs-proyecto-card__title {
    margin: 0;
    color: #49385e;
    font-size: clamp(1.65rem, 2.6vw, 2.15rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.12;
}

.vs-proyecto-card__title a {
    color: inherit;
    text-decoration: none !important;
}

.vs-proyecto-card__title a:hover,
.vs-proyecto-card__title a:focus-visible {
    color: #6f568f;
}

.vs-proyecto-card__summary {
    margin: 20px 0 0;
    color: #6d6672;
    font-size: 1rem;
    line-height: 1.72;

    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    overflow-wrap: break-word;
}


/* =========================================================
   Metadatos
   ========================================================= */

.vs-proyecto-card__meta {
    display: grid;
    gap: 12px;
    margin-top: 25px;
    padding-top: 23px;
    border-top: 1px solid rgba(76, 58, 94, 0.1);
}

.vs-proyecto-card__meta-item {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    color: #5e5665;
    font-size: 0.91rem;
    line-height: 1.55;
}

.vs-proyecto-card__meta-item>span:first-child {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: rgba(111, 86, 143, 0.1);
    color: #6f568f;
    font-size: 0.92rem;
    font-weight: 800;
}


/* =========================================================
   Botón
   ========================================================= */

.vs-proyecto-card__button {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    margin-top: auto;
    padding: 14px 22px;
    border-radius: 999px;
    background: #6f568f;
    color: #ffffff;
    font-size: 0.94rem;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none !important;
    box-shadow: 0 10px 22px rgba(75, 55, 96, 0.18);
    transition:
        transform 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease;
}

.vs-proyecto-card__meta+.vs-proyecto-card__button,
.vs-proyecto-card__summary+.vs-proyecto-card__button {
    margin-top: 28px;
}

.vs-proyecto-card__button span {
    font-size: 1.15rem;
    line-height: 1;
    transition: transform 0.2s ease;
}

.vs-proyecto-card__button:hover,
.vs-proyecto-card__button:focus-visible {
    transform: translateY(-2px);
    background: #49385e;
    color: #ffffff;
    box-shadow: 0 14px 26px rgba(75, 55, 96, 0.25);
}

.vs-proyecto-card__button:hover span,
.vs-proyecto-card__button:focus-visible span {
    transform: translateX(4px);
}


/* =========================================================
   Variaciones por tipo de proyecto
   ========================================================= */

.vs-proyecto-card:nth-child(1) {
    --vs-card-accent: #4f8097;
}

.vs-proyecto-card:nth-child(2) {
    --vs-card-accent: #d9784d;
}

.vs-proyecto-card:nth-child(3) {
    --vs-card-accent: #75609b;
}

.vs-proyecto-card:nth-child(4) {
    --vs-card-accent: #a85c82;
}

.vs-proyecto-card:nth-child(n) .vs-proyecto-card__button {
    background: var(--vs-card-accent);
}

.vs-proyecto-card:nth-child(n) .vs-proyecto-card__meta-item>span:first-child {
    background: color-mix(in srgb,
            var(--vs-card-accent) 12%,
            transparent);
    color: var(--vs-card-accent);
}

.vs-proyecto-card:nth-child(n):hover {
    border-color: color-mix(in srgb,
            var(--vs-card-accent) 30%,
            transparent);
}

.vs-proyecto-card:nth-child(n) .vs-proyecto-card__button:hover,
.vs-proyecto-card:nth-child(n) .vs-proyecto-card__button:focus-visible {
    background: color-mix(in srgb,
            var(--vs-card-accent) 82%,
            #241d29);
}


/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1024px) {

    .vs-proyectos-grid {
        gap: 26px;
    }

    .vs-proyecto-card__content {
        padding: 27px;
    }

    .vs-proyecto-card__type {
        left: 20px;
        bottom: 18px;
    }
}

@media (max-width: 767px) {

    .vs-proyectos-grid-section {
        padding: 20px 0 72px;
    }

    .vs-proyectos-grid {
        width: min(100% - 32px, 640px);
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .vs-proyecto-card {
        border-radius: 24px;
    }

    .vs-proyecto-card__content {
        padding: 25px 22px 27px;
    }

    .vs-proyecto-card__title {
        font-size: clamp(1.65rem, 8vw, 2rem);
    }

    .vs-proyecto-card__summary {
        margin-top: 16px;
    }

    .vs-proyecto-card__button {
        width: 100%;
    }
}

@media (max-width: 480px) {

    .vs-proyecto-card__image-link {
        aspect-ratio: 4 / 3;
    }

    .vs-proyecto-card__type {
        left: 16px;
        right: 16px;
        bottom: 16px;
        width: fit-content;
        max-width: calc(100% - 32px);
        font-size: 0.69rem;
    }

    .vs-proyecto-card__meta-item {
        font-size: 0.86rem;
    }
}

/* =========================================================
   CTA final - Proyectos en Movimiento
   ========================================================= */

.vs-proyectos-cta {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 100px 24px;
    isolation: isolate;
    background:
        radial-gradient(circle at 10% 90%,
            rgba(239, 63, 77, 0.18) 0,
            transparent 30%),
        radial-gradient(circle at 90% 10%,
            rgba(117, 96, 155, 0.22) 0,
            transparent 34%),
        linear-gradient(135deg,
            #342642 0%,
            #4d3a63 55%,
            #654d7f 100%);
}

/* Detalles decorativos */
.vs-proyectos-cta::before,
.vs-proyectos-cta::after {
    content: "";
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    pointer-events: none;
}

.vs-proyectos-cta::before {
    top: -180px;
    right: -120px;
    width: 460px;
    height: 460px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 0 0 55px rgba(255, 255, 255, 0.025),
        0 0 0 110px rgba(255, 255, 255, 0.018);
}

.vs-proyectos-cta::after {
    bottom: -220px;
    left: -150px;
    width: 500px;
    height: 500px;
    background: rgba(239, 63, 77, 0.09);
    filter: blur(10px);
}


/* =========================================================
   Contenedor interior
   ========================================================= */

.vs-proyectos-cta__inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 58px 64px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    text-align: center;
    box-shadow:
        0 28px 70px rgba(25, 17, 34, 0.26),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

/* Compatibilidad con wrappers de Elementor */
.vs-proyectos-cta__inner>.e-con-inner,
.vs-proyectos-cta__inner>.elementor-container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0 !important;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;
}


/* =========================================================
   Eyebrow
   ========================================================= */

.vs-proyectos-cta__eyebrow {
    width: fit-content;
    max-width: 100%;
    margin: 0 auto 18px;
}

.vs-proyectos-cta__eyebrow,
.vs-proyectos-cta__eyebrow .elementor-widget-container,
.vs-proyectos-cta__eyebrow .elementor-heading-title {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    color: rgba(255, 255, 255, 0.82) !important;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    line-height: 1.3;
    text-transform: uppercase;
}

.vs-proyectos-cta__eyebrow::before {
    content: "";
    flex: 0 0 34px;
    width: 34px;
    height: 2px;
    border-radius: 999px;
    background: var(--vs-color-accent, #ef3f4d);
}


/* =========================================================
   Título
   ========================================================= */

.vs-proyectos-cta__title {
    width: 100%;
    max-width: 880px;
    margin: 0 auto;
}

.vs-proyectos-cta__title,
.vs-proyectos-cta__title .elementor-widget-container,
.vs-proyectos-cta__title .elementor-heading-title {
    color: #ffffff !important;
    text-align: center;
}

.vs-proyectos-cta__title .elementor-heading-title,
h2.vs-proyectos-cta__title {
    margin: 0;
    font-size: clamp(2.2rem, 4.2vw, 3.8rem);
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 1.08;
    text-wrap: balance;
}


/* =========================================================
   Textos
   ========================================================= */

.vs-proyectos-cta__text {
    width: 100%;
    max-width: 760px;
    margin: 26px auto 0;
}

.vs-proyectos-cta__text,
.vs-proyectos-cta__text .elementor-widget-container,
.vs-proyectos-cta__text p {
    color: rgba(255, 255, 255, 0.88) !important;
    font-size: 1.08rem;
    line-height: 1.78;
    text-align: center;
}

.vs-proyectos-cta__text p {
    margin: 0;
}

.vs-proyectos-cta__contexts {
    width: 100%;
    max-width: 760px;
    margin: 20px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.vs-proyectos-cta__contexts,
.vs-proyectos-cta__contexts .elementor-widget-container,
.vs-proyectos-cta__contexts p {
    color: rgba(255, 255, 255, 0.78) !important;
    font-size: 0.93rem;
    font-weight: 600;
    line-height: 1.65;
    text-align: center;
}

.vs-proyectos-cta__contexts p {
    margin: 0;
}


/* =========================================================
   Botón
   ========================================================= */

.vs-proyectos-cta__button {
    width: auto;
    margin-top: 34px;
}

.vs-proyectos-cta__button .elementor-button,
a.vs-proyectos-cta__button {
    min-height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    padding: 16px 30px;

    border: 2px solid var(--vs-color-accent, #ef3f4d);
    border-radius: 999px;
    background: var(--vs-color-accent, #ef3f4d) !important;
    color: #ffffff !important;

    font-size: 0.98rem;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none !important;

    box-shadow: 0 14px 32px rgba(160, 36, 48, 0.34);

    transition:
        transform 0.22s ease,
        background-color 0.22s ease,
        border-color 0.22s ease,
        box-shadow 0.22s ease;
}

.vs-proyectos-cta__button .elementor-button:hover,
.vs-proyectos-cta__button .elementor-button:focus-visible,
a.vs-proyectos-cta__button:hover,
a.vs-proyectos-cta__button:focus-visible {
    transform: translateY(-3px);
    border-color: #c92f3d;
    background: #c92f3d !important;
    color: #ffffff !important;
    text-decoration: none !important;
    box-shadow: 0 18px 38px rgba(120, 28, 38, 0.42);
}

.vs-proyectos-cta__button .elementor-button-icon {
    font-size: 1rem;
    transition: transform 0.22s ease;
}

.vs-proyectos-cta__button .elementor-button:hover .elementor-button-icon,
.vs-proyectos-cta__button .elementor-button:focus-visible .elementor-button-icon {
    transform: translateX(4px);
}


/* =========================================================
   Limpieza de estilos de Elementor
   ========================================================= */

.vs-proyectos-cta .elementor-widget-heading,
.vs-proyectos-cta .elementor-widget-text-editor,
.vs-proyectos-cta .elementor-widget-button {
    margin-bottom: 0;
}


/* =========================================================
   Tablet
   ========================================================= */

@media (max-width: 1024px) {

    .vs-proyectos-cta {
        padding: 84px 32px;
    }

    .vs-proyectos-cta__inner {
        padding: 58px 46px;
    }
}


/* =========================================================
   Móvil
   ========================================================= */

@media (max-width: 767px) {

    .vs-proyectos-cta {
        padding: 68px 16px;
    }

    .vs-proyectos-cta__inner {
        padding: 42px 24px;
        border-radius: 26px;
    }

    .vs-proyectos-cta__eyebrow {
        margin-bottom: 15px;
    }

    .vs-proyectos-cta__eyebrow,
    .vs-proyectos-cta__eyebrow .elementor-widget-container,
    .vs-proyectos-cta__eyebrow .elementor-heading-title {
        font-size: 0.72rem;
        letter-spacing: 0.11em;
    }

    .vs-proyectos-cta__eyebrow::before {
        flex-basis: 28px;
        width: 28px;
    }

    .vs-proyectos-cta__title .elementor-heading-title,
    h2.vs-proyectos-cta__title {
        font-size: clamp(2.05rem, 10vw, 3rem);
    }

    .vs-proyectos-cta__text {
        margin-top: 22px;
    }

    .vs-proyectos-cta__text,
    .vs-proyectos-cta__text .elementor-widget-container,
    .vs-proyectos-cta__text p {
        font-size: 1rem;
        line-height: 1.68;
    }

    .vs-proyectos-cta__contexts {
        margin-top: 18px;
        padding-top: 18px;
    }

    .vs-proyectos-cta__button {
        width: 100%;
        margin-top: 28px;
    }

    .vs-proyectos-cta__button .elementor-button,
    a.vs-proyectos-cta__button {
        width: 100%;
    }
}

@media (max-width: 480px) {

    .vs-proyectos-cta__inner {
        padding-right: 20px;
        padding-left: 20px;
    }
}

/* =========================================================
   PROYECTOS EN MOVIMIENTO
   Formaciones realizadas
   ========================================================= */

.vs-formaciones-historico {
    position: relative;
    width: 100%;
    padding: 104px 24px;
    overflow: hidden;
    background:
        radial-gradient(circle at 92% 12%,
            rgba(111, 86, 143, 0.08) 0,
            transparent 28%),
        linear-gradient(180deg,
            #ffffff 0%,
            #f8f5fa 100%);
    box-sizing: border-box;
}

/* Contenedor principal */
.vs-formaciones-historico>.elementor-container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
}

/* Columna principal y orden de los widgets */
.vs-formaciones-historico>.elementor-container>.elementor-column>.elementor-widget-wrap {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
    padding: 0 !important;
}

.vs-formaciones-historico__eyebrow {
    order: 1;
}

.vs-formaciones-historico__title {
    order: 2;
}

.vs-formaciones-historico__intro {
    order: 3;
}

.vs-formaciones-historico__carousel {
    order: 4;
}


/* =========================================================
   Etiqueta superior
   ========================================================= */

.vs-formaciones-historico__eyebrow {
    width: 100% !important;
    margin: 0 0 20px !important;
    text-align: center !important;
}

.vs-formaciones-historico__eyebrow .elementor-heading-title {
    margin: 0 !important;
    color: #6f568f !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    line-height: 1.3 !important;
    letter-spacing: 0.12em !important;
    text-align: center !important;
    text-transform: uppercase;
}

.vs-formaciones-historico__eyebrow .elementor-heading-title::before {
    content: "";
    display: inline-block;
    width: 30px;
    height: 2px;
    margin-right: 10px;
    vertical-align: middle;
    border-radius: 999px;
    background: #ef8c63;
}


/* =========================================================
   Título
   ========================================================= */

.vs-formaciones-historico__title {
    width: 100% !important;
    max-width: 900px !important;
    margin: 0 auto 24px !important;
    text-align: center !important;
}

.vs-formaciones-historico__title .elementor-heading-title {
    width: 100% !important;
    margin: 0 !important;
    color: #18202d !important;
    font-size: clamp(42px, 4.5vw, 62px) !important;
    font-weight: 800 !important;
    line-height: 1.08 !important;
    letter-spacing: -0.04em !important;
    text-align: center !important;
}


/* =========================================================
   Introducción
   ========================================================= */

.vs-formaciones-historico__intro {
    width: 100% !important;
    max-width: 900px !important;
    margin: 0 auto 54px !important;
    text-align: center !important;
}

.vs-formaciones-historico__intro .elementor-widget-container,
.vs-formaciones-historico__intro .elementor-text-editor {
    width: 100% !important;
    color: #5d5864 !important;
    font-size: 18px !important;
    font-weight: 400;
    line-height: 1.75 !important;
    text-align: center !important;
}

.vs-formaciones-historico__intro p {
    margin: 0 !important;
}


/* =========================================================
   CARRUSEL · FORMACIONES REALIZADAS
   ========================================================= */

.vs-formaciones-historico__carousel {
    order: 4;
    width: 100% !important;
    max-width: 1180px !important;
    margin: 0 auto !important;
}

/* Espacio reservado para flechas y paginación */
.vs-formaciones-historico__carousel>.elementor-widget-container {
    width: 100%;
    padding: 8px 50px 42px !important;
    box-sizing: border-box;
}

/* Contenedor principal de Elementor / Swiper */
.vs-formaciones-historico__carousel .swiper,
.vs-formaciones-historico__carousel .swiper-container,
.vs-formaciones-historico__carousel .elementor-image-carousel-wrapper {
    width: 100% !important;
    overflow: hidden;
}

/* Todas las diapositivas con la misma altura */
.vs-formaciones-historico__carousel .swiper-wrapper {
    align-items: stretch !important;
}

.vs-formaciones-historico__carousel .swiper-slide {
    display: flex !important;
    align-items: stretch !important;
    justify-content: center !important;
    height: auto !important;
    padding: 10px !important;
    box-sizing: border-box;
}

/* =========================================================
   Tarjeta de cada cartel
   ========================================================= */

.vs-formaciones-historico__carousel .swiper-slide-inner {
    position: relative;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    aspect-ratio: 4 / 5;

    margin: 0 !important;
    padding: 18px !important;
    overflow: hidden;

    border: 1px solid rgba(70, 54, 95, 0.1);
    border-radius: 24px;
    background: #ffffff;

    box-shadow:
        0 20px 50px rgba(58, 43, 75, 0.09),
        0 4px 12px rgba(58, 43, 75, 0.05);

    box-sizing: border-box;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.vs-formaciones-historico__carousel .swiper-slide-inner:hover {
    transform: translateY(-5px);
    border-color: rgba(111, 86, 143, 0.2);

    box-shadow:
        0 26px 60px rgba(58, 43, 75, 0.14),
        0 6px 16px rgba(58, 43, 75, 0.06);
}

/* Si Elementor incluye enlaces alrededor de la imagen */
.vs-formaciones-historico__carousel .swiper-slide-inner>a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 100% !important;
    height: 100% !important;

    margin: 0 !important;
    padding: 0 !important;
}

/* =========================================================
   Imágenes
   ========================================================= */

/*
 * La imagen ocupa el espacio disponible sin recortarse.
 * Funciona con y sin enlace alrededor.
 */

.vs-formaciones-historico__carousel .swiper-slide img,
.vs-formaciones-historico__carousel .swiper-slide-image {
    display: block !important;

    width: 100% !important;
    height: 100% !important;

    max-width: none !important;
    max-height: none !important;

    margin: 0 auto !important;
    padding: 0 !important;

    object-fit: contain !important;
    object-position: center center !important;

    background: transparent !important;
    image-rendering: auto;

    transition: transform 0.35s ease;
}

.vs-formaciones-historico__carousel .swiper-slide-inner:hover img {
    transform: scale(1.025);
}

/* =========================================================
   Flechas
   ========================================================= */

.vs-formaciones-historico__carousel .elementor-swiper-button {
    z-index: 10;

    display: flex !important;
    align-items: center;
    justify-content: center;

    width: 46px;
    height: 46px;

    border: 1px solid rgba(111, 86, 143, 0.15);
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.96);
    color: #6f568f;

    box-shadow: 0 10px 24px rgba(58, 43, 75, 0.12);

    transition:
        transform 0.2s ease,
        background-color 0.2s ease,
        color 0.2s ease;
}

.vs-formaciones-historico__carousel .elementor-swiper-button:hover {
    transform: scale(1.06);
    background: #6f568f;
    color: #ffffff;
}

.vs-formaciones-historico__carousel .elementor-swiper-button-prev {
    left: 0 !important;
}

.vs-formaciones-historico__carousel .elementor-swiper-button-next {
    right: 0 !important;
}

/* =========================================================
   Paginación
   ========================================================= */

.vs-formaciones-historico__carousel .swiper-pagination {
    bottom: 0 !important;
}

.vs-formaciones-historico__carousel .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    margin: 0 5px !important;

    background: rgba(111, 86, 143, 0.32);
    opacity: 1;
}

.vs-formaciones-historico__carousel .swiper-pagination-bullet-active {
    width: 22px;
    border-radius: 999px;
    background: #6f568f;
}

/* =========================================================
   Tablet
   ========================================================= */

@media (max-width: 1024px) {

    .vs-formaciones-historico {
        padding: 88px 30px;
    }

    .vs-formaciones-historico__title .elementor-heading-title {
        font-size: clamp(40px, 6vw, 52px) !important;
    }

    .vs-formaciones-historico__intro {
        margin-bottom: 44px !important;
    }

    .vs-formaciones-historico__carousel>.elementor-widget-container {
        padding-right: 42px !important;
        padding-left: 42px !important;
    }

    .vs-formaciones-historico__carousel .swiper-slide-inner {
        aspect-ratio: 4 / 5;
        padding: 16px !important;
        border-radius: 22px;
    }
}

/* =========================================================
   Móvil
   ========================================================= */

@media (max-width: 767px) {

    .vs-formaciones-historico {
        padding: 72px 16px;
    }

    .vs-formaciones-historico__eyebrow {
        margin-bottom: 16px !important;
    }

    .vs-formaciones-historico__eyebrow .elementor-heading-title {
        font-size: 11px !important;
        letter-spacing: 0.1em !important;
    }

    .vs-formaciones-historico__eyebrow .elementor-heading-title::before {
        width: 24px;
        margin-right: 8px;
    }

    .vs-formaciones-historico__title {
        margin-bottom: 20px !important;
    }

    .vs-formaciones-historico__title .elementor-heading-title {
        font-size: clamp(34px, 10vw, 44px) !important;
        line-height: 1.1 !important;
    }

    .vs-formaciones-historico__intro {
        margin-bottom: 36px !important;
    }

    .vs-formaciones-historico__intro .elementor-widget-container,
    .vs-formaciones-historico__intro .elementor-text-editor {
        font-size: 16px !important;
        line-height: 1.7 !important;
        text-align: center !important;
    }

    .vs-formaciones-historico__carousel>.elementor-widget-container {
        padding: 4px 8px 38px !important;
    }

    .vs-formaciones-historico__carousel .swiper-slide {
        padding: 5px !important;
    }

    .vs-formaciones-historico__carousel .swiper-slide-inner {
        width: min(100%, 390px) !important;
        aspect-ratio: 4 / 5;
        padding: 14px !important;
        border-radius: 20px;
    }

    .vs-formaciones-historico__carousel .elementor-swiper-button {
        width: 38px;
        height: 38px;
    }

    .vs-formaciones-historico__carousel .elementor-swiper-button-prev {
        left: 2px !important;
    }

    .vs-formaciones-historico__carousel .elementor-swiper-button-next {
        right: 2px !important;
    }
}

/* =========================================================
   Móviles pequeños
   ========================================================= */

@media (max-width: 480px) {

    .vs-formaciones-historico {
        padding: 64px 12px;
    }

    .vs-formaciones-historico__title .elementor-heading-title {
        font-size: 34px !important;
    }

    .vs-formaciones-historico__carousel .swiper-slide-inner {
        width: 100% !important;
        aspect-ratio: 4 / 5;
        padding: 12px !important;
    }
}