/* Tema Amazeen — Plantas / Perséfone */

.tema-amazeen {
    --amazeen-primary: #fff;
    --amazeen-secondary: #000;
    position: relative;
    background-color: #000;
}

/* Fondo en capa fija: evita el zoom raro de background-attachment:fixed en móvil */
.tema-amazeen::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background-color: #000;
    background-image: url("/static/jpeg/fondo-planta.jpeg");
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    pointer-events: none;
    transform: translateZ(0);
}

.tema-amazeen::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: -1;
    pointer-events: none;
}

@media (max-width: 900px) {
    .tema-amazeen::after,
    .tema-amazeen::before {
        /* Viewport fijo: evita background-attachment:fixed y el “zoom” al scroll en iOS */
        position: fixed;
        inset: auto;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        background-attachment: scroll;
    }
}

.tema-amazeen .section-title,
.tema-amazeen .category-subtitle {
    color: #fff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.tema-amazeen .filter-section,
.tema-amazeen .filter-actions-bar {
    color: #6b7280;
}

.tema-amazeen .filter-chip {
    background: #fff;
    color: #6b7280;
    border: 1px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.tema-amazeen .filter-chip.is-active,
.tema-amazeen .filter-chip[aria-expanded="true"],
.tema-amazeen .filter-chip:hover {
    background: #fff;
    color: #4b5563;
    border-color: #fff;
}

.tema-amazeen .filter-panel {
    background: #fff;
    color: #6b7280;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.tema-amazeen .filter-option {
    color: #6b7280;
}

.tema-amazeen .filter-option.active {
    color: #374151;
}

.tema-amazeen .filter-panel label,
.tema-amazeen .filter-panel input {
    color: #6b7280;
}

/* Product cards — Amazeen glass (solo en listing con tema_amazeen) */
.product-card-shell.is-amazeen {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid #fff;
    border-radius: 0.75rem;
    box-shadow: none;
    color: #fff;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.product-card-shell.is-amazeen .product-card-link {
    background: transparent;
    color: #fff;
    box-shadow: none;
}

.product-card-shell.is-amazeen .product-info h3,
.product-card-shell.is-amazeen .price,
.product-card-shell.is-amazeen .product-shipping,
.product-card-shell.is-amazeen .product-search-category {
    color: #fff;
}

.product-card-shell.is-amazeen .product-view-link,
.product-card-shell.is-amazeen .add-to-cart {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.7);
}

.product-card-shell.is-amazeen .product-view-link:hover,
.product-card-shell.is-amazeen .add-to-cart:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: #fff;
}

@media (hover: hover) and (pointer: fine) {
    .product-card-shell.is-amazeen:hover {
        transform: translateY(-4px);
        border-color: rgba(255, 255, 255, 0.6);
    }
}

/* Home category tiles */
.category-card-amazeen {
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid #fff;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.category-card-amazeen .category-info h3 {
    color: #fff;
}

/* Hero slide */
.amazeen-slide {
    background-color: #000;
    background-image: url("/static/jpeg/fondo-planta.jpeg");
    background-position: center center;
    background-size: cover;
    overflow: hidden;
}

.amazeen-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    z-index: 0;
}

.amazeen-hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    padding: 1.5rem;
    font-family: "Plus Jakarta Sans", "Noto Sans", Montserrat, sans-serif;
}

.amazeen-hero-title {
    margin: 0;
    color: #fff;
    font-size: clamp(2.4rem, 6vw, 4rem);
    font-weight: 900;
    letter-spacing: 0.02em;
    opacity: 0;
}

.amazeen-hero-lead {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(1rem, 2.4vw, 1.45rem);
    font-weight: 500;
    font-style: italic;
    opacity: 0;
}

.amazeen-hero-btn {
    margin-top: 0.35rem;
    background: transparent;
    color: #fff;
    border: 1px solid #fff;
    opacity: 0;
}

.amazeen-hero-btn:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.amazeen-slide.is-animating .amazeen-hero-title {
    animation: amazeenFadeUp 0.9s ease-out forwards;
    animation-delay: 0.35s;
}

.amazeen-slide.is-animating .amazeen-hero-lead {
    animation: amazeenFadeUp 0.9s ease-out forwards;
    animation-delay: 0.7s;
}

.amazeen-slide.is-animating .amazeen-hero-btn {
    animation: amazeenFadeUp 0.8s ease-out forwards;
    animation-delay: 1.05s;
}

@keyframes amazeenFadeUp {
    0% {
        opacity: 0;
        transform: translateY(22px) scale(0.94);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Leaves */
.amazeen-leaves {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
}

.amazeen-slide.is-animating .amazeen-leaves {
    animation: amazeenFadeIn 0.6s ease-out forwards;
}

.amazeen-leaf {
    position: absolute;
    width: clamp(110px, 18vw, 180px);
    height: clamp(110px, 18vw, 180px);
    object-fit: contain;
    top: 50%;
    left: 50%;
    opacity: 0;
}

.amazeen-slide.is-animating .amazeen-leaf-izquierda {
    animation: amazeenLeafIzquierda 2.1s ease-out forwards;
    animation-delay: 0.45s;
}

.amazeen-slide.is-animating .amazeen-leaf-derecha {
    animation: amazeenLeafDerecha 2.1s ease-out forwards;
    animation-delay: 0.6s;
}

.amazeen-slide.is-animating .amazeen-leaf2-izquierda {
    animation: amazeenLeaf2Izquierda 2.1s ease-out forwards;
    animation-delay: 0.75s;
}

.amazeen-slide.is-animating .amazeen-leaf2-derecha {
    animation: amazeenLeaf2Derecha 2.1s ease-out forwards;
    animation-delay: 0.9s;
}

.amazeen-slide.is-animating .amazeen-leaf-arriba-izquierda {
    animation: amazeenLeafArribaIzquierda 2.1s ease-out forwards;
    animation-delay: 0.45s;
}

.amazeen-slide.is-animating .amazeen-leaf-arriba-derecha {
    animation: amazeenLeafArribaDerecha 2.1s ease-out forwards;
    animation-delay: 0.6s;
}

.amazeen-slide.is-animating .amazeen-leaf2-arriba-izquierda {
    animation: amazeenLeaf2ArribaIzquierda 2.1s ease-out forwards;
    animation-delay: 0.75s;
}

.amazeen-slide.is-animating .amazeen-leaf2-arriba-derecha {
    animation: amazeenLeaf2ArribaDerecha 2.1s ease-out forwards;
    animation-delay: 0.9s;
}

@keyframes amazeenFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes amazeenLeafIzquierda {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) rotate(180deg) translateX(0) rotate(180deg);
    }
    100% {
        opacity: 0.9;
        transform: translate(-50%, -50%) rotate(90deg) translateX(min(42vw, 280px)) rotate(135deg);
    }
}

@keyframes amazeenLeafDerecha {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) rotate(0deg) translateX(0) rotate(0deg);
    }
    100% {
        opacity: 0.9;
        transform: translate(-50%, -50%) rotate(90deg) translateX(min(42vw, 280px)) rotate(45deg);
    }
}

@keyframes amazeenLeaf2Izquierda {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) rotate(180deg) translateX(0) rotate(180deg);
    }
    100% {
        opacity: 0.9;
        transform: translate(-50%, -50%) rotate(135deg) translateX(min(48vw, 320px)) rotate(135deg);
    }
}

@keyframes amazeenLeaf2Derecha {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) rotate(0deg) translateX(0) rotate(0deg);
    }
    100% {
        opacity: 0.9;
        transform: translate(-50%, -50%) rotate(45deg) translateX(min(48vw, 320px)) rotate(45deg);
    }
}

@keyframes amazeenLeafArribaIzquierda {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) rotate(180deg) translateX(0) rotate(0deg) scaleX(-1);
    }
    100% {
        opacity: 0.9;
        transform: translate(-50%, -50%) rotate(225deg) translateX(min(42vw, 280px)) rotate(45deg) scaleX(-1);
    }
}

@keyframes amazeenLeafArribaDerecha {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) rotate(0deg) translateX(0) rotate(180deg) scaleX(-1);
    }
    100% {
        opacity: 0.9;
        transform: translate(-50%, -50%) rotate(-45deg) translateX(min(42vw, 280px)) rotate(135deg) scaleX(-1);
    }
}

@keyframes amazeenLeaf2ArribaIzquierda {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) rotate(180deg) translateX(0) rotate(0deg) scaleX(-1);
    }
    100% {
        opacity: 0.9;
        transform: translate(-50%, -50%) rotate(270deg) translateX(min(48vw, 320px)) rotate(90deg) scaleX(-1);
    }
}

@keyframes amazeenLeaf2ArribaDerecha {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) rotate(0deg) translateX(0) rotate(180deg) scaleX(-1);
    }
    100% {
        opacity: 0.9;
        transform: translate(-50%, -50%) rotate(-90deg) translateX(min(48vw, 320px)) rotate(90deg) scaleX(-1);
    }
}

@media (max-width: 640px) {
    .amazeen-hero-content {
        padding: 1rem;
        gap: 0.65rem;
    }

    .amazeen-leaf {
        width: 96px;
        height: 96px;
    }
}
