/*
 * Created by Frontend Agent Ezze
 */

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

.featured-products {
    width: 100%;
    padding: 5rem 2rem;
}

.featured-scene {
    width: 100%;
    max-width: 1100px;
    height: 500px;

    margin: 0 auto;

    position: relative;

    perspective: 1200px;

    overflow: hidden;

    border-radius: 24px;

    background:
        linear-gradient(to bottom,
            #fff9f7 0%,
            #faf0ed 58%,
            #f1ded7 100%);
}

.featured-scene {
    background-image: url("../assets/images/back-feature.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.featured-scene::before {
    content: "";

    position: absolute;
    inset: -20px;

    background-image: url("../assets/images/back-feature.webp");
    background-size: cover;
    background-position: center;

    filter: blur(8px);

    opacity: 0.35;

    transform: scale(1.03);

    pointer-events: none;
    z-index: 0;
}

.featured-scene::after {
    content: "";

    position: absolute;

    width: 80%;
    height: 100px;

    left: 10%;
    bottom: 35px;

    background:
        radial-gradient(ellipse,
            rgba(100, 70, 75, 0.20),
            transparent 70%);

    filter: blur(25px);

    pointer-events: none;

    z-index: 0;
}


.scene-light {
    position: absolute;

    border-radius: 50%;

    pointer-events: none;

    filter: blur(35px);

    opacity: 0.35;
}

.scene-light-left {
    width: 180px;
    height: 180px;

    left: -40px;
    top: 70px;

    background: #f5dce5;
}

.scene-light-right {
    width: 220px;
    height: 220px;

    right: -60px;
    top: 30px;

    background: #e8dff0;

}

/* =========================================
   TOP LIGHT
   ========================================= */

.scene-top-light {
    position: absolute;

    width: 600px;
    height: 260px;

    left: 50%;
    top: -120px;

    transform:
        translateX(-50%);

    background:
        radial-gradient(ellipse,
            rgba(255, 255, 255, 0.65) 0%,
            rgba(255, 255, 255, 0.25) 35%,
            transparent 72%);

    filter: blur(20px);

    pointer-events: none;

    z-index: 0;
}


/* =========================================
   SCENE ARCH
   ========================================= */

.scene-arch {
    position: absolute;

    width: 520px;
    height: 380px;

    left: 50%;
    top: 30px;

    transform:
        translateX(-50%);

    border:
        2px solid rgba(180, 140, 150, 0.22);

    border-bottom: none;

    border-radius:
        260px 260px 0 0;

    pointer-events: none;

    z-index: 0;
}

.scene-arch::after {
    content: "";

    position: absolute;

    inset: 12px;

    border:
        1px solid rgba(180, 140, 150, 0.10);

    border-bottom: none;

    border-radius:
        250px 250px 0 0;
    box-shadow:
        0 0 18px rgba(220, 180, 195, 0.12);
}

/* =========================================
   SCENE PARTICLES
   ========================================= */

.scene-particles {
    position: absolute;

    inset: 0;

    pointer-events: none;

    overflow: hidden;

    z-index: 0;
}

.scene-particles span {
    position: absolute;

    width: 4px;
    height: 4px;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.7);

    box-shadow:
        0 0 8px rgba(255, 255, 255, 0.6);

    opacity: 0;
}

.scene-particles span:nth-child(1) {
    left: 18%;
    top: 22%;
}

.scene-particles span:nth-child(2) {
    left: 30%;
    top: 12%;
}

.scene-particles span:nth-child(3) {
    left: 68%;
    top: 18%;
}

.scene-particles span:nth-child(4) {
    left: 82%;
    top: 35%;
}

.scene-particles span:nth-child(5) {
    left: 12%;
    top: 48%;
}

.scene-particles span:nth-child(6) {
    left: 88%;
    top: 58%;
}

.scene-particles span {
    animation:
        sceneParticle 5s ease-in-out infinite;
}

.scene-particles span:nth-child(2) {
    animation-delay: 1.2s;
}

.scene-particles span:nth-child(3) {
    animation-delay: 2.4s;
}

.scene-particles span:nth-child(4) {
    animation-delay: 0.8s;
}

.scene-particles span:nth-child(5) {
    animation-delay: 3s;
}

.scene-particles span:nth-child(6) {
    animation-delay: 1.8s;
}

@keyframes sceneParticle {

    0% {
        opacity: 0;
        transform:
            translate(0, 10px) scale(0.6);
    }

    25% {
        opacity: 0.35;
    }

    50% {
        opacity: 0.65;
        transform:
            translate(4px, -4px) scale(1);
    }

    75% {
        opacity: 0.35;
    }

    100% {
        opacity: 0;
        transform:
            translate(-3px, -12px) scale(0.6);
    }

}


.scene-arch {
    position: absolute;

    width: 520px;
    height: 400px;

    left: 50%;
    top: 0;

    transform: translateX(-50%);

    border:
        2px solid rgba(180, 140, 150, 0.15);

    border-bottom: none;

    border-radius:
        260px 260px 0 0;

    pointer-events: none;

    z-index: 0;
}

.scene-arch {
    transform:
        translateX(-50%) translateZ(-20px);
    box-shadow:
        0 0 35px rgba(220, 180, 195, 0.12);
}

.scene-arch::before {
    content: "";

    position: absolute;

    inset: 0;

    border-radius:
        260px 260px 0 0;

    background:
        radial-gradient(ellipse at center top,
            rgba(255, 255, 255, 0.18),
            transparent 65%);

    pointer-events: none;
}

/* =========================================
   TABLE
   ========================================= */

.table {
    position: absolute;

    width: 92%;
    height: 260px;

    left: 4%;
    bottom: -47px;

    transform:
        rotateX(85deg) rotateZ(0deg);

    transform-style: preserve-3d;
    z-index: 1;
}


/* =========================================
   TABLE SURFACE
   ========================================= */

.table-surface {
    position: absolute;

    inset: 0;

    border-radius: 18px;

    background:
        linear-gradient(135deg,
            #ead8cc,
            #dfc5b5);

    box-shadow:
        0 25px 45px rgba(80, 55, 65, 0.18),
        inset 0 2px 0 rgba(255, 255, 255, 0.45);

    transform: translateZ(0);
}

.table-surface {
    background-image:
        linear-gradient(rgba(255, 248, 242, 0.35),
            rgba(255, 248, 242, 0.35)),
        url("../assets/images/wood-texture.webp");

    background-size: cover;
    background-position: center;
}

/* =========================================
   TABLE FRONT
   ========================================= */

.table-front {
    position: absolute;

    left: 0;
    right: 0;

    bottom: -35px;

    height: 50px;

    border-radius: 0 0 18px 18px;

    background:
        linear-gradient(to bottom,
            #d4b5a3,
            #c7a593);

    transform-origin: top;

    transform:
        rotateX(-90deg) translateZ(0);
}



.table-front {
    background:
        linear-gradient(180deg,
            rgba(150, 100, 80, 0.08),
            rgba(100, 65, 55, 0.20)),
        url("../assets/images/wood-texture.webp");

    background-size: cover;
    background-position: center;
}

/* =========================================
   PHOTO STAND
   ========================================= */

.photo-stand {
    position: absolute;

    left: 50%;
    top: -15px;

    width: 190px;
    height: 230px;

    transform:
        translateX(-50%) translateZ(10px);

    transform-style: preserve-3d;

    cursor: pointer;

}


/* =========================================
   PHOTO FRAME
   ========================================= */

.photo-frame {
    position: absolute;

    width: 190px;
    height: 145px;

    left: 0;
    top: 36px;

    padding: 8px;

    background: #fff;

    border-radius: 3px;

    box-shadow:
        0 10px 18px rgba(70, 50, 60, 0.20);

    transform:
        translateZ(12px);

    transform-origin: center bottom;

    transition:
        transform 0.65s cubic-bezier(0.22, 0.61, 0.36, 1),
        box-shadow 0.5s ease;
}


/* =========================================
   PHOTO CONTENT
   ========================================= */

.photo-content {
    width: 100%;
    height: 100%;

    background:
        linear-gradient(135deg,
            #f5e9e4,
            #ead8d1);
}

/* =========================================
   PHOTO STAND POSITIONS
   ========================================= */

.photo-stand-left {
    left: 28%;
    top: -0px;

    transform:
        translateX(-50%) translateZ(4px) scale(0.88) rotate(-10deg) rotateX(-15deg);

    z-index: 2;
}

.photo-stand-left .photo-frame {
    height: 120px;
    top: 53px;
}


.photo-stand-center {
    left: 50%;
    top: 50px;

    transform:
        translateX(-50%) translateZ(6px) scale(1) rotateX(-15deg);

    z-index: 3;
}


.photo-stand-right {
    left: 72%;
    top: -0px;

    transform:
        translateX(-50%) translateZ(4px) scale(0.88) rotate(10deg) rotateX(-15deg);



    z-index: 2;
}

.photo-stand-right .photo-frame {
    height: 120px;
    top: 53px;
}

.photo-stand-left:hover .photo-frame {
    transform:
        translateZ(30px) rotateX(-40deg);

    box-shadow:
        0 22px 28px rgba(70, 50, 60, 0.25);
}


.photo-stand-center:hover .photo-frame {
    transform:
        translateZ(45px) rotateX(-40deg);

    box-shadow:
        0 25px 30px rgba(70, 50, 60, 0.28);
}


.photo-stand-right:hover .photo-frame {
    transform:
        translateZ(30px) rotateX(-40deg);

    box-shadow:
        0 22px 28px rgba(70, 50, 60, 0.25);
}

/* .photo-stand.is-active {
    transform:
        translateX(-50%) translateZ(280px) scale(1.35) rotateX(-55deg) rotateZ(0deg);

    z-index: 20;

    filter:
        drop-shadow(0 35px 30px rgba(70, 50, 60, 0.30));
} */


/* =========================================
   FEATURED PRODUCT VIEWER
   ========================================= */

.featured-viewer-backdrop {
    position: fixed;

    inset: 0;

    background: rgba(35, 25, 30, 0.18);

    backdrop-filter: blur(2px);

    z-index: 9998;

    opacity: 0;

    transition:
        opacity 0.6s ease;

    pointer-events: none;
}

.featured-viewer-backdrop.is-open {
    opacity: 1;

    pointer-events: auto;
}


/* =========================================
   VIEWER
   ========================================= */

.featured-product-viewer {
    position: fixed;

    margin: 0;

    z-index: 9999;

    perspective: 1200px;

    cursor: default;

    pointer-events: auto;

    transition:
        left 0.75s cubic-bezier(0.22, 0.61, 0.36, 1),
        top 0.75s cubic-bezier(0.22, 0.61, 0.36, 1),
        width 0.75s cubic-bezier(0.22, 0.61, 0.36, 1),
        height 0.75s cubic-bezier(0.22, 0.61, 0.36, 1);

    transform: none !important;
}


/* =========================================
   FLIP CONTAINER
   ========================================= */

.featured-product-flip {
    position: relative;

    width: 100%;
    height: 100%;

    transform-style: preserve-3d;

    transition:
        transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
}


/* =========================================
   FRONT / BACK
   ========================================= */

.featured-product-front,
.featured-product-back {
    position: absolute;

    inset: 0;

    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}


/* =========================================
   FRONT
   ========================================= */

.featured-product-front {
    padding: 8px;

    background: #fff;

    border-radius: 4px;

    box-shadow:
        0 35px 80px rgba(40, 25, 35, 0.35);

    overflow: hidden;
}


/* =========================================
   BACK
   ========================================= */

.featured-product-back {
    padding: 2.5rem;

    display: flex;
    flex-direction: column;
    justify-content: center;

    background:
        linear-gradient(135deg,
            #fff,
            #f8e9f6);

    border-radius: 4px;

    box-shadow:
        0 35px 80px rgba(40, 25, 35, 0.35);

    transform: rotateY(180deg);

    overflow: auto;
}


/* =========================================
   FLIPPED
   ========================================= */

.featured-product-viewer.is-flipped .featured-product-flip {
    transform: rotateY(180deg);
}


/* =========================================
   PRODUCT DETAILS
   ========================================= */

.featured-product-back h2 {
    margin: 0 0 1rem;

    font-size: 3.5rem;

    color: var(--text, #5f4b55);
}

.featured-product-back p {
    margin: 0;

    line-height: 1.6;
    font-size: 1.5rem;

    color: var(--text-soft, #806c76);
}

.featured-product-back .cta-feature-product {
    /* posicionar al pie del contenedor */
    position: absolute;
    bottom: 20px;
    right: 20px;

    display: inline-block;
    margin-top: 2.5rem;
    border: none;
    background: none;
    color: #6c5c64;
    text-decoration: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transform: translateZ(0);
    transition: transform 0.25s, box-shadow 0.25s;
}

.featured-product-back .cta-feature-product:hover {
    color: #212121;
    cursor: pointer;
}

.subrayado-progresivo-1 {
    display: inline-block;
    position: relative;
}

/* Trazo base (siempre visible) */
.subrayado-progresivo-1::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;

    height: 2px;
    width: 100%;

    background-color: #212121;
    opacity: 0.7;
    /* color base */

    transform-origin: left;
    transform: scaleX(0);
    /* cerrado */

    transition: transform 0.35s cubic-bezier(0.4, 0.0, 0.2, 1);
}

/* Al pasar el mouse */
.subrayado-progresivo-1:hover::after {
    transform: scaleX(1);
    /* abierto */
}

/* =========================================
   DETAILS BADGE
   ========================================= */

.featured-details-badge {
    position: absolute;

    right: 20px;
    bottom: 20px;

    padding: 0.65rem 1rem;

    border: none;
    border-radius: 999px;

    background: rgba(255, 255, 255, 0.92);

    color: #66515d;

    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;

    box-shadow:
        0 6px 18px rgba(60, 40, 50, 0.20);

    cursor: pointer;

    z-index: 5;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}

.featured-details-badge:hover {
    transform: translateY(-2px);

    background: #fff;

    box-shadow:
        0 9px 22px rgba(60, 40, 50, 0.25);
}

.featured-product-viewer.is-open {
    box-shadow:
        0 45px 100px rgba(40, 25, 35, 0.45);
}

.featured-product-viewer {

    pointer-events: auto;
}

.featured-details-badge {
    position: absolute;

    right: 18px;
    bottom: 18px;

    display: flex;
    align-items: center;
    gap: 0.45rem;

    padding: 0.55rem 0.75rem;

    border: none;
    border-radius: 999px;

    background: rgba(255, 255, 255, 0.9);

    color: #66515d;

    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 600;

    box-shadow:
        0 5px 16px rgba(60, 40, 50, 0.18);

    cursor: pointer;

    z-index: 5;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}

.featured-details-badge:hover {
    transform: translateY(-2px);

    background: #fff;

    box-shadow:
        0 8px 20px rgba(60, 40, 50, 0.24);
}

.featured-flip-icon {
    width: 23px;
    height: 23px;

    fill: none;

    stroke: currentColor;

    stroke-width: 2.2;

    stroke-linecap: round;
    stroke-linejoin: round;

    flex-shrink: 0;

    transition:
        transform 0.3s ease;
}

.featured-back-badge {
    left: 18px;
    right: auto;
    background: none;
    box-shadow: none;
}

.featured-details-badge {
    opacity: 1;

    transition:
        opacity 0.2s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}

.featured-details-badge.is-hiding {
    opacity: 0;
    pointer-events: none;
    transition: none;
}

.photo-frame.is-viewer-hidden {
    opacity: 0;
}

.photo-frame.is-viewer-hidden {
    opacity: 0;

    transition: none;
}

/* =========================================
   TABLE DECORATION
   ========================================= */

.table-decoration {
    position: absolute;

    left: 0;
    right: 0;

    bottom: -44px;
    height: 79px;

    z-index: 10;

    pointer-events: none;

    transform-style: preserve-3d;
    transform: translateZ(10px);
}

.table-garland {
    width: 100%;
    height: 100%;

    overflow: visible;
}

.garland-string {
    fill: none;

    stroke: #d8b5c2;
    stroke-width: 5;

    stroke-linecap: round;

    filter: drop-shadow(0 2px 2px rgba(90, 50, 70, 0.18));
}

.garland-dot {
    fill: #e0b6cb;

    stroke: rgba(255, 255, 255, 0.55);
    stroke-width: 2;

    filter:
        drop-shadow(0 2px 2px rgba(90, 50, 70, 0.2));
}

/* =========================================
   SCENE TITLE
   ========================================= */

.scene-title {
    position: absolute;

    left: 50%;
    top: 75px;

    transform: translateX(-50%);

    display: flex;
    flex-direction: column;

    align-items: center;

    text-align: center;

    z-index: 1;

    pointer-events: none;
}

.scene-title-main {
    font-family: inherit;

    font-size: 1.7rem;

    font-weight: 500;

    letter-spacing: 0.08em;

    color: #8f7180;

    white-space: nowrap;

    text-shadow:
        0 1px 2px rgba(80, 55, 65, 0.10);
}

.scene-title-script {
    margin-top: -4px;

    font-family: "Tangerine", cursive;

    font-size: 2.4rem;

    font-weight: 700;

    line-height: 1;

    color: #b78fa4;

    text-shadow:
        0 1px 2px rgba(80, 55, 65, 0.08);
}

.scene-title::after {
    content: "";

    width: 45px;
    height: 1px;

    margin-top: 8px;

    background:
        rgba(183, 143, 164, 0.35);
}

.scene-brand {
    position: absolute;

    left: 50%;
    top: 52%;

    transform: translate(-50%, -50%);

    font-family: "Tangerine", cursive;
    font-size: clamp(5rem, 8vw, 11rem);
    font-weight: 700;

    color: rgba(255, 255, 255, 0.42);
    filter: blur(0.2px);

    white-space: nowrap;

    z-index: 1;

    pointer-events: none;

    text-shadow:
        0 2px 12px rgba(120, 80, 100, 0.12);
}


@media (max-width:900px) {

    .photo-stand-left {
        left: 22%;
        top: -5px;
        transform: translateX(-50%) translateZ(4px) scale(0.8) rotate(-8deg) rotateX(-15deg);
    }

    .photo-stand-center {
        left: 50%;
        top: 35px;
        transform: translateX(-50%) translateZ(6px) scale(0.9) rotateX(-15deg);
    }

    .photo-stand-right {
        left: 78%;
        top: -5px;
        transform: translateX(-50%) translateZ(4px) scale(0.8) rotate(8deg) rotateX(-15deg);
    }

    .photo-frame {
        width: 160px;
        height: 125px;
    }
}

@media (max-width: 600px) {

    .featured-product-viewer {
        perspective: none;
    }

    .featured-details-badge {
        /* boxshodow none */
        box-shadow: none;
        text-shadow: none;
    }

    .featured-products {
        padding: 2.5rem 0.75rem;
    }

    .featured-scene {
        height: 440px;
        border-radius: 18px;
    }

    .scene-arch {
        width: 86%;
        height: 350px;
        max-width: 520px;
    }

    .scene-brand {
        font-family: var(--font-heading, "Tangerine", cursive);
        font-size: clamp(2.4rem, 10.5vw, 4.5rem);
        line-height: 1;
    }

    .scene-title {
        top: 42px;
    }

    .scene-title-main {
        font-size: clamp(1.05rem, 3.8vw, 1.35rem);
        letter-spacing: 0.06em;
        line-height: 1.2;
    }

    .scene-title-script {
        font-family: var(--font-heading, "Tangerine", cursive);
        font-size: clamp(1.65rem, 5.5vw, 2.2rem);
        line-height: 1.05;
        margin-top: -2px;
    }

    .photo-stand {
        width: 140px;
        height: 180px;
    }

    .photo-stand-left {
        left: 20%;
        top: -10px;
        transform: translateX(-50%) translateZ(4px) scale(0.72) rotate(-8deg) rotateX(-15deg);
    }

    .photo-stand-left .photo-frame {
        height: 105px;
        top: 35px;
    }

    .photo-stand-center {
        left: 50%;
        top: 25px;
        transform: translateX(-50%) translateZ(6px) scale(0.82) rotateX(-15deg);
    }

    .photo-stand-right {
        left: 80%;
        top: -10px;
        transform: translateX(-50%) translateZ(4px) scale(0.72) rotate(8deg) rotateX(-15deg);
    }

    .photo-stand-right .photo-frame {
        height: 105px;
        top: 35px;
    }

    .photo-frame {
        width: 140px;
        height: 110px;
    }

    .featured-product-back {
        padding: 1.25rem 1rem;
    }

    .featured-product-back h2 {
        font-family: var(--font-heading, "Tangerine", cursive);
        font-size: clamp(1.5rem, 5.5vw, 2.2rem);
        line-height: 1.15;
        margin-bottom: 0.35rem;
        text-wrap: balance;
    }

    .featured-product-back p {
        font-family: var(--font-body, "Montserrat", sans-serif);
        font-size: clamp(0.825rem, 3.2vw, 0.95rem);
        line-height: 1.45;
        color: var(--text-soft, #806c76);
    }

    .featured-product-back .cta-feature-product {
        font-family: var(--font-heading, "Tangerine", cursive);
        font-size: clamp(1.35rem, 4.8vw, 1.7rem);
        line-height: 1.1;
        bottom: 12px;
        right: 12px;
        margin-top: 1rem;
    }

    .featured-details-badge {
        font-family: var(--font-body, "Montserrat", sans-serif);
        padding: 0.45rem 0.65rem;
        font-size: clamp(0.725rem, 2.8vw, 0.8rem);
        font-weight: 600;
        letter-spacing: 0.02em;
        right: 12px;
        bottom: 12px;
    }

    .featured-back-badge {
        left: 12px;
        right: auto;
    }
}

@media (max-width: 400px) {

    .featured-product-viewer {
        perspective: none;
    }

    .featured-details-badge {
        /* boxshodow none */
        box-shadow: none;
        text-shadow: none;
    }

    .featured-products {
        padding: 2rem 0.5rem;
    }

    .featured-scene {
        height: 400px;
    }

    .scene-title {
        top: 38px;
    }

    .scene-title-main {
        font-size: 1.05rem;
        letter-spacing: 0.05em;
    }

    .scene-title-script {
        font-size: 1.6rem;
    }

    .scene-brand {
        font-size: clamp(2.2rem, 9.5vw, 3.2rem);
    }

    .photo-stand {
        width: 120px;
        height: 160px;
    }

    .photo-frame {
        width: 120px;
        height: 95px;
    }

    .photo-stand-left {
        left: 19%;
        top: -15px;
        transform: translateX(-50%) translateZ(4px) scale(0.68) rotate(-6deg) rotateX(-15deg);
    }

    .photo-stand-center {
        left: 50%;
        top: 20px;
        transform: translateX(-50%) translateZ(6px) scale(0.76) rotateX(-15deg);
    }

    .photo-stand-right {
        left: 81%;
        top: -15px;
        transform: translateX(-50%) translateZ(4px) scale(0.68) rotate(6deg) rotateX(-15deg);
    }

    .featured-product-back {
        padding: 1rem 0.85rem;
    }

    .featured-product-back h2 {
        font-size: 1.45rem;
        margin-bottom: 0.25rem;
    }

    .featured-product-back p {
        font-size: 0.8rem;
        line-height: 1.4;
    }

    .featured-product-back .cta-feature-product {
        font-size: 1.35rem;
    }

    .featured-details-badge {
        font-size: 0.7rem;
        padding: 0.4rem 0.55rem;
    }
}