/* =========================================================
   CASAS.CO.CR 2026
   CTA BUSCAR / PUBLICAR PROPIEDAD
========================================================= */

.c26-cta {
    width: 100%;
    margin: 0;
    padding: 0;

    
}


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


.c26-cta a {
    text-decoration: none;
}


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

.c26-cta-contenedor {
    width: var(--anchoP);
    min-height: 180px;

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr)
        290px;

    overflow: hidden;

    background: #fff;
}


/* =========================================================
   BLOQUES
========================================================= */

.c26-cta-bloque {
    position: relative;

    min-width: 0;

    padding: 30px 38px;

    display: flex;

    align-items: center;

    gap: 24px;

    color: #fff;
}


/* =========================================================
   BUSCAR - AZUL
========================================================= */

.c26-cta-buscar {
    z-index: 3;

    background:
        linear-gradient(
            135deg,
            #064c84 0%,
            #003968 100%
        );
}


/* punta diagonal */

.c26-cta-buscar::after {
    content: "";

    position: absolute;

    z-index: -1;

    top: 0;
    right: -55px;

    width: 110px;
    height: 100%;

    background: #003968;

    transform: skewX(-17deg);
}


/* =========================================================
   PUBLICAR - ROJO
========================================================= */

.c26-cta-publicar {
    z-index: 2;

    padding-left: 80px;

    background:
        linear-gradient(
            135deg,
            #df111d 0%,
            #ed1724 60%,
            #d70816 100%
        );
}


/* punta diagonal derecha */

.c26-cta-publicar::after {
    content: "";

    position: absolute;

    z-index: -1;

    top: 0;
    right: -55px;

    width: 110px;
    height: 100%;

    background: #d70816;

    transform: skewX(-17deg);
}


/* =========================================================
   ICONO PRINCIPAL
========================================================= */

.c26-cta-icono {
    flex: 0 0 auto;

    display: flex;

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


.c26-cta-icono img {
    display: block;

    width: 52px;
    height: 52px;

    object-fit: contain;
}


/* =========================================================
   CONTENIDO
========================================================= */

.c26-cta-contenido {
    position: relative;

    z-index: 5;

    min-width: 0;
}


.c26-cta-contenido h2 {
    margin: 0;

    color: #fff;

    font-size: clamp(20px, 1.45vw, 27px);
    line-height: 1.15;
    font-weight: 700;

    letter-spacing: -.5px;
}


.c26-cta-contenido p {
    margin: 5px 0 17px;

    color: rgba(255,255,255,.95);

    font-size: 14px;
    line-height: 1.35;
    font-weight: 400;
}


/* =========================================================
   BOTONES
========================================================= */

.c26-cta-boton {
    min-width: 245px;
    min-height: 45px;

    padding: 0 22px;

    display: inline-flex;

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

    gap: 9px;

    border-radius: 8px;

    background: #fff;

    color: #0A266C;

    font-size: 13px;
    line-height: 1;
    font-weight: 700;

    box-shadow:
        0 3px 10px rgba(0,0,0,.16);

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


.c26-cta-boton:hover {
    transform: translateY(-2px);

    box-shadow:
        0 6px 15px rgba(0,0,0,.20);
}


.c26-cta-boton img {
    display: block;

    width: 18px;
    height: 18px;

    object-fit: contain;
}


.c26-cta-mas {
    color: #ed1724;

    font-size: 22px;
    line-height: 1;
    font-weight: 700;
}


/* =========================================================
   FOTO LLAVES
========================================================= */

.c26-cta-foto {
    position: relative;

    z-index: 1;

    min-width: 0;

    overflow: hidden;

    background: #eee;
}


.c26-cta-foto img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;
}


/* degradado para unir imagen con rojo */

.c26-cta-foto::before {
    content: "";

    position: absolute;

    z-index: 2;

    top: 0;
    left: 0;

    width: 55px;
    height: 100%;

    background:
        linear-gradient(
            90deg,
            rgba(215,8,22,.42),
            transparent
        );

    pointer-events: none;
}


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

@media (max-width: 1100px) {

    .c26-cta-contenedor {
        grid-template-columns:
            1fr 1fr;

        min-height: 180px;
    }


    .c26-cta-foto {
        display: none;
    }


    .c26-cta-publicar::after {
        display: none;
    }


    .c26-cta-bloque {
        padding: 28px;
    }


    .c26-cta-publicar {
        padding-left: 65px;
    }


    .c26-cta-icono img {
        width: 44px;
        height: 44px;
    }


    .c26-cta-boton {
        min-width: 210px;
    }

}


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

@media (max-width: 700px) {

    .c26-cta-contenedor {
        width: 100%;

        grid-template-columns: 1fr;
    }


    .c26-cta-bloque {
        min-height: 170px;

        padding: 25px 24px;

        gap: 18px;
    }


    .c26-cta-buscar::after,
    .c26-cta-publicar::after {
        display: none;
    }


    .c26-cta-publicar {
        padding-left: 24px;
    }


    .c26-cta-contenido h2 {
        font-size: 20px;
    }


    .c26-cta-contenido p {
        margin-bottom: 14px;

        font-size: 12px;
    }


    .c26-cta-icono img {
        width: 42px;
        height: 42px;
    }


    .c26-cta-boton {
        min-width: 0;

        min-height: 43px;

        padding: 0 17px;

        font-size: 12px;
    }

}