﻿.logo-cobach {
    width: 60px;
    margin: auto;
    display: block;
}

body.nav-sm .logo-cobach {
    width: 40px;
}
/* CARD */
.card-restaurantes {
    position: relative;
    background: #f7f7f7;
    border-radius: clamp(25px,3vw,45px);
    padding: clamp(10px,2vw,20px);
    text-align: center;
    margin-top: clamp(10px,2vw,30px);
    /*aspect-ratio: 4 / 1.5;*/ /* mantiene proporción responsive */
    min-height: clamp(90px, 14vw, 140px); /* controla altura sin deformar */
}

    /* BORDE */
    .card-restaurantes::before {
        content: "";
        position: absolute;
        inset: 0;
        border: clamp(3px,0.6vw,6px) solid #4e7f71;
        border-radius: clamp(20px,3vw,30px);
        z-index: 1;
    }

    /* RECORTE BORDE */
    .card-restaurantes::after {
        content: "";
        position: absolute;
        right: -2px;
        top: -2px;
        width: clamp(12px,2vw,22px);
        height: clamp(25px,4vw,50px);
        background: #f7f7f7;
        z-index: 2;
    }

/* CONTENIDO */
.contenido-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

/* LOGO */
.logo-cobahorro {
    width: clamp(80px,60%,180px);
    margin-bottom: -5px;
}

/* TITULO */
.titulo {
    font-size: clamp(10px, 2.6vw, 20px);
    font-weight: 600;
    color: #4e7f71;
    letter-spacing: clamp(0.5px,0.3vw,1px);
    text-align: center;
    line-height: 1.1;
    word-break: break-word;
    padding: 0 6px;
}

/* LINEAS */
.linea {
    height: clamp(1px,0.35vw,2px);
    width: 70%;
    background: #4e7f71;
    margin: clamp(1px,0.4vw,4px) 0;
    flex-shrink: 0; /* evita que desaparezcan */
}

/* FLECHA */
.card-restaurantes .flecha {
    position: absolute;
    top: clamp(-4px,-0.3vw,-3px);
    right: clamp(3px,0.5vw,6px);
    width: 0;
    height: 0;
    border-top: clamp(10px,1.5vw,16px) solid transparent;
    border-bottom: clamp(10px,1.5vw,16px) solid transparent;
    border-left: clamp(20px,3vw,32px) solid #4e7f71;
    transform: rotate(30deg);
    z-index: 3;
}


.card-beneficio-wrapper .beneficio-card {
    border: 6px solid #4e7f71;
    border-radius: clamp(20px,2vw,35px);
    padding: clamp(15px,2vw,25px);
    background: #f7f7f7;
    position: relative;
}

.card-beneficio-wrapper {
    color: black;
}

    .card-beneficio-wrapper .beneficio-card::after {
        content: "";
        position: absolute;
        right: -10px;
        top: -3px;
        width: clamp(12px,2vw,22px);
        height: clamp(25px,4vw,50px);
        background: #f7f7f7;
        z-index: 2;
    }

    .card-beneficio-wrapper .flecha {
        position: absolute;
        top: clamp(-4px,-0.3vw,-3px);
        right: clamp(-15px,0.5vw,-200px);
        width: 0;
        height: 0;
        border-top: clamp(10px,1.5vw,16px) solid transparent;
        border-bottom: clamp(10px,1.5vw,16px) solid transparent;
        border-left: clamp(20px,3vw,32px) solid #4e7f71;
        transform: rotate(30deg);
        z-index: 3;
    }

    /* contenedor */
    .card-beneficio-wrapper .beneficio-top {
        display: flex;
        gap: clamp(10px,2vw,30px);
        flex-wrap: wrap;
    }

    /* imagen principal */
    .card-beneficio-wrapper .beneficio-img img {
        width: 100%;
        max-width: 300px;
        max-height: 250px;
        border-radius: 20px;
    }

    /* logo restaurante */
    .card-beneficio-wrapper .beneficio-img {
        position: relative;
    }

    /* móvil o pantallas pequeñas */
    .card-beneficio-wrapper .logo-rest {
        position: absolute;
        bottom: -10%;
        left: 38%;
    }

/* pantallas grandes */
@media (min-width: 992px) {

    .card-beneficio-wrapper .logo-rest {
        left: 50%;
        transform: translateX(-50%);
    }
}



.card-beneficio-wrapper .logo-rest img {
    width: clamp(70px,8vw,120px);
}

/* bloque precio */
.card-beneficio-wrapper .beneficio-precio {
    flex: 1;
    text-align: center;
}

/* logo cobahorro */
.card-beneficio-wrapper .logo-cobahorro {
    width: clamp(120px,12vw,180px);
}

/* precio */
.card-beneficio-wrapper .precio {
    font-size: clamp(40px,6vw,70px);
    color: #4e7f71;
    font-weight: 700;
}

/* titulo */
.card-beneficio-wrapper .titulo-precio {
    font-size: clamp(16px,2vw,24px);
    font-weight: 600;
}

/* lineas */
.card-beneficio-wrapper .linea {
    height: 3px;
    background: #4e7f71;
    width: 80%;
    margin: 10px auto;
}

/* flecha abajo */
.card-beneficio-wrapper .flecha-abajo::after {
    content: "";
    display: block;
    margin: auto;
    /*border-left: 10px solid transparent;
            border-right: 10px solid transparent;
            border-top: 10px solid #4e7f71;*/
}

/* texto info */
.card-beneficio-wrapper .beneficio-info {
    margin-top: clamp(15px,2vw,30px);
}

/* footer */
.card-beneficio-wrapper .beneficio-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
    margin-top: 20px;
    border-top: 2px solid #4e7f71;
    padding-top: 10px;
}


.card-beneficio-wrapper {
    margin-bottom: 30px;
}

.seccion-beneficios {
    width: 100%;
    text-align: center;
    margin: 60px 0 40px 0;
}

    .seccion-beneficios h2 {
        font-size: clamp(24px, 4vw, 48px);
        font-weight: 800;
        letter-spacing: clamp(2px, 0.8vw, 6px);
        color: #4e7f71;
        position: relative;
        display: inline-block;
        text-align: center;
    }

        .seccion-beneficios h2::after {
            content: "";
            display: block;
            width: clamp(60px, 15vw, 120px);
            height: clamp(2px, 0.5vw, 4px);
            background: #4e7f71;
            margin: clamp(8px, 2vw, 15px) auto 0 auto;
            border-radius: 2px;
        }

.filtros-beneficios {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-bottom: 40px;
}

.filtro-item input,
.filtro-item select {
    padding: 10px 14px;
    border-radius: 8px;
    border: 2px solid #4e7f71;
    font-size: 14px;
    min-width: 180px;
}

    .filtro-item input:focus,
    .filtro-item select:focus {
        outline: none;
        border-color: #356457;
    }

.efecto-pulse:hover {
    animation-name: pulse;
    animation-duration: 0.8s;
}
.card-beneficio-wrapper {
    transition: transform .25s, box-shadow .25s;
}

.card-beneficio-wrapper:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}