/* =========================================================
   CASAS.CO.CR 2026
   PROPIEDADES RECIENTES
========================================================= */

.c26-rec {
    --rec-azul: #092f61;
    --rec-azul-oscuro: #052750;
    --rec-rojo: #e30613;
    --rec-texto: #263a56;
    --rec-gris: #66758a;

    width: 100%;
    margin: 0;
    padding: 0;

    background: #f5f9fc;

    
}

.c26-rec *,
.c26-rec *::before,
.c26-rec *::after {
    box-sizing: border-box;
}


/* =========================================================
   HERO / CABECERA
========================================================= */

.c26-rec-hero {
    position: relative;

    width: 100%;
    min-height: 255px;

    overflow: hidden;

    display: flex;
    align-items: center;

    background: #eef6fb;
}


/* FONDO */

.c26-rec-hero-fondo {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(255,255,255,.99) 0%,
            rgba(255,255,255,.96) 36%,
            rgba(255,255,255,.72) 58%,
            rgba(255,255,255,.08) 100%
        ),
        url("../imagen_web/c26-recientes-fondo.webp")
        center right / cover no-repeat;
}


/* CONTENIDO */

.c26-rec-hero-contenido {
    position: relative;
    z-index: 2;

    width: var(--anchoP);

    margin: auto;
}


/* TEXTO SUPERIOR */

.c26-rec-superior {
    display: flex;
    align-items: center;

    gap: 16px;

    margin-bottom: 10px;

    color: var(--rec-azul);

    font-size: 14px;
    line-height: 1.2;

    font-weight: 700;

    letter-spacing: 3px;
}


.c26-rec-superior span {
    width: 65px;
    height: 6px;

    display: block;

    border-radius: 4px;

    background: var(--rec-rojo);
}


/* TÍTULO */

.c26-rec-hero h2 {
    margin: 0 0 8px;

    color: var(--rec-azul);

    font-size: clamp(35px, 4vw, 61px);
    line-height: 1.05;

    letter-spacing: -2px;

    font-weight: 800;
}


/* SUBTÍTULO */

.c26-rec-hero p {
    margin: 0;

    color: #52657d;

    font-size: clamp(16px, 1.6vw, 23px);
    line-height: 1.4;

    font-weight: 400;
}


/* =========================================================
   CONTENEDOR PROPIEDADES
========================================================= */

.c26-rec-contenedor {
    width: var(--anchoP);

    margin: -18px auto 0;

    padding: 0 0 55px;

    position: relative;
    z-index: 5;
}


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

   4 PROPIEDADES POR LÍNEA
========================================================= */

.c26-rec-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 24px;
}


/* =========================================================
   TARJETA
========================================================= */

.c26-rec-card {
    min-width: 0;

    overflow: hidden;

    background: #fff;

    border:
        1px solid rgba(9,47,97,.08);

    border-radius: 10px;

    box-shadow:
        0 6px 20px rgba(11,42,75,.10);

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}


.c26-rec-card:hover {
    transform: translateY(-4px);

    box-shadow:
        0 13px 30px rgba(11,42,75,.16);
}


/* =========================================================
   IMAGEN ALARGADA
========================================================= */

.c26-rec-imagen {
    position: relative;

    display: block;

    width: 100%;
    height: 205px;

    overflow: hidden;

    background: #e9eef3;
}


.c26-rec-imagen img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition:
        transform .45s ease;
}


.c26-rec-card:hover
.c26-rec-imagen img {
    transform: scale(1.035);
}


/* =========================================================
   MARCA
========================================================= */

.c26-rec-marca {
    position: absolute;

    top: 12px;
    left: 12px;

    max-width: calc(100% - 65px);

    padding: 7px 14px;

    border-radius: 6px;

    background: var(--rec-rojo);

    color: #fff;

    font-size: 11px;
    line-height: 1.1;

    font-weight: 700;

    white-space: nowrap;

    overflow: hidden;
    text-overflow: ellipsis;
}


/* =========================================================
   INFORMACIÓN
========================================================= */

.c26-rec-info {
    position: relative;

    min-height: 175px;

    padding: 16px 55px 18px 18px;
}


/* CÓDIGO WEB */

.c26-rec-codigo {
    margin-bottom: 7px;

    color: #657287;

    font-size: 13px;
    line-height: 1.2;

    font-weight: 500;
}


.c26-rec-codigo strong {
    color: var(--rec-rojo);

    font-size: 15px;
    font-weight: 700;
}


/* TÍTULO */

.c26-rec-info h3 {
    margin: 0 0 7px;

    font-size: 17px;
    line-height: 1.25;

    font-weight: 700;
}


.c26-rec-info h3 a {
    color: var(--rec-azul);

    text-decoration: none;
}


.c26-rec-info h3 a:hover {
    color: var(--rec-rojo);
}


/* =========================================================
   UBICACIÓN
========================================================= */

.c26-rec-ubicacion {
    display: flex;

    align-items: center;

    gap: 7px;

    margin-bottom: 13px;

    color: #40546d;

    font-size: 13px;
    line-height: 1.35;
}


.c26-rec-ubicacion img {
    width: 15px;
    height: 15px;

    flex: 0 0 15px;
}


/* =========================================================
   PRECIO
========================================================= */

.c26-rec-precio {
    color: var(--rec-rojo);

    font-size: 20px;
    line-height: 1.15;

    font-weight: 800;
}


/* =========================================================
   FLECHA
========================================================= */

.c26-rec-ir {
    position: absolute;

    right: 16px;
    bottom: 18px;

    width: 39px;
    height: 39px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #e7eef4;

    color: var(--rec-azul);

    text-decoration: none;

    font-size: 29px;
    line-height: 1;

    font-weight: 500;

    transition:
        background .2s ease,
        color .2s ease,
        transform .2s ease;
}


.c26-rec-ir:hover {
    background: var(--rec-azul);

    color: #fff;

    transform: translateX(2px);
}


/* =========================================================
   BOTÓN FINAL
========================================================= */

.c26-rec-final {
    width: 100%;

    margin-top: 30px;

    display: flex;
    justify-content: center;
}


.c26-rec-boton {
    width:  100% ;

    min-height: 61px;

    padding: 0 28px;

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 18px;

    border-radius: 9px;

    background:
        linear-gradient(
            135deg,
            #eb0714,
            #cf000b
        );

    color: #fff;

    text-decoration: none;

    font-size: 18px;
    line-height: 1.2;

    font-weight: 500;
text-shadow: 0 2px 3px rgba(0, 0, 0, 0.90);

    box-shadow:
        0 0px 23px rgba(207,0,11,.58);

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}


.c26-rec-boton span {
    font-size: 31px;
    line-height: 1;
}


.c26-rec-boton:hover {
    color: #fff;

    transform: translateY(-2px);

    box-shadow:
        0 11px 27px rgba(207,0,11,.28);
}


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

@media (max-width: 1100px) {

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

}


/* =========================================================
   MÓVIL
========================================================= */

@media (max-width: 650px) {

    .c26-rec-hero {
        min-height: 215px;
    }


    .c26-rec-hero-fondo {
        background:
            linear-gradient(
                90deg,
                rgba(255,255,255,.98),
                rgba(255,255,255,.85)
            ),
            url("../imagen_web/c26-recientes-fondo.webp")
            center / cover no-repeat;
    }


    .c26-rec-hero-contenido {
        width: 90%;
    }


    .c26-rec-superior {
        gap: 10px;

        font-size: 10px;

        letter-spacing: 1.5px;
    }


    .c26-rec-superior span {
        width: 35px;
        height: 4px;
    }


    .c26-rec-hero h2 {
        font-size: 34px;

        letter-spacing: -1px;
    }


    .c26-rec-hero p {
        max-width: 320px;

        font-size: 14px;
    }


    /* PROPIEDADES */

    .c26-rec-contenedor {
        width: 92%;

        margin-top: -10px;
    }


    .c26-rec-grid {
        grid-template-columns: 1fr;

        gap: 18px;
    }


    .c26-rec-imagen {
        height: 220px;
    }


    .c26-rec-info {
        min-height: 165px;
    }


    .c26-rec-boton {
        min-height: 56px;

        padding: 0 18px;

        font-size: 14px;
    }

}