@charset "utf-8";

/* =========================================================
   TICOJARRAS 2026 - DISEÑOS RELACIONADOS
   Inspirado en la propuesta visual aprobada.
   CSS completamente aislado.
   ========================================================= */

.tj2026-rel,
.tj2026-rel *,
.tj2026-rel *::before,
.tj2026-rel *::after {
    box-sizing: border-box;
}

.tj2026-rel {
    position: relative;
    width: 100%;
    margin-top: 34px;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 0%, rgba(255,255,255,.98), rgba(247,250,255,.92) 58%, #f3f7fd 100%);
    border-top: 1px solid #eef3f9;
}

.tj2026-rel__inner {
    position: relative;
    z-index: 2;
    width: min(1320px, calc(100% - 44px));
    margin: 0 auto;
    padding: 40px 0 58px;
}


/* =========================================================
   ENCABEZADO
   ========================================================= */

.tj2026-rel__top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 35px;
    margin-bottom: 27px;
}

.tj2026-rel__header {
    max-width: 850px;
}

.tj2026-rel__eyebrow {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 10px;
    color: #8794aa;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .28em;
}

.tj2026-rel__eyebrow span {
    display: block;
    width: 52px;
    height: 4px;
    flex: 0 0 52px;
    border-radius: 20px;
    background: #ef1725;
}

.tj2026-rel__header h2 {
    margin: 0 0 7px;
    color: #082f68;
    font-size: clamp(28px, 3vw, 43px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -.035em;
}

.tj2026-rel__header h2::first-line {
    color: #082f68;
}

.tj2026-rel__header p {
    margin: 0;
    color: #8490a5;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.45;
}

.tj2026-rel__more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    min-width: 280px;
    min-height: 54px;
    padding: 12px 22px;
    color: #0875e1 !important;
    background: rgba(255,255,255,.84);
    border: 1px solid #d4e2f4;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(20,69,126,.04);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
    transition: .2s ease;
}

.tj2026-rel__more span {
    color: #0a4388;
    font-size: 25px;
    line-height: 1;
}

.tj2026-rel__more:hover {
    transform: translateY(-2px);
    border-color: #9ec7f4;
    box-shadow: 0 9px 22px rgba(20,69,126,.10);
}


/* =========================================================
   GRID
   ========================================================= */

.tj2026-rel__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}


/* =========================================================
   TARJETAS
   ========================================================= */

.tj2026-rel__card {
    min-width: 0;
    overflow: hidden;
    background: rgba(255,255,255,.96);
    border: 1px solid #edf2f8;
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(20,55,100,.08);
    transition:
        transform .22s ease,
        box-shadow .22s ease,
        border-color .22s ease;
}

.tj2026-rel__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 12px;
    color: inherit !important;
    text-decoration: none !important;
}

.tj2026-rel__photo {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #eef2f6;
    border-radius: 12px;
}

.tj2026-rel__photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease, filter .35s ease;
}

.tj2026-rel__content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 10px 7px 3px;
    text-align: center;
}

.tj2026-rel__name {
    display: -webkit-box;
    min-height: 24px;
    margin: 0 0 3px;
    overflow: hidden;
    color: #062f69;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.25;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
}

.tj2026-rel__code {
    margin-bottom: 8px;
    color: #8994a7;
    font-size: 12px;
    font-weight: 600;
}

.tj2026-rel__price {
    margin: -2px 0 8px;
    color: #0a4d94;
    font-size: 12px;
    font-weight: 700;
}

.tj2026-rel__price b {
    color: #e30613;
}

.tj2026-rel__price--consult {
    color: #7d899b;
    font-size: 11px;
}


/* =========================================================
   BOTON
   ========================================================= */

.tj2026-rel__button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    min-height: 41px;
    margin-top: auto;
    padding: 8px 14px;
    color: #0875e1;
    background: #ffffff;
    border: 1.5px solid #1683ff;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    transition:
        color .18s ease,
        background .18s ease,
        transform .18s ease,
        box-shadow .18s ease;
}

.tj2026-rel__button b {
    font-size: 20px;
    line-height: 1;
}


/* =========================================================
   HOVER
   ========================================================= */

@media (hover: hover) {

    .tj2026-rel__card:hover {
        transform: translateY(-5px);
        border-color: #d8e5f5;
        box-shadow: 0 18px 35px rgba(20,55,100,.14);
    }

    .tj2026-rel__card:hover .tj2026-rel__photo img {
        transform: scale(1.035);
        filter: saturate(1.04);
    }

    .tj2026-rel__card:hover .tj2026-rel__button {
        color: #ffffff;
        background: linear-gradient(180deg, #1593f4 0%, #0873dc 52%, #0753ad 100%);
        box-shadow: 0 6px 13px rgba(6,91,185,.20);
    }
}


/* =========================================================
   DECORACION COSTA RICA
   ========================================================= */

.tj2026-rel__decor {
    position: absolute;
    z-index: 1;
    bottom: -62px;
    width: 270px;
    height: 155px;
    pointer-events: none;
    opacity: .72;
}

.tj2026-rel__decor--left {
    left: -70px;
    transform: rotate(-8deg);
    border-radius: 50%;
    border-top: 17px solid rgba(30,112,224,.14);
    border-right: 17px solid transparent;
}

.tj2026-rel__decor--right {
    right: -55px;
    transform: rotate(-13deg);
    border-radius: 50%;
    border-top: 18px solid rgba(26,109,222,.20);
    border-right: 18px solid rgba(235,23,48,.17);
    box-shadow:
        0 -20px 0 -13px rgba(255,255,255,.95),
        0 -36px 0 -18px rgba(235,23,48,.13);
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 980px) {

    .tj2026-rel__top {
        align-items: flex-start;
    }

    .tj2026-rel__more {
        min-width: 210px;
    }

    .tj2026-rel__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* =========================================================
   MOVIL
   ========================================================= */

@media (max-width: 650px) {

    .tj2026-rel__inner {
        width: calc(100% - 26px);
        padding: 31px 0 42px;
    }

    .tj2026-rel__top {
        display: block;
        margin-bottom: 21px;
    }

    .tj2026-rel__eyebrow {
        gap: 10px;
        font-size: 10px;
        letter-spacing: .2em;
    }

    .tj2026-rel__eyebrow span {
        width: 34px;
        flex-basis: 34px;
    }

    .tj2026-rel__header h2 {
        font-size: 27px;
    }

    .tj2026-rel__header p {
        font-size: 13px;
    }

    .tj2026-rel__more {
        width: 100%;
        min-width: 0;
        min-height: 46px;
        margin-top: 17px;
        justify-content: space-between;
        font-size: 12px;
    }

    .tj2026-rel__grid {
        display: flex;
        gap: 12px;
        margin-right: -13px;
        padding: 2px 13px 15px 0;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .tj2026-rel__grid::-webkit-scrollbar {
        display: none;
    }

    .tj2026-rel__card {
        flex: 0 0 82%;
        scroll-snap-align: start;
    }

    .tj2026-rel__photo {
        aspect-ratio: 1.48 / 1;
    }

    .tj2026-rel__name {
        font-size: 14px;
    }
}


/* =========================================================
   MOVIL MEDIANO: SE VE PARTE DE LA SIGUIENTE TARJETA
   ========================================================= */

@media (min-width: 430px) and (max-width: 650px) {

    .tj2026-rel__card {
        flex-basis: 68%;
    }
}


/* =========================================================
   ACCESIBILIDAD
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .tj2026-rel__card,
    .tj2026-rel__photo img,
    .tj2026-rel__button,
    .tj2026-rel__more {
        transition: none;
    }
}
