@font-face {
    font-family: "Terrenos Heading";
    src: url("../fonts/HeadingNow-47Extrabold.otf") format("opentype");
    font-weight: 800;
    font-display: swap;
}

@font-face {
    font-family: "Terrenos Montserrat";
    src: url("../fonts/Montserrat-Medium.ttf") format("truetype");
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: "Terrenos Montserrat";
    src: url("../fonts/Montserrat-Bold.ttf") format("truetype");
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: "Terrenos Montserrat";
    src: url("../fonts/Montserrat-ExtraBold.ttf") format("truetype");
    font-weight: 800;
    font-display: swap;
}

.terrenos {
    --terrenos-ancho: min(75vw, 1160px);
    --terrenos-texto: clamp(16px, 1.48vw, 23px);
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(54px, 5.5vw, 105px) 24px 84px;
    color: #fff;
    background: linear-gradient(150deg, #007839 8%, #035650 93%);
    font: 500 16px/1.5 "Terrenos Montserrat", sans-serif;
}

.terrenos::before,
.terrenos::after {
    position: absolute;
    z-index: -1;
    content: "";
    border-radius: 90px;
    background: rgb(0 45 34 / 16%);
    pointer-events: none;
}

.terrenos::before {
    width: 130%;
    height: clamp(140px, 19vw, 280px);
    top: 16%;
    left: -14%;
    transform: rotate(-43deg);
}

.terrenos::after {
    right: -115px;
    bottom: -190px;
    width: 320px;
    height: 72%;
    box-shadow: -780px 260px 0 rgb(0 45 34 / 16%);
}

.terrenos__contenido {
    width: var(--terrenos-ancho);
    margin-inline: auto;
    font-size: var(--terrenos-texto);
}

.terrenos h1,
.terrenos h2,
.terrenos h3 {
    color: inherit;
    margin: 0;
    line-height: 1.15;
    font-family: inherit;
    font-weight: 800;
}

.terrenos p,
.terrenos dl,
.terrenos dd,
.terrenos ul {
    margin: 0;
    color: inherit;
    font: inherit;
}

.terrenos__titulo {
    max-width: 1320px;
    margin-inline: auto;
    text-align: center;
    text-transform: uppercase;
}

.terrenos__titulo h1 {
    font-family: "Terrenos Heading", Impact, sans-serif;
    font-size: clamp(36px, 8.5vw, 158px);
    font-weight: 800;
    letter-spacing: -.015em;
    line-height: 1;
}

.terrenos__titulo p {
    margin-top: 10px;
    font-size: clamp(16px, 2.4vw, 28px);
    letter-spacing: .43em;
    line-height: 1.2;
    padding-left: .43em;
}

.terrenos__intro {
    width: var(--terrenos-ancho);
    margin: clamp(40px, 4.65vw, 76px) auto 0;
    font-size: var(--terrenos-texto);
    text-align: justify;
}

.terrenos__intro p + p {
    margin-top: 1.5em;
}

.terrenos .terrenos__fechas {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: clamp(42px, 5vw, 68px) 0;
    padding: clamp(20px, 1.7vw, 28px) 18px;
    background: #003f35;
    border-radius: 48px;
}

.terrenos__fechas > div {
    padding-inline: clamp(10px, 3vw, 44px);
}

.terrenos__fechas > div + div {
    border-left: 1px solid #fff;
}

.terrenos__fechas dt {
    text-transform: uppercase;
    font-weight: 600;
    line-height: 1.2;
}

.terrenos__fechas dd {
    font-size: clamp(16px, 2.2vw, 32px);
    font-weight: 800;
    line-height: 1.2;
}

.terrenos__beneficios h2 {
    margin-bottom: 24px;
    font-size: clamp(24px, 3.4vw, 46px);
}

.terrenos__tarjetas {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(12px, 1vw, 16px);
}

.terrenos__tarjeta,
.terrenos__regiones {
    color: #003f35;
    background: #fff;
    border-radius: 24px;
}

.terrenos__tarjeta {
    padding: clamp(16px, 1.75vw, 27px);
    font-size: clamp(14px, 1.12vw, 18px);
    line-height: 1.45;
}

.terrenos__tarjeta h3 {
    font-size: clamp(18px, 1.52vw, 25px);
    margin: 9px 0;
}

.terrenos__icono {
    display: inline-grid;
    place-items: center;
    width: clamp(44px, 3.6vw, 60px);
    height: clamp(44px, 3.6vw, 60px);
    background: #0c824a;
    border-radius: 8px;
}

.terrenos__icono img,
.terrenos__boton img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.terrenos__regiones {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr);
    align-items: center;
    gap: 18px;
    margin-top: 14px;
    padding: 16px 16px 16px 24px;
    border-radius: 32px;
}

.terrenos__regiones h2 {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    font-size: clamp(18px, 1.52vw, 24px);
}

.terrenos__regiones h2 img {
    width: 15px;
    flex: none;
}

.terrenos__zonas {
    display: grid;
    grid-template-columns: 24% minmax(0, 1fr);
    gap: clamp(8px, 1.1vw, 16px);
    margin-top: clamp(14px, 1.8vw, 28px);
}

.terrenos__zonas p {
    display: grid;
    place-items: center;
    padding: 8px;
    border-radius: 18px;
    background: #0c824a;
    color: #fff;
    font-size: clamp(11px, 1.1vw, 16px);
    font-weight: 800;
    line-height: 1.15;
    text-align: center;
}

.terrenos__filas ul {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: clamp(6px, .8vw, 12px) 0;
    list-style: none;
    font-size: clamp(10px, 1.02vw, 16px);
}

.terrenos__filas ul:first-child {
    padding-top: 0;
}

.terrenos__filas ul + ul {
    border-top: 1px solid #b7bdbb;
}

.terrenos__filas li {
    flex: 1 0 auto;
    padding: clamp(3px, .55vw, 8px) 4px;
    border-radius: 999px;
    background: #c6c6c6;
    color: #0b574d;
    text-align: center;
    white-space: nowrap;
}

.terrenos__mascota {
    display: block;
    width: 100%;
    height: auto;
}

@media (min-width: 641px) {
    .terrenos__regiones {
        --terrenos-marco-superior: 16px;
        padding-top: var(--terrenos-marco-superior);
    }

    .terrenos__mascota {
        align-self: start;
        margin-top: calc(2px - var(--terrenos-marco-superior));
    }
}

.terrenos__convocatoria {
    margin-top: 26px;
}

.terrenos__convocatoria h2 {
    margin-bottom: 6px;
    font-size: clamp(19px, 2vw, 30px);
}

.terrenos__acciones {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 10px;
    margin-top: 16px;
}

.terrenos a.terrenos__boton {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: clamp(52px, 4.4vw, 68px);
    padding: 9px 16px;
    border-radius: 30px;
    background: #003f35;
    color: #fff;
    font-size: clamp(14px, 1.14vw, 18px);
    font-weight: 700;
    text-decoration: none;
}

.terrenos a.terrenos__boton--registro {
    background: #c81118;
}

.terrenos a.terrenos__boton:hover,
.terrenos a.terrenos__boton:focus-visible {
    text-decoration: underline;
}

.terrenos a.terrenos__boton:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.terrenos__boton .terrenos__icono {
    flex: 0 0 32px;
    height: 32px;
    border-radius: 50%;
}

.terrenos__boton .terrenos__icono img {
    width: 15px;
    height: 15px;
}

@media (max-width: 860px) {
    .terrenos__tarjetas {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .terrenos {
        --terrenos-ancho: 100%;
        --terrenos-texto: clamp(13px, 3.3vw, 16px);
        padding: 38px min(10vw, 52px) 72px;
    }

    .terrenos__titulo h1 {
        font-size: clamp(29px, 10vw, 62px);
        transform: scaleX(.96);
        white-space: nowrap;
    }

    .terrenos__titulo p {
        margin-top: 3px;
        font-size: clamp(11px, 3.1vw, 16px);
    }

    .terrenos__intro {
        margin-top: 34px;
        text-align: justify;
    }

    .terrenos__estrategia {
        display: block;
        margin-top: 1.25em;
    }

    .terrenos .terrenos__fechas {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 4px;
        margin-block: 26px;
        border-radius: 14px;
        padding: 11px 8px;
    }

    .terrenos__fechas > div {
        display: flex;
        align-items: baseline;
        justify-content: center;
        flex-wrap: wrap;
        gap: 2px 5px;
        padding: 0;
    }

    .terrenos__fechas > div + div {
        border-left: 0;
    }

    .terrenos__fechas dt {
        font-size: clamp(9px, 2.55vw, 13px);
    }

    .terrenos__fechas dt::after {
        content: ":";
    }

    .terrenos__fechas dd {
        font-size: clamp(11px, 3.25vw, 16px);
    }

    .terrenos__beneficios h2 {
        margin-bottom: 18px;
        text-align: center;
        font-size: clamp(16px, 4.3vw, 24px);
    }

    .terrenos__tarjetas {
        gap: 8px;
    }

    .terrenos__tarjeta {
        padding: 13px 12px 16px;
        border-radius: 19px;
        font-size: clamp(11px, 2.75vw, 14px);
        line-height: 1.35;
    }

    .terrenos__tarjeta h3 {
        margin: 6px 0;
        font-size: clamp(13px, 3.4vw, 18px);
        line-height: 1.05;
    }

    .terrenos__tarjeta .terrenos__icono {
        width: 31px;
        height: 31px;
        border-radius: 6px;
    }

    .terrenos__tarjeta .terrenos__icono img {
        width: 15px;
        height: 15px;
    }

    .terrenos__regiones,
    .terrenos__acciones {
        grid-template-columns: 1fr;
    }

    .terrenos__regiones {
        gap: 10px;
        padding: 17px 12px 14px;
        border-radius: 26px;
    }

    .terrenos__regiones h2 {
        justify-content: center;
        gap: 4px;
        margin-bottom: 8px;
        font-size: clamp(11px, 2.8vw, 16px);
        text-align: center;
    }

    .terrenos__regiones h2 img {
        width: 11px;
    }

    .terrenos__zonas {
        display: block;
        margin-top: 0;
    }

    .terrenos__zonas p {
        margin-bottom: 7px;
        padding: 2px 8px;
        border-radius: 999px;
        background: #0c824a;
        color: #fff;
        font-size: clamp(10px, 2.6vw, 13px);
        font-weight: 800;
        text-align: center;
    }

    .terrenos__filas ul,
    .terrenos__filas ul:first-child {
        gap: 3px;
        margin-inline: 4px;
        padding: 6px 0;
        font-size: clamp(10px, 2.35vw, 13px);
    }

    .terrenos__filas li {
        padding: 3px 4px;
    }

    .terrenos__mascota {
        max-width: 360px;
        justify-self: center;
    }

    .terrenos__convocatoria {
        padding-inline: 4px;
    }

    .terrenos__convocatoria h2 {
        margin-bottom: 12px;
        font-size: clamp(15px, 3.8vw, 21px);
    }

    .terrenos__acciones {
        justify-items: center;
        gap: 8px;
    }

    .terrenos a.terrenos__boton {
        min-height: 44px;
        padding: 6px 12px;
        font-size: clamp(11px, 2.8vw, 14px);
    }

    .terrenos__boton img {
        flex-shrink: 0;
        width: 15px;
        height: 15px;
    }

    .terrenos__boton .terrenos__icono {
        flex-basis: 24px;
        height: 24px;
    }
}
