/* =========================================================
   CASAS.CO.CR 2026
   HERO
========================================================= */

.hero26 {
    --azul: #06366b;
    --azul-oscuro: #061f4b;
    --rojo: #ed1724;
    --rojo-oscuro: #d50f1b;
    --texto: #17283a;
    --borde: #d7dee5;

    position: relative;

    width: 100%;
    height: 380px;

    overflow: hidden;

    

    background-color: #07558c;
    border-top: 3px solid #ff0000;
}


/* =========================================================
   FONDO
========================================================= */

.hero26__fondo {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(0, 35, 70, .38) 0%,
            rgba(0, 35, 70, .16) 50%,
            rgba(0, 35, 70, .04) 100%
        ),
        url("../26-sliders/1.webp")
        center center / cover
        no-repeat;
}


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

.hero26__contenedor {
    position: relative;
    z-index: 2;

    width: min(94%, 1500px);
    height: 100%;

    margin: 0 auto;

    padding-top: 24px;
}


/* =========================================================
   TITULAR
========================================================= */

.hero26__titular {
    color: #fff;

    text-shadow:
        0 2px 7px rgba(0, 0, 0, .28);
}


.hero26__titular h1 { 
    padding-top: 105px; 
    max-width: 720px; 
    color: #fff; 
    margin: 0; 

    font-size: clamp(22px, 1.8vw, 31px); 
    line-height: 1.05; 
    font-weight: 700; 
    letter-spacing: -1.2px;

    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.65);
}


.hero26__titular p {
    margin: 5px 0 0;

    font-size: clamp(14px, 1.1vw, 17px);
    line-height: 1.35;
text-shadow: 0 2px 6px rgba(0, 0, 0, 0.65);
    font-weight: 500;
}


/* =========================================================
   CONTENEDOR DE LOS DOS BUSCADORES
========================================================= */

.hero26__buscadores {
    position: absolute;

    left: 0;
    right: 0;
    bottom: 20px;

    display: grid;

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

    gap: 16px;

    /* IMPORTANTE:
       ambos bloques tendrán la misma altura */
    align-items: stretch;
}


/* =========================================================
   BUSCADOR PRINCIPAL
========================================================= */

.hero26__principal {
    margin: 0;

    height: 100%;

    background: #fff;

    border-radius: 0 10px 10px 10px;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, .20);
}


/* =========================================================
   PESTAÑAS
========================================================= */

.hero26__tabs {
    position: absolute;

    bottom: 100%;

    left: 0;

    display: flex;
}


.hero26__tab {
    position: relative;

    cursor: pointer;
}


.hero26__tab input {
    position: absolute;

    opacity: 0;

    pointer-events: none;
}


.hero26__tab span {
    min-width: 160px;
    height: 45px;

    padding: 0 22px;

    display: flex;

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

    background:
        linear-gradient(
            #ffffff,
            #eef2f6
        );

    border: 1px solid #ccd5dd;
    border-bottom: 0;

    color: var(--azul-oscuro);

    font-size: 14px;
    font-weight: 700;

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


.hero26__tab:first-child span {
    border-radius: 9px 0 0 0;
}


.hero26__tab:last-child span {
    border-radius: 0 9px 0 0;
}


.hero26__tab input:checked + span {
    color: #fff;

    border-color: var(--rojo);

    background:
        linear-gradient(
            135deg,
            #f31c2a,
            #dc101c
        );
}


/* =========================================================
   CAMPOS
========================================================= */

.hero26__campos {
    padding: 17px;

    display: grid;

    grid-template-columns:
        minmax(240px, 1.25fr)
        minmax(220px, 1fr)
        145px;

    gap: 13px;

    align-items: end;
}


.hero26__campo {
    min-width: 0;
}


.hero26__campo label {
    display: block;

    margin: 0 0 6px 2px;

    color: var(--texto);

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


/* =========================================================
   SELECT
========================================================= */

.hero26__select {
    width: 100%;
    height: 44px;

    padding: 0 38px 0 13px;

    border: 1px solid var(--borde);

    border-radius: 6px;

    outline: none;

    background-color: #fff;

    color: #27394d;

    font-family: inherit;
    font-size: 13px;

    cursor: pointer;
}


.hero26__select:focus {
    border-color: var(--azul);

    box-shadow:
        0 0 0 3px rgba(6, 54, 107, .10);
}


/* =========================================================
   BOTÓN BUSCAR
========================================================= */

.hero26__buscar {
    width: 100%;
    height: 44px;

    border: 0;

    border-radius: 6px;

    background:
        linear-gradient(
            135deg,
            #f31b29,
            #d90d19
        );

    color: #fff;

    font-family: inherit;

    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

    box-shadow:
        0 4px 12px rgba(220, 10, 25, .25);

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


.hero26__buscar:hover {
    transform: translateY(-1px);

    box-shadow:
        0 6px 17px rgba(220, 10, 25, .32);
}


/* =========================================================
   CÓDIGO WEB
   MISMA ALTURA DEL BUSCADOR PRINCIPAL
========================================================= */

.hero26__codigo {
    margin: 0;

    padding: 13px;

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

    background:
        linear-gradient(
            135deg,
            #f31b29,
            #df0d1b
        );

    border-radius: 9px;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, .20);
}


.hero26__codigoTitulo {
    margin-bottom: 8px;

    color: #fff;

    font-size: 12px;
    font-weight: 600;

    text-align: center;
}


.hero26__codigoCampos {
    display: flex;

    width: 100%;
}


.hero26__codigoCampos input {
    min-width: 0;

    width: 100%;
    height: 40px;

    padding: 0 10px;

    border: 0;

    border-radius: 6px 0 0 6px;

    outline: none;

    background: #fff;

    color: #222;

    font-family: inherit;

    font-size: 12px;
}


.hero26__codigoCampos button {
    flex: 0 0 52px;

    height: 40px;

    border: 0;

    border-radius: 0 6px 6px 0;

    background: var(--azul-oscuro);

    color: #fff;

    font-family: inherit;

    font-size: 12px;
    font-weight: 700;

    cursor: pointer;
}


.hero26__codigoCampos button:hover {
    background: #031536;
}


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

@media (max-width: 1050px) {

    .hero26 {
        height: auto;

        min-height: 520px;
    }


    .hero26__contenedor {
        height: auto;

        padding: 28px 0;
    }


    .hero26__buscadores {
        position: relative;

        left: auto;
        right: auto;
        bottom: auto;

        margin-top: 95px;

        grid-template-columns: 1fr;
    }


    .hero26__codigo {
        width: min(100%, 320px);
    }

}


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

@media (max-width: 700px) {

    .hero26 {
        min-height: 0;
    }


    .hero26__fondo {
        background-position: 62% center;
    }


    .hero26__contenedor {
        width: 92%;

        padding: 25px 0;
    }


    /* TITULAR */

    .hero26__titular h1 {
        font-size: 29px;

        line-height: 1.06;

        letter-spacing: -.8px;
    }


    .hero26__titular p {
        font-size: 13px;
    }


    /* BUSCADORES */

    .hero26__buscadores {
        margin-top: 85px;
    }


    /* TABS */

    .hero26__tabs {
        width: 100%;
    }


    .hero26__tab {
        flex: 1;
    }


    .hero26__tab span {
        width: 100%;

        min-width: 0;

        height: 45px;

        padding: 0 5px;

        font-size: 11px;
    }


    /* BUSCADOR */

    .hero26__principal {
        border-radius: 0 0 9px 9px;
    }


    .hero26__campos {
        padding: 14px;

        grid-template-columns: 1fr;

        gap: 12px;
    }


    .hero26__select {
        height: 46px;
    }


    .hero26__buscar {
        height: 46px;
    }


    /* CÓDIGO WEB */

    .hero26__codigo {
        width: 100%;

        padding: 12px 14px 14px;
    }


    .hero26__codigoTitulo {
        font-size: 12px;
    }


    .hero26__codigoCampos input,
    .hero26__codigoCampos button {
        height: 43px;
    }

}


/* =========================================================
   MÓVIL PEQUEÑO
========================================================= */

@media (max-width: 430px) {

    .hero26__titular h1 {
        font-size: 27px;
    }


    .hero26__tab span {
        font-size: 10.5px;
    }

}