/* =========================================================
   OFERTAS RECIENTES
========================================================= */

.ofertas-recientes-wrapper,
.ofertas-recientes-wrapper * {
    box-sizing: border-box;
}

.ofertas-recientes-wrapper {
    width: 100%;
    margin: 32px 0;
    font-family: 'Montserrat', Helvetica, Arial, Lucida, sans-serif;
}

.ofertas-recientes-header {
    margin-bottom: 22px;
}

.ofertas-recientes-kicker {
    margin: 0 0 7px;
    color: #D8004B;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.ofertas-recientes-header h2 {
    margin: 0;
    color: #005289;
    font-size: 60px;
    font-weight: 500;
    line-height: 1.15;
}

/* =========================================================
   GRID
========================================================= */

.ofertas-recientes-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
}

/* =========================================================
   CARD
========================================================= */

.oferta-reciente-card {
    position: relative;
    min-height: 100%;
    padding: 22px 20px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid rgba(154, 167, 185, 0.35);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.22s ease, border-color 0.22s ease;
}

.oferta-reciente-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 18px;
    bottom: 18px;
    width: 6px;
    border-radius: 0 999px 999px 0;
    background: #D8004B;
}

.oferta-reciente-card:hover {
    transform: translateY(-3px);
    border-color: rgba(216, 0, 75, 0.32);
}

.oferta-reciente-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 18px;
}

.oferta-reciente-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 14px;
    background: #00214D;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.oferta-reciente-ref {
    color: #9AA7B9;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    text-align: right;
}

.oferta-reciente-card h3 {
    margin: 0 0 18px;
    color: #00214D;
    font-size: 18px;
    line-height: 1.25;
    font-weight: 700;
}

.oferta-reciente-datos {
    display: grid;
    gap: 11px;
    margin-bottom: 22px;
}

.oferta-reciente-datos p {
    margin: 0;
    display: flex;
    align-items: flex-start;
    gap: 9px;
    color: #5f6f84;
    font-size: 13px;
    line-height: 1.4;
}

.oferta-reciente-datos i {
    width: 16px;
    margin-top: 2px;
    color: #D8004B;
    text-align: center;
    font-size: 13px;
}

.oferta-reciente-accion {
    margin-top: auto;
}

/* Botón compatible con estilo tabla */
.ofertas-recientes-wrapper .vermas_boton {
    background-color: #00214D !important;
    text-transform: uppercase;
    font-family: 'Montserrat', Helvetica, Arial, Lucida, sans-serif !important;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 13px;
    padding: 11px 15px;
    border: 2px solid #9AA7B9;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    text-decoration: none !important;
    white-space: nowrap;
    width: 100%;
    transition: all 0.25s ease;
}

.ofertas-recientes-wrapper .vermas_boton:hover {
    background-color: #ffffff !important;
    color: #00214D !important;
    border-color: #00214D !important;
    transform: translateY(-2px);
}

.ofertas-recientes-wrapper .vermas_boton::after {
    content: "\f06e";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 1rem;
    margin-left: 6px;
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.ofertas-recientes-wrapper .vermas_boton:hover::after {
    opacity: 1;
    transform: translateX(0);
}

/* =========================================================
   VACÍO
========================================================= */

.ofertas-recientes-empty {
    padding: 28px;
    border-radius: 16px;
    background: rgba(154, 167, 185, 0.15);
    text-align: center;
}

.ofertas-recientes-empty p {
    margin: 0;
    color: #00214D;
    font-weight: 700;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1280px) {
    .ofertas-recientes-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .ofertas-recientes-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .ofertas-recientes-grid {
        grid-template-columns: 1fr;
    }

    .oferta-reciente-card {
        padding: 22px 20px;
        border-radius: 16px;
    }
}

.ofertas-recientes-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 26px;
}

.ofertas-recientes-header-texto h2 {
    margin: 0 0 6px;
}

.ofertas-recientes-header-texto p {
    margin: 0;
}

.ofertas-recientes-ver-todas {
    background-color: #D8004B !important;
    color: #ffffff !important;
    border: 2px solid #D8004B;
    border-radius: 12px;
    padding: 12px 18px;
    font-family: 'Montserrat', Helvetica, Arial, Lucida, sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    white-space: nowrap;
    transition: all 0.25s ease;
}

.ofertas-recientes-ver-todas i {
    font-size: 13px;
    transition: transform 0.25s ease;
}

.ofertas-recientes-ver-todas:hover {
    background-color: #ffffff !important;
    color: #D8004B !important;
    border-color: #D8004B !important;
    transform: translateY(-2px);
}

.ofertas-recientes-ver-todas:hover i {
    transform: translateX(4px);
}

@media (max-width: 760px) {
    .ofertas-recientes-header {
        display: block;
    }

    .ofertas-recientes-ver-todas {
        margin-top: 16px;
        width: 100%;
    }
}

/* =========================================================
   AJUSTE RESPONSIVE OFERTAS RECIENTES
========================================================= */

/* Evita desbordes internos en cards/grid */
.ofertas-recientes-grid,
.oferta-reciente-card,
.oferta-reciente-card * {
    min-width: 0;
}


.ofertas-recientes-header-texto p {
    max-width: 900px;
    line-height: 1.55;
}

/* Título fluido para que no reviente en móvil */
.ofertas-recientes-header h2 {
    font-size: clamp(34px, 5vw, 60px);
    overflow-wrap: anywhere;
}

/* Evita que títulos, referencias o datos largos rompan la caja */
.oferta-reciente-card h3,
.oferta-reciente-ref,
.oferta-reciente-datos p {
    overflow-wrap: anywhere;
    word-break: normal;
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {
    .ofertas-recientes-wrapper {
        margin: 26px 0;
    }

    .ofertas-recientes-header {
        align-items: flex-start;
        gap: 18px;
    }

    .ofertas-recientes-header-texto {
        max-width: 100%;
    }

    .ofertas-recientes-header-texto p {
        max-width: 540px;
    }

    .oferta-reciente-card h3 {
        font-size: 17px;
    }
}

/* =========================================================
   MÓVIL
========================================================= */

@media (max-width: 600px) {
    .ofertas-recientes-wrapper {
        margin: 22px 0;
        padding: 0 2px;
    }

    .ofertas-recientes-header {
        display: block;
        margin-bottom: 22px;
    }

    .ofertas-recientes-header h2 {
        font-size: 34px;
        line-height: 1.08;
    }

    .ofertas-recientes-kicker {
        font-size: 12px;
        line-height: 1.35;
    }

    .ofertas-recientes-header-texto p {
        max-width: 92%;
        font-size: 14px;
        line-height: 1.55;
    }

    .ofertas-recientes-ver-todas {
        width: 100%;
        margin-top: 16px;
        white-space: normal;
        text-align: center;
        line-height: 1.25;
    }

    .oferta-reciente-card {
        width: 100%;
        padding: 20px 18px;
    }

    .oferta-reciente-top {
        align-items: flex-start;
    }

    .oferta-reciente-ref {
        font-size: 10px;
        line-height: 1.25;
    }

    .oferta-reciente-card h3 {
        font-size: 17px;
        line-height: 1.28;
    }

    .oferta-reciente-datos p {
        font-size: 13px;
        line-height: 1.45;
    }

    .ofertas-recientes-wrapper .vermas_boton {
        white-space: normal;
        text-align: center;
        line-height: 1.25;
    }
}

/* =========================================================
   MÓVIL PEQUEÑO
========================================================= */

@media (max-width: 420px) {
    .ofertas-recientes-header h2 {
        font-size: 30px;
    }

    .ofertas-recientes-header-texto p {
        max-width: 100%;
    }

    .oferta-reciente-card {
        padding: 18px 16px;
    }

    .oferta-reciente-icon {
        width: 38px;
        height: 38px;
        min-width: 38px;
        border-radius: 12px;
    }
}

.oferta-avisar-datos {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgba(216, 0, 75, 0.06);
    border: 1px solid rgba(216, 0, 75, 0.16);
    color: #263228;
    padding: 14px 16px;
    border-radius: 14px;
    margin: 18px 0 24px;
}

.oferta-avisar-datos i {
    color: #D8004B;
    font-size: 18px;
    margin-top: 2px;
}

.oferta-avisar-datos p {
    margin: 0;
    line-height: 1.45;
}

/* =========================================================
   OFERTAS RECIENTES - BOTÓN VER OFERTA SIN OJO
========================================================= */

.ofertas-recientes-wrapper .vermas_boton {
    color: #FFFFFF !important;
    border-width: 2px !important;
    border-style: solid !important;
    border-color: #9AA7B9 !important;
    border-radius: 13px !important;
    font-size: 14px !important;
    font-family: 'Montserrat', Helvetica, Arial, Lucida, sans-serif !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    background-color: #00214D !important;

    min-height: 0 !important;
    height: auto !important;
    padding: 8px 14px !important;
    line-height: 1.2 !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;

    width: 100% !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    cursor: pointer !important;

    box-shadow: none !important;
    transform: none !important;

    transition: background-color 0.22s ease, color 0.22s ease, border-color 0.22s ease !important;
}

.ofertas-recientes-wrapper .vermas_boton:hover {
    background-color: #FFFFFF !important;
    color: #00214D !important;
    border-color: #00214D !important;
    box-shadow: none !important;
    transform: none !important;
}

/* Quitar ojo añadido por pseudo-elemento */
.ofertas-recientes-wrapper .vermas_boton::after {
    content: none !important;
    display: none !important;
}

/* Por si el botón lleva icono real dentro */
.ofertas-recientes-wrapper .vermas_boton i {
    display: none !important;
}

@media (max-width: 600px) {
    .ofertas-recientes-wrapper .vermas_boton {
        white-space: normal !important;
        text-align: center !important;
        line-height: 1.25 !important;
    }
}