/*
Theme Name: SorprendeBonito Child
Theme URI: https://sorprendebonito.mx
Description: Tema personalizado para SorprendeBonito MX.
Author: HRSOFT
Author URI: https://sorprendebonito.mx
Template: hello-elementor
Version: 1.0.0
Text Domain: sorprendebonito-child
*/

/* =====================================================
   HOME HERO
===================================================== */

.sb-home-hero{
    position:relative;
    display:flex;
    align-items:center;
    min-height:620px;
    overflow:hidden;

    background-image:
        linear-gradient(
            90deg,
            rgba(255,247,244,.98) 0%,
            rgba(255,247,244,.94) 28%,
            rgba(255,247,244,.72) 43%,
            rgba(255,247,244,.25) 57%,
            rgba(255,247,244,0) 72%
        ),
        url('/wp-content/uploads/2026/05/background-1.png');

    background-size:auto 108%;
    background-position:right top;
    background-repeat:no-repeat;
    background-color:#fff7f4;
}

.sb-home-hero__content{
    position:relative;
    z-index:2;
    width:min(560px,90%);
    margin-left:clamp(55px,7vw,92px);
    margin-top:-10px;
}

.sb-home-hero__content h1{
    margin:0 0 24px;
    font-family:Georgia,serif;
    font-size:clamp(48px,5.3vw,78px);
    line-height:.95;
    font-weight:500;
    color:#b98232;
}

.sb-home-hero__content h1 span{
    color:#ef3b8a;
    font-style:italic;
}

.sb-home-hero__content p{
    max-width:500px;
    font-size:21px;
    line-height:1.45;
    color:#7a4a27;
    margin-bottom:34px;
}

.sb-home-hero__buttons{
    display:flex;
    flex-wrap:wrap;
    gap:16px;
    margin-bottom:48px;
}

.sb-home-hero__benefits{
    display:flex;
    flex-wrap:wrap;
    gap:24px;
    color:#7a4a27;
    font-size:16px;
}

.sb-home-hero__image{
    display:none;
}

/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width:900px){

    .sb-home-hero{
        min-height:auto;
        padding:70px 0;
        background-size:cover;
        background-position:70% center;
    }

    .sb-home-hero__content{
        width:calc(100% - 48px);
        margin:0 auto;
    }

    .sb-home-hero__content h1{
        font-size:54px;
    }

    .sb-home-hero__content p{
        font-size:19px;
    }

    .sb-home-hero__buttons{
        gap:16px;
    }

    .sb-home-hero__benefits{
        gap:18px;
        font-size:16px;
    }
}

/* =====================================================
   HOME HERO ANIMATIONS
===================================================== */

.sb-header{
    animation: sbHeaderDown .7s ease both;
}

.sb-home-hero::before{
    content:"";
    position:absolute;
    inset:0;
    background:inherit;
    background-size:inherit;
    background-position:inherit;
    background-repeat:inherit;
    z-index:0;
    animation: sbHeroZoom 7s ease-out both;
}

.sb-home-hero::after{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(
        90deg,
        rgba(255,247,244,.98) 0%,
        rgba(255,247,244,.90) 30%,
        rgba(255,247,244,.40) 55%,
        rgba(255,247,244,0) 75%
    );
    z-index:1;
    pointer-events:none;
}

.sb-home-hero{
    background-image:url('/wp-content/uploads/2026/05/background-1.png');
}

.sb-home-hero__content{
    opacity:0;
    transform:translateX(-28px);
    animation: sbFadeLeft .9s ease .25s both;
}

.sb-home-hero__content h1{
    opacity:0;
    transform:translateY(18px);
    animation: sbFadeUp .8s ease .35s both;
}

.sb-home-hero__content p{
    opacity:0;
    transform:translateY(18px);
    animation: sbFadeUp .8s ease .5s both;
}

.sb-home-hero__buttons{
    opacity:0;
    transform:translateY(18px);
    animation: sbFadeUp .8s ease .65s both;
}

.sb-home-hero__benefits{
    opacity:0;
    transform:translateY(18px);
    animation: sbFadeUp .8s ease .8s both;
}

@keyframes sbHeaderDown{
    from{
        opacity:0;
        transform:translateY(-18px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}

@keyframes sbFadeLeft{
    from{
        opacity:0;
        transform:translateX(-28px);
    }
    to{
        opacity:1;
        transform:translateX(0);
    }
}

@keyframes sbFadeUp{
    from{
        opacity:0;
        transform:translateY(18px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}

@keyframes sbHeroZoom{
    from{
        transform:scale(1.04);
    }
    to{
        transform:scale(1);
    }
}

/* =====================================================
   BOTONES HERO
===================================================== */

.sb-btn-primary,
.sb-btn-outline{

    position:relative;
    overflow:hidden;

    transition:
        transform .28s ease,
        box-shadow .28s ease,
        background .28s ease,
        color .28s ease,
        border-color .28s ease;
}

/* ---------- Botón principal ---------- */

.sb-btn-primary:hover{

    transform:translateY(-4px);

    box-shadow:
        0 18px 35px rgba(239,59,138,.28),
        0 6px 14px rgba(239,59,138,.20);
}

.sb-btn-primary:active{

    transform:translateY(-1px) scale(.98);
}

/* ---------- Botón secundario ---------- */

.sb-btn-outline:hover{

    background:#ef3b8a;
    color:#fff;
    border-color:#ef3b8a;

    transform:translateY(-4px);

    box-shadow:
        0 18px 35px rgba(239,59,138,.20);
}

.sb-btn-outline:active{

    transform:translateY(-1px) scale(.98);
}

/* ---------- Efecto brillo ---------- */

.sb-btn-primary::before,
.sb-btn-outline::before{

    content:"";

    position:absolute;

    top:0;
    left:-120%;

    width:70%;
    height:100%;

    background:
        linear-gradient(
            120deg,
            transparent,
            rgba(255,255,255,.45),
            transparent
        );

    transform:skewX(-22deg);

    transition:left .65s ease;
}

.sb-btn-primary:hover::before,
.sb-btn-outline:hover::before{

    left:150%;
}

/* ===========================
   BOTÓN WHATSAPP
=========================== */

.sb-btn-outline{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:10px;
}

.sb-whatsapp-icon{
    width:28px;
    height:28px;
    display:block;
    flex-shrink:0;
    transition:.3s ease;

    /* Si el SVG es negro */
    filter: invert(39%) sepia(89%) saturate(2210%)
            hue-rotate(307deg) brightness(98%) contrast(91%);
}

.sb-btn-outline:hover .sb-whatsapp-icon{
    filter:brightness(0) invert(1);
}
/* ===========================
   BENEFICIOS
=========================== */

.sb-home-hero__benefits{
    display:flex;
    align-items:center;
    gap:28px;
    margin-top:6px;
}

.sb-benefit{
    display:flex;
    align-items:center;
    gap:14px;
}

.sb-benefit img{
    width:42px;
    height:auto;
    flex-shrink:0;
}

.sb-benefit span{
    font-size:18px;
    color:#7a4a27;
    font-weight:500;
    white-space:nowrap;
}

.sb-divider{
    width:2px;
    height:42px;
    background:#e4c9b3;
    border-radius:20px;
}

@media (max-width:900px){

    .sb-home-hero__benefits{
        flex-direction:column;
        align-items:flex-start;
        gap:18px;
    }

    .sb-divider{
        display:none;
    }

    .sb-benefit img{
        width:34px;
    }

    .sb-benefit span{
        font-size:17px;
    }
}

/* =====================================================
   HOME CATEGORIES
===================================================== */

.sb-home-categories{
    background:#fffaf8;
    padding:55px 40px 70px;
}

.sb-section-title{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:24px;
    margin-bottom:42px;
}

.sb-section-title span{
    width:150px;
    height:1px;
    background:#d7a95f;
}

.sb-section-title h2{
    margin:0;
    font-family:Georgia,serif;
    font-size:32px;
    font-weight:500;
    color:#9a6530;
    text-align:center;
}

.sb-section-title h2::after{
    content:"♥";
    display:block;
    color:#ef3b8a;
    font-size:14px;
    line-height:1;
    margin-top:5px;
}

.sb-category-grid{
    max-width:1220px;
    margin:0 auto;
    display:grid;
    grid-template-columns:repeat(5,1fr);
    gap:34px;
}

.sb-category-card{
    text-align:center;
    text-decoration:none;
    color:#7a4a27;
}

.sb-category-card img{
    width:145px;
    height:145px;
    object-fit:cover;
    border-radius:28px;
    display:block;
    margin:0 auto 18px;
    box-shadow:0 14px 28px rgba(122,74,39,.08);
    transition:transform .3s ease, box-shadow .3s ease;
}

.sb-category-card h3{
    margin:0 0 12px;
    font-family:Georgia,serif;
    font-size:18px;
    font-weight:500;
    color:#7a4a27;
}

.sb-category-card span{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:9px 22px;
    border:1.5px solid #ef3b8a;
    border-radius:4px;
    color:#ef3b8a;
    text-transform:uppercase;
    font-size:12px;
    font-weight:800;
    transition:.3s ease;
}

.sb-category-card:hover img{
    transform:translateY(-6px);
    box-shadow:0 20px 35px rgba(122,74,39,.14);
}

.sb-category-card:hover span{
    background:#ef3b8a;
    color:#fff;
}

@media (max-width:900px){
    .sb-category-grid{
        grid-template-columns:repeat(2,1fr);
        gap:28px;
    }

    .sb-section-title span{
        width:55px;
    }
}

@media (max-width:520px){
    .sb-category-grid{
        grid-template-columns:1fr;
    }
}

/* =====================================================
   SCROLL REVEAL - CATEGORIES
===================================================== */

.sb-home-categories .sb-section-title,
.sb-category-card{
    opacity:0;
    transform:translateY(28px);
    transition:
        opacity .75s ease,
        transform .75s ease;
}

.sb-home-categories.sb-visible .sb-section-title,
.sb-category-card.sb-visible{
    opacity:1;
    transform:translateY(0);
}

/* =====================================================
   HOW IT WORKS
===================================================== */

.sb-how{
    background:#fffaf8;
    padding:60px 40px 80px;
}

.sb-how-grid{
    max-width:1180px;
    margin:0 auto;
    display:grid;
    grid-template-columns:1fr 60px 1fr 60px 1fr 60px 1fr;
    align-items:start;
    gap:10px;
}

.sb-how-step{
    text-align:center;
    color:#7a4a27;
}

.sb-how-icon{
    width:112px;
    height:112px;
    border:1.5px solid rgba(239,59,138,.45);
    border-radius:50%;
    margin:0 auto 18px;
    display:flex;
    align-items:center;
    justify-content:center;
    position:relative;
}

.sb-how-icon img{
    width:52px;
    height:52px;
    object-fit:contain;
}

.sb-how-icon small{
    position:absolute;
    left:-6px;
    bottom:10px;
    width:22px;
    height:22px;
    background:#ef3b8a;
    color:#fff;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:12px;
    font-weight:700;
}

.sb-how-step h3{
    margin:0 0 8px;
    font-family:Georgia,serif;
    font-size:20px;
    font-weight:500;
    color:#7a4a27;
}

.sb-how-step p{
    margin:0 auto;
    max-width:190px;
    font-size:15px;
    line-height:1.45;
    color:#7a4a27;
}

.sb-how-arrow{
    color:#ef3b8a;
    font-size:28px;
    text-align:center;
    padding-top:45px;
}

@media(max-width:900px){
    .sb-how-grid{
        grid-template-columns:1fr;
        gap:34px;
    }

    .sb-how-arrow{
        display:none;
    }
}

/* =====================================================
   SCROLL REVEAL - HOW IT WORKS
===================================================== */

.sb-how .sb-section-title,
.sb-how-step,
.sb-how-arrow{
    opacity:0;
    transform:translateY(28px);
    transition:
        opacity .75s ease,
        transform .75s ease;
}

.sb-how.sb-visible .sb-section-title,
.sb-how-step.sb-visible,
.sb-how-arrow.sb-visible{
    opacity:1;
    transform:translateY(0);
}

/* =====================================================
   FEATURED PRODUCTS
===================================================== */

.sb-featured-products{
    background:#fffaf8;
    padding:64px 40px 78px;
}

.sb-featured-grid{
    max-width:1180px;
    margin:0 auto;
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:30px;
}

.sb-featured-card{
    background:#fff;
    border:1px solid #f2e4dd;
    border-radius:14px;
    overflow:hidden;
    box-shadow:0 12px 28px rgba(122,74,39,.08);
    transition:
        transform .32s ease,
        box-shadow .32s ease,
        border-color .32s ease;
}

.sb-featured-card:hover{
    transform:translateY(-8px);
    box-shadow:0 22px 42px rgba(122,74,39,.14);
    border-color:#f5c7d9;
}

.sb-featured-img{
    display:block;
    overflow:hidden;
    background:#fff7f4;
}

.sb-featured-img img{
    width:100%;
    height:210px;
    object-fit:cover;
    display:block;
    transition:transform .45s ease;
}

.sb-featured-card:hover .sb-featured-img img{
    transform:scale(1.055);
}

.sb-featured-content{
    padding:18px 16px 22px;
    text-align:center;
}

.sb-featured-content h3{
    margin:0 0 8px;
    font-family:Georgia,serif;
    font-size:18px;
    font-weight:500;
    line-height:1.25;
}

.sb-featured-content h3 a{
    color:#7a4a27;
    text-decoration:none;
}

.sb-featured-price{
    margin-bottom:16px;
    color:#7a4a27;
    font-size:15px;
    font-weight:600;
}

.sb-featured-price del{
    opacity:.55;
    margin-right:6px;
}

.sb-featured-price ins{
    text-decoration:none;
    color:#ef3b8a;
}

.sb-featured-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:135px;
    padding:10px 22px;
    border-radius:5px;
    background:#ef3b8a;
    color:#fff;
    text-decoration:none;
    text-transform:uppercase;
    font-size:12px;
    font-weight:800;
    letter-spacing:.4px;
    transition:
        transform .28s ease,
        box-shadow .28s ease,
        background .28s ease;
}

.sb-featured-btn:hover{
    background:#d92f79;
    color:#fff;
    transform:translateY(-3px);
    box-shadow:0 12px 24px rgba(239,59,138,.22);
}

.sb-featured-more{
    text-align:center;
    margin-top:34px;
}

.sb-featured-more a{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:280px;
    padding:11px 28px;
    border:1.5px solid #ef3b8a;
    border-radius:5px;
    color:#ef3b8a;
    background:transparent;
    text-decoration:none;
    text-transform:uppercase;
    font-size:12px;
    font-weight:800;
    letter-spacing:.8px;
    transition:
        background .28s ease,
        color .28s ease,
        transform .28s ease,
        box-shadow .28s ease;
}

.sb-featured-more a:hover{
    background:#ef3b8a;
    color:#fff;
    transform:translateY(-3px);
    box-shadow:0 14px 28px rgba(239,59,138,.18);
}

@media(max-width:1000px){
    .sb-featured-grid{
        grid-template-columns:repeat(2,1fr);
    }
}

@media(max-width:560px){
    .sb-featured-products{
        padding:54px 22px 68px;
    }

    .sb-featured-grid{
        grid-template-columns:1fr;
    }

    .sb-featured-img img{
        height:260px;
    }

    .sb-featured-more a{
        min-width:100%;
    }
}

/* =====================================================
   SCROLL REVEAL - FEATURED PRODUCTS
===================================================== */

.sb-featured-products .sb-section-title,
.sb-featured-card,
.sb-featured-more{
    opacity:0;
    transform:translateY(28px);
    transition:
        opacity .75s ease,
        transform .75s ease;
}

.sb-featured-products.sb-visible .sb-section-title,
.sb-featured-card.sb-visible,
.sb-featured-more.sb-visible{
    opacity:1;
    transform:translateY(0);
}

/* =====================================================
   INSTAGRAM SECTION
===================================================== */

.sb-instagram{
    background:#fffaf8;
    padding:62px 40px 78px;
}

.sb-instagram-grid{
    max-width:1230px;
    margin:0 auto;
    display:grid;
    grid-template-columns:repeat(6,1fr);
    gap:18px;
}

.sb-instagram-item{
    position:relative;
    display:block;
    overflow:hidden;
    border-radius:8px;
    box-shadow:0 12px 28px rgba(122,74,39,.08);
}

.sb-instagram-item img{
    width:100%;
    aspect-ratio:1 / 1;
    object-fit:cover;
    display:block;
    transition:transform .45s ease;
}

.sb-instagram-overlay{
    position:absolute;
    inset:0;
    background:rgba(239,59,138,.72);
    display:flex;
    align-items:center;
    justify-content:center;
    opacity:0;
    transition:opacity .3s ease;
}

.sb-instagram-overlay span{
    color:#fff;
    font-size:12px;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.6px;
}

.sb-instagram-item:hover img{
    transform:scale(1.07);
}

.sb-instagram-item:hover .sb-instagram-overlay{
    opacity:1;
}

.sb-instagram-button-wrap{
    text-align:center;
    margin-top:28px;
}

.sb-instagram-button{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:280px;
    padding:11px 28px;
    border:1.5px solid #ef3b8a;
    border-radius:5px;
    color:#ef3b8a;
    background:#fff;
    text-decoration:none;
    text-transform:uppercase;
    font-size:12px;
    font-weight:800;
    letter-spacing:.8px;
    transition:.28s ease;
}

.sb-instagram-button img{
    width:28px;
    height:28px;
    display:block;
    object-fit:contain;
    flex-shrink:0;
}

.sb-instagram-button:hover{
    background:#ef3b8a;
    color:#fff;
    transform:translateY(-3px);
    box-shadow:0 14px 28px rgba(239,59,138,.18);
}

@media(max-width:1000px){
    .sb-instagram-grid{
        grid-template-columns:repeat(3,1fr);
    }
}

@media(max-width:560px){
    .sb-instagram{
        padding:54px 22px 68px;
    }

    .sb-instagram-grid{
        grid-template-columns:repeat(2,1fr);
        gap:14px;
    }

    .sb-instagram-button{
        min-width:100%;
    }
}

/* =====================================================
   SCROLL REVEAL - INSTAGRAM
===================================================== */

.sb-instagram .sb-section-title,
.sb-instagram-item,
.sb-instagram-button-wrap{
    opacity:0;
    transform:translateY(28px);
    transition:
        opacity .75s ease,
        transform .75s ease;
}

.sb-instagram.sb-visible .sb-section-title,
.sb-instagram-item.sb-visible,
.sb-instagram-button-wrap.sb-visible{
    opacity:1;
    transform:translateY(0);
}

.sb-instagram-button{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:10px;

    color:#ef3b8a;

    transition:
        background .28s ease,
        color .28s ease,
        transform .28s ease,
        box-shadow .28s ease;
}

.sb-instagram-button img{
    width:24px;
    height:24px;
    display:block;
    color:inherit;
}
.sb-instagram-button:hover{
    background:#ef3b8a;
    color:#fff;
    transform:translateY(-3px);
    box-shadow:0 14px 28px rgba(239,59,138,.18);
}