*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body{
    background: #070707;
    color: white;
}

.header{
    width: 100%;
    background: #000;
    border-bottom: 1px solid rgba(255,255,255,.15);
    padding: 10px 6%;
    text-align: center;
}

.logo{
    width: 130px;
    margin-bottom: 10px;
}

.header nav{
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.header nav a{
    color: white;
    text-decoration: none;
    font-size: .95rem;
    opacity: .9;
}

.header nav a:hover{
    opacity: 1;
}

.marketplace{
    padding: 40px 6%;
}

.market-hero{
    text-align: center;
    padding: 20px 0 55px;
}

.market-hero h1{
    font-size: 2rem;
    margin-bottom: 55px;
}

.beneficios{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
    text-align: left;
}

.beneficios i{
    color: #00d26a;
    font-size: 1.6rem;
    margin-bottom: 20px;
}

.beneficios h3{
    margin-bottom: 8px;
}

.beneficios p{
    color: #cfcfcf;
    font-size: .95rem;
}

.stories{
    display: flex;
    gap: 24px;
    overflow-x: auto;
    padding: 20px 0 40px;
}

.story{
    min-width: 90px;
    text-align: center;
}

.story img{
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #ff4da6;
    padding: 3px;
}

.story span{
    display: block;
    margin-top: 8px;
    font-size: .9rem;
}

.perfiles-header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.perfiles-header h2{
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.perfiles-header h3{
    font-size: 1.2rem;
}

.perfiles-header h3 i{
    color: #c89b3c;
    margin-right: 8px;
}

.btn-filtros{
    background: #151515;
    color: white;
    border: 1px solid rgba(255,255,255,.25);
    padding: 12px 24px;
    border-radius: 30px;
    cursor: pointer;
}

.grid-perfiles{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.card-perfil{
    position: relative;
    height: 390px;
    border-radius: 8px;
    overflow: hidden;
    background: #111;
    cursor: pointer;
}

.card-perfil img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .35s ease;
}

.card-perfil:hover img{
    transform: scale(1.05);
}

.badge{
    position: absolute;
    top: 12px;
    left: 12px;
    background: #2fb344;
    color: white;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: .8rem;
    font-weight: 600;
}

.like{
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0,0,0,.45);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
}

.card-info{
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 18px;
    background: linear-gradient(transparent, rgba(0,0,0,.95));
}

.card-info h3{
    font-size: 1.3rem;
    color: white;
}

.card-info p{
    color: #ddd;
    font-size: .9rem;
}

.empty{
    color: #aaa;
    padding: 40px 0;
}

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

@media(max-width: 750px){
    .beneficios{
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .grid-perfiles{
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width: 520px){
    .header nav{
        gap: 18px;
    }

    .market-hero h1{
        font-size: 1.5rem;
    }

    .grid-perfiles{
        grid-template-columns: 1fr;
    }

    .card-perfil{
        height: 430px;
    }
}


.oculto {
    display: none !important;
}


@media (max-width: 768px) {

    .market-hero {
        padding: 20px 16px;
    }

    .market-hero h1 {
        font-size: 1.5rem;
        margin-bottom: 18px;
    }

    .beneficios {
        display: flex;
        overflow-x: auto;
        gap: 12px;
        padding-bottom: 8px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .beneficios::-webkit-scrollbar {
        display: none;
    }

    .beneficios > div {
        flex: 0 0 220px;
        min-height: 140px;
        scroll-snap-align: center;
    }

}

.age-modal{
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;

    background: rgba(0,0,0,.45);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.age-modal.show{
    display: flex;
}

.age-box{
    width: min(92%, 500px);
    background: linear-gradient(180deg, #151515, #090909);
    color: white;
    padding: 38px 34px;
    border-radius: 22px;
    text-align: center;

    border: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 25px 80px rgba(0,0,0,.75);
}

.age-box::before{
    content: "";
    display: block;
    width: 95px;
    height: 95px;
    margin: 0 auto 18px;
    background-image: url("/assets/img/logo.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.age-box h2{
    font-size: 1.45rem;
    margin-bottom: 14px;
}

.age-box p{
    color: #d6d6d6;
    line-height: 1.6;
    font-size: .95rem;
    margin-bottom: 12px;
}

.age-box ul{
    list-style: none;
    margin: 22px 0;
    text-align: left;
    background: rgba(255,255,255,.045);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 14px;
    padding: 16px 18px;
}

.age-box li{
    color: #e9e9e9;
    font-size: .93rem;
    margin: 8px 0;
}

.age-buttons{
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 26px;
}

.age-buttons button{
    padding: 13px 20px;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 700;
    transition: .25s ease;
}

#acceptAge{
    background: linear-gradient(135deg, #ff2f8b, #c9005a);
    color: white;
    box-shadow: 0 10px 25px rgba(255,47,139,.25);
}

#acceptAge:hover{
    transform: translateY(-2px);
}

#rejectAge{
    background: rgba(255,255,255,.08);
    color: #ddd;
    border: 1px solid rgba(255,255,255,.14);
}

#rejectAge:hover{
    background: rgba(255,255,255,.14);
}

@media(max-width: 520px){
    .age-box{
        padding: 30px 22px;
        border-radius: 18px;
    }

    .age-buttons{
        flex-direction: column;
    }

    .age-buttons button{
        width: 100%;
    }
}
.footer{
    width: 100%;
    padding: 28px 20px;
    background: #050505;
    border-top: 1px solid rgba(255,255,255,.06);
    text-align: center;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.footer p{
    margin: 0;
    color: #aaa;
    font-size: .9rem;
}

.footer-links{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.footer-links a{
    color: #aaa;
    text-decoration: none;
    font-size: .9rem;
}

.footer-links a:hover{
    color: #c89b3c;
}


.imagen-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.imagen-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.imagen-wrapper::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120px;   /* tamaño del logo */
  height: 120px;
  background: url("/assets/img/logo.png") no-repeat center;
  background-size: contain;
  opacity: 0.2;   /* transparencia para que no tape la foto */
  transform: translate(-50%, 10%);
  pointer-events: none; /* no bloquea clics */
}


.filtros-categoria{
    display:flex;
    gap:12px;
    margin:25px 0;
    justify-content:flex-start;
    flex-wrap:wrap;
}
.filtro-btn{
    display:flex;
    align-items:center;
    gap:8px;

    padding:12px 22px;

    background:#000;
    color:#fff;

    border:1px solid rgba(255,255,255,.25);
    border-radius:12px;

    cursor:pointer;
    transition:all .25s ease;
}

.filtro-btn i{
    font-size:0.9rem;
}

.filtro-btn:hover{
    border-color:#fff;
    transform:translateY(-2px);

    box-shadow:
        0 0 0 1px rgba(255,255,255,.15),
        0 10px 25px rgba(0,0,0,.35);
}

.filtro-btn.activo{
    background:#fff !important;
    color:#000 !important;
    border-color:#fff !important;

    box-shadow:
        0 0 20px rgba(255,255,255,.2),
        0 0 40px rgba(255,255,255,.1);
}