/* Scroll-reveal: elementos que aparecen al entrar en el viewport */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Tipografia: titulos con serif elegante, texto en sans-serif limpia */
body {
    font-family: 'Poppins', sans-serif;
}

h1, h2, h3, h4, h5, h6,
.site-brand,
.navbar-brand {
    font-family: 'Playfair Display', serif;
}

.site-brand {
    color: var(--sp-dark);
    font-weight: 700;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    line-height: 1;
}

.site-logo {
    height: 48px;
}

.nav-tagline {
    display: none;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: var(--sp-gold);
    font-size: 0.8rem;
    white-space: normal;
    line-height: 1.2;
    margin-top: 0.15rem;
}

@media (min-width: 576px) {
    .nav-tagline {
        display: block;
        max-width: 260px;
    }
}

@media (min-width: 768px) {
    .site-logo {
        height: 60px;
    }
}

/* Sombra en el header solo al hacer scroll (no desde el arranque) */
.site-navbar {
    transition: box-shadow 0.2s ease;
}

.site-navbar.is-scrolled {
    box-shadow: 0 2px 14px rgba(59, 47, 47, 0.12);
}

/* Aparicion suave de las fotos de contenido al cargar */
.fade-img {
    opacity: 0;
    transition: opacity 0.4s ease;
}

.fade-img.is-loaded {
    opacity: 1;
}

/* Efecto hover en el boton de WhatsApp */
#whatsappBtn {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#whatsappBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(25, 135, 84, 0.35);
}

/* Buscador estilo pill */
.search-group .form-control {
    border-radius: 999px 0 0 999px !important;
    border-color: var(--sp-beige);
    padding-left: 1rem;
}

.search-group .btn {
    border-radius: 0 999px 999px 0 !important;
}

/* Subrayado animado en el menu principal */
.navbar-nav .nav-link {
    position: relative;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 0.2rem;
    height: 2px;
    background-color: var(--sp-gold);
    transform: scaleX(0);
    transition: transform 0.25s ease;
}

.navbar-nav .nav-link:hover::after {
    transform: scaleX(1);
}

/* Iconos de redes sociales en el footer */
.social-icon {
    color: #fff;
    transition: color 0.25s ease, transform 0.25s ease;
    display: inline-flex;
}

.social-icon:hover {
    color: var(--sp-gold);
    transform: translateY(-3px);
}

/* Sección imagen de marca */
.section-brand {
    position: relative;
    overflow: hidden;
    height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Escritorio: parallax con background-attachment:fixed */
@media (min-width: 768px) {
    .section-brand {
        background-attachment: fixed;
        background-size: contain;
        background-position: center calc(50% + 54px);
        background-repeat: no-repeat;
    }
}

/* Celular: imagen + shimmer */
@media (max-width: 767.98px) {
    .section-brand-img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        animation: kenburns 8s ease-in-out infinite alternate;
        will-change: transform;
    }

    .section-brand::after {
        content: '';
        position: absolute;
        inset: 0;
        width: 55%;
        background: linear-gradient(
            90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.50) 50%,
            transparent 100%
        );
        animation: shimmer 5s ease-in-out infinite;
        animation-delay: 1.5s;
        pointer-events: none;
    }
}

@keyframes kenburns {
    from { transform: scale(1)    translateX(0)   translateY(0); }
    to   { transform: scale(1.18) translateX(-3%) translateY(-2%); }
}

@keyframes shimmer {
    0%   { transform: translateX(-100%); opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { transform: translateX(280%);  opacity: 0; }
}

/* Fondos por seccion en el home */
.section-categories {
    background-color: var(--sp-beige);
}

.section-offers {
    background-color: var(--sp-pink);
}

.section-new {
    background-color: var(--sp-lilac);
}

.section-related {
    background-color: var(--sp-beige);
}

/* Flechas del carrusel de banners, mas notorias */
.hero-banner .carousel-control-prev,
.hero-banner .carousel-control-next {
    opacity: 1;
}

.hero-banner .carousel-control-prev-icon,
.hero-banner .carousel-control-next-icon {
    width: 2.75rem;
    height: 2.75rem;
    background-color: rgba(59, 47, 47, 0.55);
    background-size: 55%;
    border-radius: 50%;
    transition: background-color 0.25s ease, transform 0.25s ease;
}

.hero-banner .carousel-control-prev:hover .carousel-control-prev-icon,
.hero-banner .carousel-control-next:hover .carousel-control-next-icon {
    background-color: var(--sp-gold);
    transform: scale(1.08);
}

.product-card,
.related-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-card:hover,
.related-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 30px rgba(59, 47, 47, 0.18);
}

[data-bs-theme="dark"] .product-card:hover,
[data-bs-theme="dark"] .related-card:hover {
    box-shadow: 0 0 0 1px var(--sp-gold), 0 14px 30px rgba(0, 0, 0, 0.55);
}

.product-card img,
.related-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

.product-card .no-image,
.related-card .no-image {
    width: 100%;
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--sp-beige);
    color: var(--sp-dark);
    font-size: 0.85rem;
}

.hero-banner .carousel-item {
    position: relative;
}

.hero-banner img {
    width: 100%;
    height: 58vh;
    min-height: 300px;
    max-height: 540px;
    object-fit: cover;
    display: block;
}

@media (min-width: 992px) {
    .hero-banner img {
        height: 72vh;
        min-height: 500px;
        max-height: 920px;
    }
}

/* Texto superpuesto sobre el banner */
.banner-caption {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(to bottom, rgba(0,0,0,0.08) 0%, rgba(0,0,0,0.38) 100%);
    color: #fff;
}

.banner-caption h2 {
    font-size: clamp(1.6rem, 4vw, 3rem);
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
    margin-bottom: 0.5rem;
    color: #fff;
}

.banner-caption p {
    font-size: clamp(0.95rem, 2vw, 1.2rem);
    text-shadow: 0 1px 4px rgba(0,0,0,0.35);
    margin-bottom: 1.25rem;
    max-width: 540px;
}

.banner-caption .btn {
    font-size: 0.95rem;
    padding: 0.55rem 1.75rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.92);
    color: #3B2F2F;
    border: none;
    font-weight: 600;
    transition: background 0.2s ease, transform 0.2s ease;
}

.banner-caption .btn:hover {
    background: #fff;
    transform: translateY(-2px);
}

.type-card {
    position: relative;
    display: block;
    height: 200px;
    border-radius: 0.5rem;
    overflow: hidden;
    background-color: var(--sp-lilac);
    color: var(--sp-dark);
    text-decoration: none;
    transition: box-shadow 0.3s ease;
}

@media (min-width: 768px) {
    .type-card {
        height: 280px;
    }
}

.type-card:hover {
    box-shadow: 0 10px 26px rgba(59, 47, 47, 0.22);
}

[data-bs-theme="dark"] .type-card:hover {
    box-shadow: 0 0 0 2px var(--sp-gold), 0 10px 26px rgba(0, 0, 0, 0.6);
}

.type-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.type-card:hover img {
    transform: scale(1.08);
}

.type-card-label {
    z-index: 1;
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0,0,0,0.68) 0%, rgba(0,0,0,0.18) 70%, transparent 100%);
    text-align: center;
    color: #fff;
}

.type-card-label h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.75);
}

.type-card-label p {
    font-size: 0.8rem;
    margin: 0.2rem 0 0.6rem;
    opacity: 0.92;
    text-shadow: 0 1px 3px rgba(0,0,0,0.35);
    line-height: 1.3;
}

.type-card-label .btn-cat {
    font-size: 0.78rem;
    padding: 0.3rem 1rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.88);
    color: #3B2F2F;
    font-weight: 600;
    border: none;
    transition: background 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.type-card:hover .btn-cat {
    background: #fff;
}

/* Tarjeta sin foto: texto sobre fondo de color */
.type-card:not(:has(img)) .type-card-label,
.type-card-no-img .type-card-label {
    background: none;
    color: var(--sp-dark);
    justify-content: center;
}

.type-card:not(:has(img)) .type-card-label h3,
.type-card-no-img .type-card-label h3 {
    color: var(--sp-dark);
    text-shadow: none;
}

.type-card:not(:has(img)) .type-card-label p,
.type-card-no-img .type-card-label p {
    color: var(--sp-dark);
    opacity: 0.8;
    text-shadow: none;
}

.type-card:not(:has(img)) .btn-cat,
.type-card-no-img .btn-cat {
    background: #3B2F2F;
    color: #fff;
}

.btn-ver-todo {
    display: inline-block;
    padding: 0.6rem 2.25rem;
    border-radius: 999px;
    border: 2px solid #3B2F2F;
    color: #3B2F2F;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    letter-spacing: 0.03em;
    transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

.btn-ver-todo:hover {
    background: #3B2F2F;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 47, 47, 0.25);
}

[data-bs-theme="dark"] .btn-ver-todo {
    border-color: #f2e9e4;
    color: #f2e9e4;
}

[data-bs-theme="dark"] .btn-ver-todo:hover {
    background: #f2e9e4;
    color: #3B2F2F;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.gallery-main {
    overflow: hidden;
    border-radius: 0.5rem;
}

.gallery-main img {
    width: 100%;
    max-height: 480px;
    object-fit: contain;
    background-color: var(--sp-cream);
    border-radius: 0.5rem;
    transition: transform 0.35s ease;
    cursor: zoom-in;
}

.gallery-main img:hover {
    transform: scale(1.06);
}

.gallery-thumb img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 0.25rem;
    cursor: pointer;
}
