@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap');

#lp-buenfin,
#lp-buenfin * {
    box-sizing: border-box
}

body {
    margin: 0
}

#lp-buenfin {
    font-family: Montserrat, Arial, sans-serif;
    color: #003b71;
    background: white;
    overflow: hidden
}

#lp-buenfin a {
    text-decoration: none;
    color: inherit
}

.bf-hero {
    height: 680px;
    background: #6fc7ba;
    display: flex;
    align-items: flex-end;
    padding: 0 max(3.4%, 28px) 81px;
    background-size: cover;
    background-position: center
}

.bf-hero-content {
    color: white
}

.bf-kicker {
    font-weight: 800;
    font-size: 24px;
    margin: 0 0 2px
}

.bf-hero h1 {
    font-size: 38px;
    line-height: 1.28;
    margin: 0;
    font-weight: 800
}

.bf-summary {
    font-size: 16px;
    line-height: 1.4;
    font-weight: 600;
    margin: 16px 0 22px
}

.bf-claims {
    display: flex;
    gap: 35px
}

.bf-claims span {
    font-size: 12px;
    line-height: 1.5;
    font-weight: 700;
    position: relative;
    padding-left: 19px
}

.bf-claims span:before {
    content: '';
    width: 9px;
    height: 9px;
    border: 2px solid #fff;
    border-radius: 100%;
    position: absolute;
    left: 0;
    top: 2px
}

.bf-shops {
    padding: 96px 4% 59px
}

.bf-shops h2 {
    text-align: center;
    font-size: 38px;
    line-height: 1.2;
    font-weight: 300;
    margin: 0 0 48px
}

.bf-shops-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px
}

.bf-shops-grid a {
    border: 1px solid #dbe3e9;
    border-radius: 8px;
    height: 152px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 18px;
    background: #fff
}

.bf-shops-grid img {
    width: 100%;
    height: 100%;
    object-fit: contain
}

.bf-family {
    padding: 34px 16px 57px
}

.bf-family-heading {
    display: flex;
    align-items: center;
    gap: 25px;
    min-height: 86px;
    padding: 0 14px;
    margin-bottom: 26px
}

.bf-family-heading h2 {
    margin: 0;
    font-size: 40px;
    font-weight: 700;
    letter-spacing: -1px
}

.bf-family-heading p {
    font-size: 14px;
    font-weight: 500;
    max-width: 510px;
    line-height: 1.5;
    margin: 0
}

.bf-family-heading>a {
    margin-left: auto;
    white-space: nowrap;
    align-self: center;
    border-bottom: 2px solid #003b71;
    padding-bottom: 10px;
    font-size: 13px;
    font-weight: 600
}

.bf-sensibio .bf-family-heading h2 {
    color: #e6427b
}

.bf-photoderm .bf-family-heading h2 {
    color: #ffb500
}

.bf-sebium .bf-family-heading h2 {
    color: #00bc7f
}

.bf-products {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px
}

.bf-product {
    border: 1px solid #d9e2e9;
    border-radius: 13px;
    padding: 24px;
    min-width: 0
}

.bf-product-photo {
    height: 309px;
    border-radius: 9px;
    background: #f8f8f8;
    overflow: hidden
}

.bf-product-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.bf-product-info {
    padding-top: 22px
}

.bf-product-line {
    font-size: 14px;
    margin: 0 0 3px;
    font-weight: 400
}

.bf-product h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 5px;
    line-height: 1.35
}

.bf-product-description {
    font-size: 14px;
    line-height: 1.7;
    min-height: 24px;
    margin: 0 0 13px
}

.bf-available {
    font-size: 12px;
    font-weight: 400;
    color: #6184a9;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 12px 0 9px;
    white-space: nowrap;
    justify-content: center
}

.bf-available:before,
.bf-available:after {
    content: '';
    height: 1px;
    background: #d7e2ea;
    flex: 1
}

.bf-product-stores {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px
}

.bf-product-stores a {
    height: 47px;
    border: 1px solid #d2dfe7;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    overflow: hidden
}

.bf-product-stores img {
    width: 100%;
    height: 100%;
    object-fit: contain
}

@media(max-width:1000px) {
    .bf-shops-grid {
        grid-template-columns: repeat(3, 1fr)
    }

    .bf-products {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    .bf-family-heading {
        flex-wrap: wrap
    }

    .bf-family-heading>a {
        margin-left: 0
    }

    .bf-shops h2 {
        font-size: 30px
    }
}

@media(max-width:600px) {
    .bf-hero {
        height: 540px;
        padding: 0 22px 48px
    }

    .bf-kicker {
        font-size: 18px
    }

    .bf-hero h1 {
        font-size: 29px
    }

    .bf-summary {
        font-size: 13px
    }

    .bf-claims {
        gap: 14px
    }

    .bf-claims span {
        font-size: 9px;
        padding-left: 13px
    }

    .bf-claims span:before {
        width: 7px;
        height: 7px
    }

    .bf-shops {
        padding: 50px 16px 35px
    }

    .bf-shops h2 {
        font-size: 24px;
        margin-bottom: 25px
    }

    .bf-shops-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px
    }

    .bf-shops-grid a {
        height: 100px;
        padding: 13px
    }

    .bf-family {
        padding: 20px 12px 35px
    }

    .bf-family-heading {
        gap: 5px 12px;
        padding: 0;
        margin-bottom: 15px
    }

    .bf-family-heading h2 {
        font-size: 29px
    }

    .bf-family-heading p {
        font-size: 11px
    }

    .bf-family-heading>a {
        font-size: 11px;
        padding-bottom: 4px;
        margin-top: 10px
    }

    .bf-products {
        gap: 9px
    }

    .bf-product {
        padding: 10px;
        border-radius: 9px
    }

    .bf-product-photo {
        height: 185px
    }

    .bf-product-info {
        padding-top: 12px
    }

    .bf-product-line {
        font-size: 11px
    }

    .bf-product h3 {
        font-size: 12px
    }

    .bf-product-description {
        font-size: 11px;
        min-height: 36px
    }

    .bf-available {
        font-size: 9px;
        gap: 4px
    }

    .bf-product-stores {
        gap: 3px
    }

    .bf-product-stores a {
        height: 30px;
        padding: 2px
    }
}

/* Logos de comercios con mayor área visible */
#lp-buenfin .bf-product-stores a {
    min-height: 56px;
    padding: 2px;
}

#lp-buenfin .bf-product-stores img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 600px) {
    #lp-buenfin .bf-product-stores a {
        min-height: 42px;
    }
}

/* Banner desktop/mobile: las imágenes deben existir en public/LPBuenfin/images */
#lp-buenfin .bf-hero {
    height: auto;
    min-height: 0;
    padding: 0;
    margin: 0;
    background: transparent;
    display: block;
    overflow: hidden
}

#lp-buenfin .bf-hero-picture,
#lp-buenfin .bf-hero-banner {
    display: block;
    width: 100%
}

#lp-buenfin .bf-hero-banner {
    height: auto;
    max-width: 100%;
    object-fit: contain
}

/* Tiendas principales: logos mayores también en mobile */
#lp-buenfin .bf-shops-grid a {
    padding: 5px;
    overflow: hidden
}

#lp-buenfin .bf-shops-grid img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: contain
}

@media(max-width:767px) {
    #lp-buenfin .bf-shops-grid a {
        height: 90px;
        padding: 0
    }

    #lp-buenfin .bf-shops-grid img {
        transform: scale(1.32)
    }
}

/* Newsletter: archivo gráfico local /public/LPBuenfin/images/newsletter.jpg */
#lp-buenfin .bf-newsletter {
    min-height: 310px;
    display: flex;
    align-items: center;
    padding: 40px clamp(20px, 4vw, 70px);
    background: #f7f8f9 url('../images/newsletter.jpg') center center/cover no-repeat;
    color: #003b71
}

#lp-buenfin .bf-newsletter-content {
    width: min(100%, 510px);
    position: relative;
    z-index: 1
}

#lp-buenfin .bf-newsletter h2 {
    font-size: clamp(24px, 2.8vw, 36px);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -.02em;
    margin: 0 0 12px
}

#lp-buenfin .bf-newsletter-subtitle {
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 18px
}

#lp-buenfin .bf-newsletter-form>label:first-child {
    font-size: 14px;
    display: block;
    margin-bottom: 6px
}

#lp-buenfin .bf-newsletter-input {
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 2px solid #003b71
}

#lp-buenfin .bf-newsletter-input input {
    width: 100%;
    min-width: 0;
    flex: 1;
    padding: 10px 0;
    border: 0;
    outline: 0;
    background: transparent;
    font: inherit;
    font-size: 14px;
    color: #003b71
}

#lp-buenfin .bf-newsletter-input input::placeholder {
    color: #6385a7;
    opacity: 1
}

#lp-buenfin .bf-newsletter-input button {
    border: 0;
    background: transparent;
    color: #003b71;
    cursor: pointer;
    display: grid;
    place-items: center;
    padding: 10px
}

#lp-buenfin .bf-newsletter-input button:focus-visible,
#lp-buenfin .bf-newsletter-input input:focus-visible {
    outline: 2px solid #003b71;
    outline-offset: 3px
}

#lp-buenfin .bf-newsletter-consent {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 11px;
    line-height: 1.45;
    margin-top: 16px;
    max-width: 500px
}

#lp-buenfin .bf-newsletter-consent input {
    flex: none;
    margin-top: 2px;
    accent-color: #003b71
}

#lp-buenfin .bf-newsletter-status {
    min-height: 18px;
    font-size: 12px;
    line-height: 1.4;
    margin: 8px 0 0
}

#lp-buenfin .bf-newsletter-status[data-error="true"] {
    color: #ac1e25
}

@media(max-width:767px) {
    #lp-buenfin .bf-newsletter {
        min-height: 360px;
        padding: 32px 20px;
        background-position: 65% center;
        position: relative
    }

    #lp-buenfin .bf-newsletter:before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(90deg, rgba(255, 255, 255, .97), rgba(255, 255, 255, .9) 60%, rgba(255, 255, 255, .33))
    }

    #lp-buenfin .bf-newsletter-content {
        max-width: 100%
    }

    #lp-buenfin .bf-newsletter h2 {
        font-size: 25px
    }
}


/* Ajuste definitivo de logos dentro de las tarjetas */
#lp-buenfin .bf-product-stores {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
}

#lp-buenfin .bf-product-stores a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 38px;
    padding: 5px 10px;
    overflow: hidden;
}

#lp-buenfin .bf-product-stores a img {
    display: block;
    width: auto;
    height: auto;
    max-width: 95px;
    max-height: 70px;
    object-fit: contain;
}

/* Pantallas grandes */
@media (min-width: 1600px) {
    #lp-buenfin .bf-product-stores a img {
        max-width: 95px;
        max-height: 84px;
    }
}

/* Móviles */
@media (max-width: 767px) {
    #lp-buenfin .bf-product-stores a {
        height: 46px;
        padding: 14px;
    }

    #lp-buenfin .bf-product-stores a img {
        max-width: 85px;
        max-height: 42px;
    }
}