/* Home page styles (extracted from index.astro) */
.sw-full-bleed {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.sw-glow-btn {
    position: relative;
    isolation: isolate;
}

.sw-glow-btn--always::before {
    opacity: 0.35;
}

.sw-glow-btn--always:hover::before {
    opacity: 0.75;
}

.sw-glow-btn::before {
    content: "";
    position: absolute;
    inset: -12px;
    border-radius: inherit;
    background: radial-gradient(circle at 50% 50%, rgba(0, 43, 255, 0.35) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 250ms ease;
    z-index: -1;
}

.sw-glow-btn:hover::before,
.sw-glow-btn:focus-visible::before {
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .sw-glow-btn {
        transition: none;
    }
}

.anniversary-badge-container {
    position: absolute;
    z-index: 50;
    top: 30%;
    left: 5%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.anniversary-img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}

.animate-breath {
    animation: breath 3s infinite ease-in-out;
}

@keyframes breath {

    0%,
    100% {
        transform: scale(1);
        filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3)) brightness(1);
    }

    50% {
        transform: scale(1.15);
        filter: drop-shadow(0 8px 25px rgba(37, 99, 235, 0.5)) brightness(1.2);
    }
}

@media (max-width: 1024px) {
    .anniversary-img {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 640px) {
    .anniversary-img {
        width: 60px;
        height: 60px;
    }

    .anniversary-badge-container {
        transform: translate(-25%, -50%);
    }
}

.swiper-button-next,
.swiper-button-prev {
    color: #2563eb !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    color: #1d4ed8 !important;
    transform: scale(1.2);
}

.swiper-pagination-bullet-active {
    background: #2563eb !important;
}

/* Widget flotante stylesense/stylemind */
.stylesense-floating-widget {
    --fx-color: #000;
    position: fixed;
    bottom: -500px;
    right: 40px;
    width: 520px;
    min-height: 240px;
    z-index: 100;
    border-radius: 16px;
    overflow: hidden;
    border: 3px solid rgba(0, 120, 212, 0.35);
    box-shadow: 0 20px 50px rgba(0, 120, 212, 0.6), 0 0 0 1px rgba(0, 120, 212, 0.2),
        0 0 28px rgba(0, 120, 212, 0.35);
    background: linear-gradient(135deg, #000814 0%, #001d3d 100%);
    cursor: grab;
    visibility: hidden;
    opacity: 0;
    transition: transform 0.2s ease, opacity 0.8s ease,
        bottom 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@media (min-width: 1024px) {
    .stylesense-floating-widget {
        --fx-color: #0078D4;
    }
}

.stylesense-floating-widget::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 3px;
    opacity: 0;
    pointer-events: none;
    background: conic-gradient(from 0deg,
            transparent 0 12%,
            rgba(0, 120, 212, 0.85) 14% 18%,
            transparent 22% 52%,
            rgba(80, 230, 255, 0.7) 56% 60%,
            transparent 65% 100%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
}

.stylesense-floating-widget::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    pointer-events: none;
    background: radial-gradient(circle at 50% 50%, rgba(80, 230, 255, 0.4) 0%, transparent 58%);
    mix-blend-mode: screen;
}

.stylesense-floating-widget.is-visible {
    bottom: 40px;
    opacity: 1;
    visibility: visible;
}

.stylesense-floating-widget.is-visible::before {
    opacity: 1;
    animation: widget-fuse 2.6s linear infinite;
    filter: drop-shadow(0 0 10px rgba(0, 120, 212, 0.5));
}

.stylesense-floating-widget.is-visible::after {
    animation: widget-burst 900ms ease-out 1;
}

@keyframes widget-fuse {
    to {
        transform: rotate(360deg);
    }
}

@keyframes widget-burst {
    0% {
        opacity: 0;
        transform: scale(0.98);
    }

    20% {
        opacity: 0.85;
        transform: scale(1.01);
    }

    100% {
        opacity: 0;
        transform: scale(1.04);
    }
}

.stylesense-content {
    padding: 24px;
    position: relative;
    color: #E8F4FD;
}

.close-stylesense {
    position: absolute;
    top: 0;
    right: 0;
    background: #D13438;
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    font-weight: bold;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    border-bottom-left-radius: 8px;
}

.close-stylesense:hover {
    background: #A02B2E;
    transform: scale(1.1);
}

.microsoft-logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.microsoft-logo-grid {
    display: grid;
    grid-template-columns: repeat(2, 12px);
    grid-template-rows: repeat(2, 12px);
    gap: 2px;
}

.ms-square {
    width: 12px;
    height: 12px;
    border-radius: 1px;
}

.microsoft-text {
    font-size: 20px;
    font-weight: 600;
    color: #FFFFFF;
    letter-spacing: 0.5px;
}

.partner-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    background: rgba(0, 120, 212, 0.15);
    border: 1px solid rgba(0, 120, 212, 0.4);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.stylesense-title {
    font-size: 18px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 16px;
    line-height: 1.3;
    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
}

.stylesense-text {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.stylesense-text p {
    margin-bottom: 12px;
}

.guarantee-text {
    font-style: italic;
    color: #8CC8FF;
}

.stylesense-cta {
    display: inline-block;
    padding: 10px 24px;
    background: linear-gradient(135deg, #0078D4 0%, #00BCF2 100%);
    color: #FFFFFF !important;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 120, 212, 0.3);
}

.stylesense-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 120, 212, 0.5);
    background: linear-gradient(135deg, #005A9E 0%, #0091CB 100%);
}

@media (max-width: 768px) {
    .stylesense-floating-widget {
        width: 90%;
        right: 5%;
        left: 5%;
    }

    .stylesense-title {
        font-size: 16px;
    }

    .stylesense-text {
        font-size: 13px;
    }
}

/* Inlined orbit.css */
.orbit-container {
    background: radial-gradient(circle at 20% 30%, rgba(255, 0, 128, 0.2), transparent 60%),
        radial-gradient(circle at 80% 20%, rgba(0, 200, 255, 0.2), transparent 60%),
        radial-gradient(circle at 50% 80%, rgba(0, 255, 150, 0.2), transparent 60%),
        radial-gradient(circle at 10% 90%, rgba(255, 255, 0, 0.1), transparent 70%),
        radial-gradient(circle at 90% 70%, rgba(255, 120, 0, 0.1), transparent 70%),
        #050505;
    background-size: 200% 200%;
    font-family: Inter, sans-serif;
    height: 100vh;
    margin: 0;
    overflow: hidden;
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    transition: background 1s ease;
}

.orbit-container.orbit-bg-active {
    background: radial-gradient(circle at 20% 30%, rgba(255, 0, 128, 0.5), transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 200, 255, 0.5), transparent 50%),
        radial-gradient(circle at 50% 80%, rgba(0, 255, 150, 0.5), transparent 50%),
        radial-gradient(circle at 10% 90%, rgba(255, 255, 0, 0.3), transparent 60%),
        radial-gradient(circle at 90% 70%, rgba(255, 120, 0, 0.3), transparent 60%),
        #1a1a1a;
    background-size: 200% 200%;
    animation: aurora 6s infinite alternate;
}

@keyframes aurora {
    0% {
        background-position: 0% 0%;
    }

    25% {
        background-position: 50% 20%;
    }

    50% {
        background-position: 100% 80%;
    }

    75% {
        background-position: 40% 60%;
    }

    100% {
        background-position: 0% 0%;
    }
}

.wrapper {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: inline-block;
    position: relative;
    z-index: 20;
}

#luckyBtn {
    background: rgba(0, 120, 255, 0.35);
    border: 2px solid rgba(0, 150, 255, 0.7);
    border-radius: 14px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    color: #ffffff !important;
    cursor: pointer;
    font-size: 20px;
    padding: 18px 36px;
    text-decoration: none;
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
    display: inline-block;
    backdrop-filter: blur(8px);
}

#luckyBtn:hover {
    border-color: #fff;
    transform: scale(1.06);
    background: rgba(0, 120, 255, 0.6);
}

#cursorOrbit {
    height: 600px;
    width: 600px;
    left: 50%;
    top: 50%;
    position: absolute;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    pointer-events: none;
    z-index: 10;
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.wrapper:hover #cursorOrbit {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    animation: orbit 22s linear infinite;
}

.cursor {
    position: absolute;
    width: 26px;
    height: 26px;
    opacity: 0;
    transform: scale(0);
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.6));
    animation: spawn 1.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.cursor>svg {
    display: block;
    width: 26px;
    height: 26px;
    animation: spin 4s linear infinite;
}

@keyframes orbit {
    0% {
        transform: translate(-50%, -50%) rotate(0deg) scale(1);
    }

    100% {
        transform: translate(-50%, -50%) rotate(-1turn) scale(1);
    }
}

@keyframes spawn {
    0% {
        opacity: 0;
        transform: translate(0, 0) scale(0);
    }

    40% {
        opacity: 0.4;
        transform: translate(calc(var(--tx) * 0.3), calc(var(--ty) * 0.3)) scale(0.4);
    }

    70% {
        opacity: 0.8;
        transform: translate(calc(var(--tx) * 0.7), calc(var(--ty) * 0.7)) scale(0.8);
    }

    100% {
        opacity: 1;
        transform: translate(var(--tx), var(--ty)) scale(1);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(1turn);
    }
}

/* Encabezados de producto (home) */
#encabezados-styleglass {
    background: #0277bd !important;
    box-shadow: none !important;
}

#encabezados-styledoor {
    background: #e3007e !important;
}

#encabezados-stylevision {
    background: #fcbc01 !important;
}

.menu-superior.menu-bajo-styledoor,
.menu-superior.menu-bajo-stylevision {
    top: 0 !important;
    margin-top: 0 !important;
}

#marca-styleglass,
#marca-styleglass span {
    color: #e3f2fd !important;
    text-shadow: 0 2px 8px #01579b, 0 0 2px #fff;
}

#marca-stylespace,
#marca-stylespace span {
    color: #ffe9e0 !important;
    text-shadow: 0 2px 8px #c62828, 0 0 2px #fff;
}