/* =========================================
   1. GLOBAL
========================================= */
body {
    font-family: 'Poppins', sans-serif;
    background: #fff7fc;
    color: #5b4ca7;
    overflow-x: hidden;
}

.text-purple {
    color: #5b4ca7;
}

.text-accent {
    color: #ff9ad9;
}

.section-title {
    font-family: 'Baloo 2', cursive;
    font-weight: 700;
}


/* =========================================
   2. NAVBAR
   (navbar-mely con 3 columnas: left/center/right)
========================================= */
.navbar-nav .nav-link {
    font-size: 1.1rem;
    font-weight: 500;
    color: #5b4ca7 !important;
}

.navbar-nav .nav-link:hover {
    opacity: 0.8;
}

.btn-danger {
    background: #ff8e74 !important;
    border: none;
    font-weight: 500;
}

/* Base de estructura para la navbar de Mely */
.navbar-mely .navbar-nav {
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.navbar-mely .nav-left,
.navbar-mely .nav-center,
.navbar-mely .nav-right {
    display: flex;
    align-items: center;
}

/* NAVBAR SOBRE FONDO OSCURO */
.navbar-mely-dark .nav-link {
    color: #ffffff !important;
}

.navbar-mely-dark .nav-link:hover {
    opacity: 0.9;
}

.navbar-mely-dark .navbar-brand {
    color: #ffffff !important;
}

.navbar-mely-dark .btn-danger {
    color: #ffffff !important;
}


/* ----- Desktop (>= 992px) ----- */
@media (min-width: 1300px){

    /* pequeño corrimiento general que ya ajustaste */
    .navbar-mely {
        transform: translateX(-100px);
    }

    /* bloque de links centrados pero un poco hacia la izquierda */
    .navbar-mely .nav-center {
        justify-content: center;
        margin-right: 200px;      /* AJUSTA este valor si quieres afinar */
    }

    /* botón comprar más hacia adentro */
    .navbar-mely .nav-right {
        justify-content: flex-end;
        padding-right: 80px;      /* AJUSTABLE también */
    }
}

/* ----- Desktop (>= 992px) ----- */
@media (min-width: 768px) and (max-width: 1299.98px){

    /* pequeño corrimiento general que ya ajustaste */
    .navbar-mely {
        transform: translateX(-30px);
    }

    /* bloque de links centrados pero un poco hacia la izquierda */
    .navbar-mely .nav-center {
        justify-content: center;
        margin-right: 200px;      /* AJUSTA este valor si quieres afinar */
    }

    /* botón comprar más hacia adentro */
    .navbar-mely .nav-right {
        justify-content: flex-end;
        padding-right: 80px;      /* AJUSTABLE también */
    }
}



/* ----- Mobile / tablet (< 992px) ----- */
@media (max-width: 991.98px) {

    .navbar-mely {
        transform: none;
        padding-inline: 16px;
    }

    /* la columna izquierda no es necesaria en mobile */
    .navbar-mely .nav-left {
        display: none;
    }

    .navbar-mely .nav-center {
        margin-right: 0;
        justify-content: end;
    }

    .navbar-mely .nav-right {
        flex-grow: 1;
        justify-content: flex-end;
        padding-right: 0;
    }
}


/* ==========================
   HERO – BASE (DESKTOP / TABLET)
========================== */
.hero {
    background-image: url('https://pinatitasmely.shop/assets/img/back_pinatitas_mely.png');
    background-size: cover;
    background-position: center;
    height: 100vh;
    padding-top: 40px;   /* espacio para el nav */
    background-repeat: no-repeat;
}


/* Base sin márgenes fijos: solo limitamos ancho */
.hero-text-adjust {
    max-width: 480px;
    margin-top: 280px;
}

/* Título del hero con estilo infantil */
.hero h1 {
    font-family: 'Baloo 2', cursive;
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    margin-top: 10px;
}

/* Botones principales */
.btn-explorar,
.btn-info {
    background: #8ee7ef !important;
    border: none;
    font-weight: 500;
    padding: 12px 30px;
    border-radius: 30px;
}

/* Contenedor de botones dentro del hero */
.hero-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 1.2rem;
}

.hero-actions .btn {
    white-space: nowrap;
}


/* ---------- HERO: BREAKPOINTS ---------- */

/* ≥ 1400px – tu resolución (1536x864) y similares */
@media (min-width: 1400px) {
    .hero-text-adjust {
        margin-top: 310px;   /* como lo ajustaste manualmente */
        margin-left: 120px;
    }
}

/* 1200px – 1399px */
@media (min-width: 1200px) and (max-width: 1399.98px) {
    .hero-text-adjust {
        margin-top: 260px;
        margin-left: 90px;
    }
}

/* 992px – 1199px */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .hero-text-adjust {
        margin-top: 220px;
        margin-left: 60px;
    }
}


/* < 992px – mobile / tablet vertical */
@media (max-width: 922px) {

    .hero {
        background-image: url('https://pinatitasmely.shop/assets/img/mobile_pinatitas_mely.png') !important;
        padding-top: 110px;
        text-align: center;
        background-size: cover;
    }

    .hero-text-adjust {
        margin-top: 180px;
        margin-left: 0;
        margin-right: 150px;
        text-align: center;
        max-width: 100%;
    }

    .hero h1 {
        font-size: 2.4rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-actions {
        justify-content: center;
        flex-wrap: wrap;   /* por si alguna pantalla es muy estrecha */
    }
}

/* < 992px – mobile / tablet vertical */
@media (max-width: 768px) {

    .hero {
        background-image: url('https://pinatitasmely.shop/assets/img/pinatitas_mely_backmedio.png') !important;
        padding-top: 110px;
        text-align: center;
        background-size: cover;
    }

    .hero-text-adjust {
        margin-top: 180px;
        margin-left: 0;
        margin-right: 270px;
        text-align: center;
        max-width: 100%;
    }

    .hero h1 {
        font-size: 2.4rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-actions {
        justify-content: center;
        flex-wrap: wrap;   /* por si alguna pantalla es muy estrecha */
    }
}

@media (max-width: 660px) {

    .hero {
        background-image: url('https://pinatitasmely.shop/assets/img/mobile_pinatitas_mely2.png') !important;
        padding-top: 110px;
        text-align: center;
        background-size: contain;
    }

    .hero-text-adjust {
        margin-top: 80px;
        margin-left: 0;
        margin-right: 0;
        text-align: center;
        max-width: 100%;
    }

    .hero h1 {
        font-size: 2.4rem;
        margin-right: 240px;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-actions {
        justify-content: center;
        flex-wrap: wrap;   /* por si alguna pantalla es muy estrecha */
    }
}

/* < 992px – mobile / tablet vertical */
@media (max-width: 480px) {

    .hero {
        background-image: url('https://pinatitasmely.shop/assets/img/mobile_pinatitas_mely2.png') !important;
        padding-top: 110px;
        text-align: center;
        background-size: contain;
    }

    .hero-text-adjust {
        margin-top: 80px;
        margin-left: 0;
        margin-right: 0;
        text-align: center;
        max-width: 100%;
    }

    .hero h1 {
        font-size: 2.4rem;
        margin-right: 240px;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-actions {
        justify-content: center;
        flex-wrap: wrap;   /* por si alguna pantalla es muy estrecha */
    }
}


/* =========================================
   4. CATEGORÍAS
========================================= */
.categorias {
    padding: 60px 20px;
    text-align: center;
}

.cat-card {
    display: block;
    text-align: center;
    padding: 40px 10px;
    border-radius: 20px;
    color: white;
    font-size: 1.3rem;
    font-weight: 600;
    transition: transform .2s ease;
}

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

.cat-superheroes { background: #ff5757; }
.cat-ninas       { background: #ffa8e8; }
.cat-anime       { background: #ffe066; }
.cat-navidad    { background: #16a085; }


/* =========================================
   5. GALERÍA
========================================= */
.galeria-img {
    height: 200px;
    width: auto;
    border-radius: 20px;
}

.galeria-scroll::-webkit-scrollbar {
    height: 8px;
}

.galeria-scroll::-webkit-scrollbar-thumb {
    background: #d3c0ff;
    border-radius: 20px;
}


/* =========================================
   6. PRODUCTOS DESTACADOS
========================================= */
.card {
    border-radius: 20px !important;
    border: none;
}

.card-img-top {
    height: 230px;
    object-fit: cover;
    border-radius: 20px 20px 0 0 !important;
}

.btn-whatsapp {
    display: block;
    background: #25d366;
    padding: 10px;
    border-radius: 999px;
    text-align: center;
    color: white;
    font-weight: 500;
}


/* =========================================
   7. FOOTER
========================================= */
.footer {
    padding: 20px;
    text-align: center;
    font-size: 1rem;
}

.footer a {
    font-size: 1rem;
    font-weight: 500;
}



/* ==========================
   HERO – ALTURA SEGÚN ORIENTACIÓN
   SOLO MÓVILES (limitado por ALTURA)
========================== */

/* Teléfonos en vertical: dejamos 100vh */
@media screen and (orientation: portrait) and (max-height: 575.98px) {
    .hero {
        height: 100vh;
    }
}

/* Teléfonos en horizontal: usamos 150vh */
@media screen and (orientation: landscape) and (max-height: 575.98px) {
    .hero {
        height: 150vh;
    }
}

