/* =========================================================
   FRIKI IMPRE3D
   STYLES.CSS COMPLETO
   Versión limpia y optimizada
========================================================= */


/* =========================================================
   VARIABLES
========================================================= */

:root {

    --orange: #ff6a00;
    --orange-light: #ff8a32;
    --orange-dark: #c94f00;

    --black: #050505;
    --black2: #090909;
    --black3: #101010;
    --black4: #151515;

    --gray: #999;
    --gray-light: #c8c8c8;

    --border: rgba(255,255,255,.08);
    --orange-border: rgba(255,106,0,.35);

    --shadow:
        0 20px 60px rgba(0,0,0,.5);
}


/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {

    font-family:
        'Montserrat',
        sans-serif;

    background: #070707;

    color: #fff;

    overflow-x: hidden;
}

body::-webkit-scrollbar {
    width: 8px;
}

body::-webkit-scrollbar-track {
    background: #050505;
}

body::-webkit-scrollbar-thumb {

    background: #292929;

    border-radius: 10px;
}

body::-webkit-scrollbar-thumb:hover {
    background: var(--orange);
}

img {
    max-width: 100%;
    display: block;
}

button,
input,
textarea {
    font-family: inherit;
}

a {
    color: inherit;
}


/* =========================================================
   LOADER
========================================================= */

#loader {

    position: fixed;

    inset: 0;

    width: 100%;
    height: 100vh;

    min-height: 600px;

    z-index: 99999;

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    overflow: hidden;

    background:

        radial-gradient(
            circle at center,
            rgba(255,106,0,.07),
            transparent 30%
        ),

        #030303;

    opacity: 1;

    visibility: visible;

    transition:
        opacity 1.2s ease,
        visibility 1.2s ease;
}

#loader.hidden {

    opacity: 0;

    visibility: hidden;

    pointer-events: none;
}


/* =========================================================
   FONDO DEL LOADER
========================================================= */

.loaderBackground {

    position: absolute;

    inset: 0;

    background:

        linear-gradient(
            rgba(255,255,255,.015) 1px,
            transparent 1px
        ),

        linear-gradient(
            90deg,
            rgba(255,255,255,.015) 1px,
            transparent 1px
        );

    background-size: 50px 50px;

    mask-image:

        linear-gradient(
            to bottom,
            transparent,
            #000,
            transparent
        );

    pointer-events: none;
}


/* =========================================================
   IMPRESORA
========================================================= */

.printer {

    position: relative;

    width: min(720px,90vw);

    height: 430px;

    border-radius: 18px;

    background:

        linear-gradient(
            145deg,
            #171717,
            #090909
        );

    border:
        1px solid
        rgba(255,255,255,.1);

    box-shadow:

        0 35px 100px
        rgba(0,0,0,.8),

        inset 0 1px 0
        rgba(255,255,255,.05);

    overflow: hidden;
}

.printer::before {

    content: "";

    position: absolute;

    inset: -2px;

    border-radius: 20px;

    border:
        1px solid
        rgba(255,106,0,.18);

    pointer-events: none;
}


/* =========================================================
   MARCO
========================================================= */

.frameLeft,
.frameRight,
.frameTop {

    position: absolute;

    background:

        linear-gradient(
            90deg,
            #202020,
            #444,
            #171717
        );

    box-shadow:
        0 0 15px rgba(0,0,0,.8);
}

.frameLeft {

    left: 34px;
    top: 25px;

    width: 14px;
    height: 340px;

    border-radius: 8px;
}

.frameRight {

    right: 34px;
    top: 25px;

    width: 14px;
    height: 340px;

    border-radius: 8px;
}

.frameTop {

    left: 34px;
    top: 25px;

    width: calc(100% - 68px);
    height: 14px;

    border-radius: 8px;
}


/* =========================================================
   RIEL
========================================================= */

.rail {

    position: absolute;

    top: 76px;
    left: 70px;

    width: calc(100% - 140px);
    height: 7px;

    border-radius: 10px;

    background:

        linear-gradient(
            90deg,
            #292929,
            #555,
            #292929
        );

    box-shadow:

        0 2px 8px
        rgba(0,0,0,.8),

        0 0 5px
        rgba(255,255,255,.08);
}


/* =========================================================
   CABEZAL
========================================================= */

.head {

    position: absolute;

    top: 56px;
    left: 8%;

    width: 72px;
    height: 88px;

    transform: translateX(-50%);

    z-index: 10;

    border-radius:
        9px 9px 13px 13px;

    background:

        linear-gradient(
            145deg,
            #303030,
            #111
        );

    border:
        1px solid
        #454545;

    box-shadow:

        0 8px 18px
        rgba(0,0,0,.8),

        inset 0 1px 0
        rgba(255,255,255,.1);

    transition:
        left .05s linear;
}


/* =========================================================
   PARTE FRONTAL DEL CABEZAL
========================================================= */

.head::before {

    content: "";

    position: absolute;

    left: 10px;
    right: 10px;

    top: 12px;

    height: 38px;

    border-radius: 6px;

    background:

        linear-gradient(
            180deg,
            #191919,
            #080808
        );

    border:
        1px solid
        rgba(255,255,255,.06);
}


/* =========================================================
   FAN
========================================================= */

.fan {

    position: absolute;

    z-index: 3;

    top: 17px;
    left: 50%;

    width: 30px;
    height: 30px;

    transform: translateX(-50%);

    border-radius: 50%;

    border:
        3px solid
        #333;

    background: #080808;

    box-shadow:
        inset 0 0 8px #000;
}

.fan::before,
.fan::after {

    content: "";

    position: absolute;

    left: 50%;
    top: 50%;

    width: 18px;
    height: 4px;

    border-radius: 4px;

    background: #555;

    transform:
        translate(-50%,-50%)
        rotate(45deg);
}

.fan::after {

    transform:
        translate(-50%,-50%)
        rotate(-45deg);
}


/* =========================================================
   BOQUILLA
========================================================= */

.nozzle {

    position: absolute;

    z-index: 5;

    left: 50%;
    bottom: -22px;

    width: 20px;
    height: 25px;

    transform: translateX(-50%);

    background:

        linear-gradient(
            90deg,
            #555,
            #222,
            #666
        );

    clip-path:

        polygon(
            15% 0,
            85% 0,
            85% 65%,
            58% 65%,
            58% 100%,
            42% 100%,
            42% 65%,
            15% 65%
        );

    filter:
        drop-shadow(
            0 0 5px
            rgba(255,106,0,.6)
        );
}

.nozzle::after {

    content: "";

    position: absolute;

    bottom: 0;
    left: 50%;

    width: 7px;
    height: 7px;

    transform: translateX(-50%);

    border-radius: 50%;

    background: var(--orange);

    box-shadow:
        0 0 12px
        var(--orange);
}


/* =========================================================
   FILAMENTO
========================================================= */

.filament {

    position: absolute;

    z-index: 4;

    left: 50%;
    bottom: -75px;

    width: 5px;
    height: 55px;

    transform: translateX(-50%);

    transform-origin: top center;

    border-radius: 10px;

    background:

        linear-gradient(
            to bottom,
            #fff3df 0%,
            var(--orange) 18%,
            #ff7200 55%,
            #d94d00 100%
        );

    box-shadow:

        0 0 5px
        rgba(255,106,0,.9),

        0 0 12px
        rgba(255,106,0,.5);

    opacity: 0;
}


/* =========================================================
   MATERIAL RECIÉN IMPRESO
========================================================= */

.filament::after {

    content: "";

    position: absolute;

    left: 50%;
    bottom: -3px;

    width: 12px;
    height: 5px;

    transform: translateX(-50%);

    border-radius: 50%;

    background: var(--orange);

    box-shadow:

        0 0 8px
        var(--orange),

        0 0 18px
        rgba(255,106,0,.6);

    animation:
        depositedPlastic
        .3s
        ease-in-out
        infinite alternate;
}

@keyframes depositedPlastic {

    from {

        width: 8px;

        opacity: .6;
    }

    to {

        width: 16px;

        opacity: 1;
    }
}


/* =========================================================
   HUMO
========================================================= */

.smoke {

    position: absolute;

    left: 50%;
    bottom: -10px;

    width: 9px;
    height: 9px;

    border-radius: 50%;

    background:
        rgba(255,255,255,.12);

    filter: blur(4px);

    opacity: .4;
}

.smoke1 {

    animation:
        smokeAnimation
        2s
        infinite;
}

.smoke2 {

    animation:
        smokeAnimation
        2.4s
        .5s
        infinite;
}

@keyframes smokeAnimation {

    0% {

        opacity: 0;

        transform:
            translate(-50%,0)
            scale(.5);
    }

    25% {
        opacity: .35;
    }

    100% {

        opacity: 0;

        transform:
            translate(
                calc(-50% + 18px),
                -55px
            )
            scale(2.5);
    }
}


/* =========================================================
   CAMA
========================================================= */

.bed {

    position: absolute;

    left: 70px;
    right: 70px;
    bottom: 38px;

    height: 100px;

    border-radius:
        8px 8px 4px 4px;

    background:

        linear-gradient(
            180deg,
            #303030,
            #151515
        );

    border:
        1px solid
        #444;

    box-shadow:

        0 10px 20px
        rgba(0,0,0,.8),

        inset 0 3px 5px
        rgba(255,255,255,.05);
}


/* =========================================================
   GRID
========================================================= */

.grid {

    position: absolute;

    inset: 0;

    opacity: .25;

    background-image:

        linear-gradient(
            rgba(255,255,255,.12) 1px,
            transparent 1px
        ),

        linear-gradient(
            90deg,
            rgba(255,255,255,.12) 1px,
            transparent 1px
        );

    background-size: 25px 25px;
}


/* =========================================================
   ÁREA IMPRESA
========================================================= */

.printedArea {

    position: absolute;

    left: 12%;
    right: 12%;
    bottom: 15px;

    height: 60px;

    display: flex;

    align-items: flex-end;
    justify-content: center;

    overflow: hidden;
}


/* =========================================================
   LOGO IMPRESO
========================================================= */

#logoPrint {

    position: relative;

    z-index: 4;

    margin: 0;
    padding: 0;

    font-size:
        clamp(24px,5vw,46px);

    font-weight: 900;

    letter-spacing: 2px;

    color: var(--orange);

    line-height: 1;

    text-align: center;

    white-space: nowrap;

    text-shadow:

        0 0 6px
        rgba(255,106,0,.6),

        0 0 18px
        rgba(255,106,0,.25);

    opacity: 1;
}


/* =========================================================
   FILAMENTO DEPOSITADO
========================================================= */

.printedFilament {

    position: absolute;

    left: 12%;
    bottom: 12px;

    width: 0%;
    height: 5px;

    border-radius: 10px;

    background:

        linear-gradient(
            90deg,
            #c94f00,
            #ff6a00,
            #ff9b52,
            #ff6a00
        );

    box-shadow:

        0 0 6px
        rgba(255,106,0,.8),

        0 0 14px
        rgba(255,106,0,.35);

    opacity: .95;

    z-index: 3;

    transform-origin: left center;
}

.printedFilament::before,
.printedFilament::after {

    content: "";

    position: absolute;

    left: 0;

    width: 100%;
    height: 3px;

    border-radius: 10px;

    background: var(--orange);

    opacity: .5;
}

.printedFilament::before {
    top: -4px;
}

.printedFilament::after {
    top: 5px;
}


/* =========================================================
   LEDS
========================================================= */

.led {

    position: absolute;

    width: 8px;
    height: 8px;

    border-radius: 50%;

    z-index: 20;

    background: #333;

    box-shadow:
        inset 0 0 3px #000;
}

.led1 {

    top: 45px;
    left: 54px;
}

.led2 {

    top: 45px;
    right: 54px;
}

.led3 {

    top: 45px;
    left: 50%;

    transform: translateX(-50%);
}

#loader.printing .led {

    background: var(--orange);

    box-shadow:
        0 0 10px
        var(--orange);
}


/* =========================================================
   PANEL DE CARGA
========================================================= */

.loadingPanel {

    width: min(620px,88vw);

    margin-top: 40px;

    text-align: center;
}

.loadingPanel h2 {

    margin: 0 0 10px;

    font-size:
        clamp(17px,2vw,24px);

    font-weight: 800;

    letter-spacing: 3px;

    color: #fff;
}

.loadingPanel p {

    margin-bottom: 22px;

    color: #777;

    font-size: 13px;
}


/* =========================================================
   PROGRESO
========================================================= */

.progress {

    width: 100%;
    height: 10px;

    overflow: hidden;

    border-radius: 20px;

    background: #1a1a1a;

    border:
        1px solid
        rgba(255,255,255,.06);

    box-shadow:
        inset 0 2px 5px
        rgba(0,0,0,.8);
}

.progressBar {

    width: 0%;
    height: 100%;

    border-radius: 20px;

    background:

        linear-gradient(
            90deg,
            var(--orange-dark),
            var(--orange),
            #ffad72
        );

    box-shadow:
        0 0 12px
        rgba(255,106,0,.8);

    transition:
        width .08s linear;
}

#percent {

    display: block;

    margin-top: 10px;

    color: var(--orange);

    font-weight: 700;

    font-size: 13px;
}


/* =========================================================
   EFECTO FINAL LOADER
========================================================= */

#loader.finished {

    background:

        radial-gradient(
            circle,
            rgba(255,106,0,.12),
            #030303 55%
        );
}

#loader.finished .printer {

    animation:
        printerFinish
        1s
        ease;
}

@keyframes printerFinish {

    0% {

        transform: scale(1);
    }

    50% {

        transform: scale(1.025);

        box-shadow:

            0 35px 100px
            rgba(255,106,0,.2);
    }

    100% {

        transform: scale(1);
    }
}


/* =========================================================
   SITIO
========================================================= */

#site {

    min-height: 100vh;

    opacity: 0;

    visibility: hidden;

    transform: translateY(15px);

    background: #070707;

    transition:

        opacity 1.2s ease,
        transform 1.2s ease,
        visibility 1.2s ease;
}

#site.siteVisible {

    opacity: 1;

    visibility: visible;

    transform: translateY(0);
}


/* =========================================================
   HEADER
========================================================= */

header {

    position: fixed;

    top: 0;
    left: 0;

    width: 100%;

    z-index: 5000;

    background:
        rgba(5,5,5,.82);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    border-bottom:
        1px solid
        rgba(255,255,255,.05);
}

nav {

    width: min(1200px,92%);

    min-height: 78px;

    margin: auto;

    display: flex;

    align-items: center;

    justify-content: space-between;
}


/* =========================================================
   LOGO NAV
========================================================= */

.logo {
    text-decoration: none;
}

.logo h1 {

    font-size: 25px;

    font-weight: 900;

    letter-spacing: -1px;
}

.logo h1 span {
    color: var(--orange);
}


/* =========================================================
   MENU
========================================================= */

nav ul {

    display: flex;

    align-items: center;

    gap: 32px;

    list-style: none;
}

nav ul a {

    position: relative;

    text-decoration: none;

    color: #ddd;

    font-size: 14px;

    font-weight: 500;

    transition: .3s;
}

nav ul a::after {

    content: "";

    position: absolute;

    left: 0;
    bottom: -8px;

    width: 0;
    height: 2px;

    background: var(--orange);

    transition: .3s;
}

nav ul a:hover {
    color: #fff;
}

nav ul a:hover::after {
    width: 100%;
}


/* =========================================================
   MOBILE MENU
========================================================= */

.menuButton {

    display: none;

    border: 0;

    background: none;

    color: #fff;

    font-size: 28px;

    cursor: pointer;
}


/* =========================================================
   HERO
========================================================= */

.hero {

    position: relative;

    min-height: 100vh;

    display: flex;

    align-items: center;
    justify-content: center;

    overflow: hidden;

    background:

        radial-gradient(
            circle at 75% 50%,
            rgba(255,106,0,.12),
            transparent 30%
        ),

        radial-gradient(
            circle at 20% 30%,
            rgba(255,255,255,.04),
            transparent 30%
        ),

        #060606;
}

.hero::before {

    content: "";

    position: absolute;

    inset: 0;

    background-image:

        linear-gradient(
            rgba(255,255,255,.025) 1px,
            transparent 1px
        ),

        linear-gradient(
            90deg,
            rgba(255,255,255,.025) 1px,
            transparent 1px
        );

    background-size: 60px 60px;

    mask-image:

        linear-gradient(
            to bottom,
            transparent,
            #000 25%,
            #000 75%,
            transparent
        );
}

.heroOverlay {

    position: absolute;

    inset: 0;

    background:

        radial-gradient(
            ellipse at center,
            transparent 20%,
            rgba(0,0,0,.7) 100%
        );
}

.heroContent {

    position: relative;

    z-index: 3;

    width: min(900px,90%);

    text-align: center;

    padding-top: 80px;
}

.miniTitle {

    display: inline-block;

    margin-bottom: 20px;

    color: var(--orange);

    font-size: 13px;

    font-weight: 800;

    letter-spacing: 4px;
}

.hero h2 {

    max-width: 900px;

    margin: auto;

    font-size:
        clamp(42px,7vw,82px);

    line-height: .98;

    font-weight: 900;

    letter-spacing: -3px;
}

.hero p {

    max-width: 720px;

    margin: 28px auto 35px;

    color: #aaa;

    font-size:
        clamp(15px,2vw,18px);

    line-height: 1.8;
}

.heroButtons {

    display: flex;

    justify-content: center;

    gap: 15px;

    flex-wrap: wrap;
}

.heroPrinterGlow {

    position: absolute;

    width: 500px;
    height: 500px;

    right: -150px;
    top: 30%;

    border-radius: 50%;

    background:
        rgba(255,106,0,.08);

    filter: blur(80px);

    pointer-events: none;
}


/* =========================================================
   BOTONES
========================================================= */

.btn,
.btnSecondary {

    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 52px;

    padding: 0 28px;

    border-radius: 10px;

    text-decoration: none;

    font-size: 14px;

    font-weight: 800;

    transition:

        transform .25s ease,
        box-shadow .25s ease,
        background .25s ease,
        border-color .25s ease;
}

.btn {

    background: var(--orange);

    color: #fff;

    border:
        1px solid
        var(--orange);

    box-shadow:
        0 10px 30px
        rgba(255,106,0,.18);
}

.btn:hover {

    transform: translateY(-3px);

    background: var(--orange-light);

    box-shadow:
        0 15px 40px
        rgba(255,106,0,.35);
}

.btnSecondary {

    color: #fff;

    background:
        rgba(255,255,255,.03);

    border:
        1px solid
        rgba(255,255,255,.15);
}

.btnSecondary:hover {

    transform: translateY(-3px);

    border-color: var(--orange);

    color: var(--orange);
}


/* =========================================================
   SECCIONES
========================================================= */

section {

    position: relative;

    padding: 120px 6%;
}


/* =========================================================
   TITULOS
========================================================= */

.sectionTitle {

    max-width: 850px;

    margin: 0 auto 65px;

    text-align: center;
}

.sectionTitle > span {

    display: block;

    margin-bottom: 12px;

    color: var(--orange);

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 4px;
}

.sectionTitle h2 {

    margin-bottom: 18px;

    font-size:
        clamp(32px,5vw,52px);

    line-height: 1.05;

    font-weight: 900;

    letter-spacing: -1px;
}

.sectionTitle p {

    color: #888;

    line-height: 1.8;
}


/* =========================================================
   SERVICIOS
========================================================= */

.services {

    background:

        linear-gradient(
            180deg,
            #070707,
            #0b0b0b
        );
}

.cards {

    width: min(1200px,100%);

    margin: auto;

    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(240px,1fr)
        );

    gap: 20px;
}

.card {

    position: relative;

    padding: 35px 30px;

    min-height: 210px;

    border-radius: 16px;

    background:

        linear-gradient(
            145deg,
            #151515,
            #0c0c0c
        );

    border:
        1px solid
        rgba(255,255,255,.07);

    overflow: hidden;

    transition:

        transform .35s ease,
        border-color .35s ease,
        box-shadow .35s ease;
}

.card::before {

    content: "";

    position: absolute;

    left: 0;
    top: 0;

    width: 100%;
    height: 2px;

    background:

        linear-gradient(
            90deg,
            transparent,
            var(--orange),
            transparent
        );

    opacity: 0;

    transition: .35s;
}

.card:hover {

    transform: translateY(-10px);

    border-color:
        rgba(255,106,0,.35);

    box-shadow:
        0 20px 50px
        rgba(0,0,0,.45);
}

.card:hover::before {
    opacity: 1;
}

.card .icon {

    width: 50px;
    height: 50px;

    margin-bottom: 20px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background:
        rgba(255,106,0,.08);

    border:
        1px solid
        rgba(255,106,0,.15);

    font-size: 24px;
}

.card h3 {

    margin-bottom: 12px;

    color: #fff;

    font-size: 20px;
}

.card p {

    color: #858585;

    font-size: 14px;

    line-height: 1.7;
}


/* =========================================================
   STATS
========================================================= */

.stats {

    width: min(1000px,100%);

    margin: 70px auto 0;

    display: grid;

    grid-template-columns:
        repeat(4,1fr);

    gap: 20px;
}

.stat {

    padding: 25px;

    text-align: center;

    border-top:
        1px solid
        rgba(255,106,0,.25);
}

.stat strong {

    display: block;

    margin-bottom: 8px;

    color: var(--orange);

    font-size:
        clamp(32px,5vw,48px);

    font-weight: 900;
}

.stat span {

    color: #777;

    font-size: 13px;
}


/* =========================================================
   GALERÍA
========================================================= */

.gallery {
    background: #050505;
}

.galleryGrid {

    width: min(1200px,92%);

    margin: auto;

    display: grid;

    grid-template-columns:
        repeat(3,1fr);

    gap: 24px;
}

.projectCard {

    position: relative;

    padding: 0;

    overflow: hidden;

    cursor: pointer;

    background: #101010;

    border:
        1px solid
        rgba(255,255,255,.07);

    border-radius: 18px;

    transition:

        transform .35s ease,
        border-color .35s ease,
        box-shadow .35s ease;
}

.projectCard:hover {

    transform: translateY(-8px);

    border-color:
        rgba(255,106,0,.45);

    box-shadow:
        0 25px 60px
        rgba(0,0,0,.55);
}

.galleryImage {

    position: relative;

    width: 100%;
    height: 280px;

    overflow: hidden;

    background: #151515;
}

.galleryImage img {

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:

        transform .6s ease,
        filter .6s ease;
}

.projectCard:hover
.galleryImage img {

    transform: scale(1.08);

    filter: brightness(.72);
}

.galleryCounter {

    position: absolute;

    top: 15px;
    right: 15px;

    z-index: 3;

    padding: 8px 12px;

    border-radius: 20px;

    background:
        rgba(0,0,0,.75);

    border:
        1px solid
        rgba(255,255,255,.12);

    backdrop-filter: blur(10px);

    color: #fff;

    font-size: 11px;

    font-weight: 700;
}

.projectInfo {
    padding: 25px;
}

.projectInfo > span {

    display: block;

    margin-bottom: 9px;

    color: var(--orange);

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 2px;
}

.projectInfo h3 {

    margin-bottom: 10px;

    color: #fff;

    font-size: 21px;
}

.projectInfo p {

    margin-bottom: 18px;

    color: #777;

    font-size: 13px;

    line-height: 1.7;
}


/* =========================================================
   BOTÓN VER PROYECTO
========================================================= */

.viewProject {

    width: 100%;

    min-height: 42px;

    margin-top: 9px;

    padding: 0 16px;

    display: flex;

    align-items: center;
    justify-content: center;

    border:
        1px solid
        rgba(255,255,255,.09);

    border-radius: 10px;

    background:
        rgba(255,255,255,.025);

    color: #999;

    font-family: inherit;

    font-size: 12px;

    font-weight: 700;

    letter-spacing: .3px;

    cursor: pointer;

    transition:

        color .25s ease,
        background .25s ease,
        border-color .25s ease,
        transform .25s ease;
}

.viewProject:hover {

    transform: translateY(-1px);

    color: var(--orange);

    background:
        rgba(255,106,0,.06);

    border-color:
        rgba(255,106,0,.3);
}


/* =========================================================
   PRODUCTOS — PRECIO Y BOTÓN COMPRAR
========================================================= */

.productPrice {

    margin-top: 18px;

    color: #fff;

    font-size: 24px;

    font-weight: 800;

    letter-spacing: -.5px;

    line-height: 1.2;

    white-space: normal;
}

.buyButton {

    width: 100%;

    min-height: 46px;

    margin-top: 16px;

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 9px;

    padding: 0 20px;

    border:
        1px solid
        var(--orange);

    border-radius: 10px;

    background:

        linear-gradient(
            135deg,
            var(--orange),
            var(--orange-dark)
        );

    color: #fff;

    font-family: inherit;

    font-size: 13px;

    font-weight: 800;

    letter-spacing: .4px;

    cursor: pointer;

    box-shadow:
        0 8px 22px
        rgba(255,106,0,.18);

    transition:

        transform .25s ease,
        box-shadow .25s ease,
        background .25s ease,
        border-color .25s ease;
}

.buyButton:hover {

    transform: translateY(-2px);

    background:

        linear-gradient(
            135deg,
            var(--orange-light),
            var(--orange)
        );

    border-color: var(--orange-light);

    box-shadow:
        0 12px 30px
        rgba(255,106,0,.32);
}

.buyButton:active {

    transform: translateY(0);

    box-shadow:
        0 6px 16px
        rgba(255,106,0,.18);
}


/* =========================================================
   MATERIALES
========================================================= */

.materials {
    background: #090909;
}


/* =========================================================
   WHY
========================================================= */

.why {

    background:

        linear-gradient(
            180deg,
            #080808,
            #0d0d0d
        );
}

.whyGrid {

    width: min(1100px,100%);

    margin: auto;

    display: grid;

    grid-template-columns:
        repeat(2,1fr);

    gap: 20px;
}

.whyGrid > div {

    padding: 30px;

    border:
        1px solid
        rgba(255,255,255,.06);

    border-radius: 14px;

    background:
        rgba(255,255,255,.02);

    transition: .3s;
}

.whyGrid > div:hover {

    border-color:
        rgba(255,106,0,.25);

    transform: translateY(-5px);
}

.whyGrid h3 {

    margin-bottom: 12px;

    color: var(--orange);

    font-size: 17px;
}

.whyGrid p {

    color: #888;

    line-height: 1.7;

    font-size: 14px;
}


/* =========================================================
   CONTACTO
========================================================= */

.contact {
    background: #050505;
}

.contactContainer {

    width: min(1100px,100%);

    margin: auto;

    display: grid;

    grid-template-columns:
        1.1fr .9fr;

    gap: 30px;
}

.contactForm {

    display: flex;

    flex-direction: column;

    gap: 15px;
}

.contactForm input,
.contactForm textarea {

    width: 100%;

    padding: 17px 18px;

    border:
        1px solid
        rgba(255,255,255,.08);

    border-radius: 10px;

    outline: none;

    background: #111;

    color: #fff;

    font-size: 14px;

    transition: .3s;
}

.contactForm textarea {

    resize: vertical;

    min-height: 150px;
}

.contactForm input::placeholder,
.contactForm textarea::placeholder {
    color: #666;
}

.contactForm input:focus,
.contactForm textarea:focus {

    border-color: var(--orange);

    box-shadow:

        0 0 0 3px
        rgba(255,106,0,.08);
}

.contactInfo {

    display: grid;

    grid-template-columns:
        repeat(2,1fr);

    gap: 15px;
}

.infoCard {

    padding: 25px;

    border-radius: 14px;

    background: #111;

    border:
        1px solid
        rgba(255,255,255,.07);
}

.infoCard h3 {

    margin-bottom: 10px;

    color: var(--orange);

    font-size: 15px;
}

.infoCard p {

    color: #888;

    font-size: 13px;

    line-height: 1.7;
}


/* =========================================================
   FORM MESSAGE
========================================================= */

.formMessage {

    padding: 14px;

    border-radius: 10px;

    background:
        rgba(255,106,0,.08);

    border:
        1px solid
        rgba(255,106,0,.25);

    color: var(--orange);

    opacity: 0;

    transform: translateY(-5px);

    transition: .3s;
}

.formMessage.show {

    opacity: 1;

    transform: translateY(0);
}


/* =========================================================
   CTA
========================================================= */

.cta {

    padding: 110px 6%;

    text-align: center;

    background:

        radial-gradient(
            circle at center,
            rgba(255,106,0,.12),
            transparent 45%
        ),

        #080808;
}

.ctaContent {

    max-width: 800px;

    margin: auto;
}

.cta h2 {

    margin-bottom: 18px;

    font-size:
        clamp(32px,5vw,55px);

    line-height: 1.05;

    font-weight: 900;
}

.cta p {

    margin-bottom: 30px;

    color: #888;
}


/* =========================================================
   WHATSAPP
========================================================= */

.whatsapp {

    position: fixed;

    right: 25px;
    bottom: 25px;

    z-index: 4000;

    width: 58px;
    height: 58px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #25d366;

    color: #fff;

    text-decoration: none;

    font-size: 27px;

    box-shadow:
        0 10px 30px
        rgba(0,0,0,.4);

    transition: .3s;
}

.whatsapp:hover {

    transform:
        translateY(-5px)
        scale(1.05);
}


/* =========================================================
   OCULTAR BOTÓN WHATSAPP SUELTO
========================================================= */

a.btn[href*="wa.me"]:not(.presupuestoBtn) {
    display: none !important;
}


/* =========================================================
   FOOTER
========================================================= */

footer {

    padding: 65px 6% 35px;

    text-align: center;

    background: #030303;

    border-top:
        1px solid
        rgba(255,255,255,.05);
}

.footerLogo h2 {

    margin-bottom: 15px;

    font-size: 28px;

    font-weight: 900;
}

.footerLogo span {
    color: var(--orange);
}

footer > p {

    color: #666;

    line-height: 1.7;

    font-size: 13px;
}

.footerSocial {

    display: flex;

    justify-content: center;

    gap: 25px;

    margin: 25px 0;
}

.footerSocial a {

    color: #777;

    text-decoration: none;

    font-size: 13px;

    transition: .3s;
}

.footerSocial a:hover {
    color: var(--orange);
}

footer .copyright {

    padding-top: 25px;

    border-top:
        1px solid
        rgba(255,255,255,.05);

    color: #444;
}


/* =========================================================
   MODAL GALERÍA
========================================================= */

.galleryModal {

    position: fixed;

    inset: 0;

    z-index: 999999;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 30px;

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transition:

        opacity .3s ease,
        visibility .3s ease;
}

.galleryModal.active {

    opacity: 1;

    visibility: visible;

    pointer-events: auto;
}

.modalBackground {

    position: absolute;

    inset: 0;

    background:
        rgba(0,0,0,.92);

    backdrop-filter: blur(15px);
}

.modalContent {

    position: relative;

    z-index: 2;

    width: min(1050px,95vw);

    max-height: 92vh;

    padding: 35px;

    overflow: auto;

    border-radius: 20px;

    background:

        linear-gradient(
            145deg,
            #151515,
            #090909
        );

    border:
        1px solid
        rgba(255,255,255,.1);

    box-shadow:
        0 40px 100px
        rgba(0,0,0,.8);

    transform:
        translateY(20px)
        scale(.97);

    transition:
        transform .35s ease;
}

.galleryModal.active
.modalContent {

    transform:
        translateY(0)
        scale(1);
}


/* =========================================================
   CERRAR MODAL
========================================================= */

.closeGallery {

    position: absolute;

    top: 18px;
    right: 20px;

    z-index: 20;

    width: 42px;
    height: 42px;

    border-radius: 50%;

    border:
        1px solid
        rgba(255,255,255,.12);

    background:
        rgba(0,0,0,.7);

    color: #fff;

    font-size: 28px;

    line-height: 1;

    cursor: pointer;

    transition: .25s;
}

.closeGallery:hover {

    background: var(--orange);

    border-color: var(--orange);

    transform: rotate(90deg);
}


/* =========================================================
   HEADER MODAL
========================================================= */

.modalHeader {

    margin-bottom: 20px;

    padding-right: 50px;
}

.modalHeader span {

    display: block;

    margin-bottom: 8px;

    color: var(--orange);

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 3px;
}

.modalHeader h2 {

    margin: 0;

    color: #fff;

    font-size:
        clamp(25px,4vw,38px);
}


/* =========================================================
   FOTO PRINCIPAL
========================================================= */

.mainPhoto {

    position: relative;

    width: 100%;

    height:
        min(58vh,600px);

    display: flex;

    align-items: center;
    justify-content: center;

    overflow: hidden;

    border-radius: 14px;

    background: #050505;

    border:
        1px solid
        rgba(255,255,255,.07);
}

.mainPhoto img {

    width: 100%;
    height: 100%;

    object-fit: contain;

    user-select: none;
}


/* =========================================================
   FLECHAS
========================================================= */

.galleryArrow {

    position: absolute;

    z-index: 10;

    top: 50%;

    transform: translateY(-50%);

    width: 52px;
    height: 52px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    border:
        1px solid
        rgba(255,255,255,.15);

    background:
        rgba(0,0,0,.7);

    color: #fff;

    font-size: 40px;

    line-height: 1;

    cursor: pointer;

    transition: .25s;
}

.galleryArrow:hover {

    background: var(--orange);

    border-color: var(--orange);
}

.galleryArrow.prev {
    left: 18px;
}

.galleryArrow.next {
    right: 18px;
}


/* =========================================================
   CONTADOR
========================================================= */

.photoCounter {

    margin-top: 14px;

    text-align: center;

    color: #777;

    font-size: 12px;

    font-weight: 700;
}


/* =========================================================
   MINIATURAS
========================================================= */

.thumbnails {

    display: flex;

    justify-content: center;

    gap: 10px;

    margin-top: 20px;

    overflow-x: auto;

    padding: 5px;
}

.thumbnail {

    flex:
        0 0 85px;

    width: 85px;
    height: 65px;

    padding: 0;

    overflow: hidden;

    cursor: pointer;

    border:
        2px solid
        transparent;

    border-radius: 8px;

    background: #111;

    opacity: .5;

    transition: .25s;
}

.thumbnail img {

    width: 100%;
    height: 100%;

    object-fit: cover;
}

.thumbnail:hover {
    opacity: 1;
}

.thumbnail.active {

    opacity: 1;

    border-color: var(--orange);

    box-shadow:
        0 0 15px
        rgba(255,106,0,.3);
}


/* =========================================================
   SCROLL REVEAL
========================================================= */

.scrollReveal {

    opacity: 0;

    transform: translateY(35px);

    transition:

        opacity .7s ease,
        transform .7s ease;
}

.scrollReveal.visible {

    opacity: 1;

    transform: translateY(0);
}


/* =========================================================
   ANIMACIÓN DEL CABEZAL
========================================================= */

.head.printing {

    animation:
        headWorking
        .35s
        ease-in-out
        infinite alternate;
}

@keyframes headWorking {

    0% {

        transform:
            translateX(-50%)
            translateY(0);
    }

    100% {

        transform:
            translateX(-50%)
            translateY(2px);
    }
}


/* =========================================================
   VENTILADOR GIRANDO
========================================================= */

.head.printing .fan::before {

    animation:
        fanSpin
        .18s
        linear
        infinite;
}

.head.printing .fan::after {

    animation:
        fanSpinReverse
        .18s
        linear
        infinite;
}

@keyframes fanSpin {

    from {

        transform:
            translate(-50%,-50%)
            rotate(0deg);
    }

    to {

        transform:
            translate(-50%,-50%)
            rotate(360deg);
    }
}

@keyframes fanSpinReverse {

    from {

        transform:
            translate(-50%,-50%)
            rotate(0deg);
    }

    to {

        transform:
            translate(-50%,-50%)
            rotate(-360deg);
    }
}


/* =========================================================
   BOQUILLA CALIENTE
========================================================= */

.head.printing .nozzle::after {

    animation:
        nozzleGlow
        .5s
        ease-in-out
        infinite alternate;
}

@keyframes nozzleGlow {

    from {

        box-shadow:
            0 0 6px
            var(--orange);

        opacity: .7;
    }

    to {

        box-shadow:

            0 0 20px
            var(--orange),

            0 0 35px
            rgba(255,106,0,.5);

        opacity: 1;
    }
}


/* =========================================================
   FILAMENTO SALIENDO
========================================================= */

.head.printing .filament {

    opacity: 1;

    animation:
        filamentExtrude
        .18s
        ease-in-out
        infinite alternate;
}

@keyframes filamentExtrude {

    0% {

        height: 38px;

        transform:
            translateX(-50%)
            scaleX(.8);
    }

    100% {

        height: 52px;

        transform:
            translateX(-50%)
            scaleX(1.15);
    }
}


/* =========================================================
   HUMO MÁS ACTIVO DURANTE IMPRESIÓN
========================================================= */

.head.printing .smoke {
    opacity: .6;
}

.head.printing .smoke1 {

    animation:
        smokeAnimation
        1.2s
        infinite;
}

.head.printing .smoke2 {

    animation:
        smokeAnimation
        1.5s
        .3s
        infinite;
}


/* =========================================================
   RESPONSIVE TABLET
========================================================= */

@media (max-width: 900px) {

    .printer {
        height: 390px;
    }

    .galleryGrid {

        grid-template-columns:
            repeat(2,1fr);
    }

    .contactContainer {

        grid-template-columns: 1fr;
    }

    .stats {

        grid-template-columns:
            repeat(2,1fr);
    }
}


/* =========================================================
   RESPONSIVE MOBILE
========================================================= */

@media (max-width: 700px) {

    #loader {
        min-height: 550px;
    }

    .printer {

        width: 94vw;

        height: 330px;
    }

    .frameLeft {

        left: 18px;

        height: 255px;
    }

    .frameRight {

        right: 18px;

        height: 255px;
    }

    .frameTop {

        left: 18px;

        width:
            calc(100% - 36px);
    }

    .rail {

        left: 45px;

        width:
            calc(100% - 90px);

        top: 65px;
    }

    .head {

        width: 58px;
        height: 72px;

        top: 47px;
    }

    .bed {

        left: 35px;
        right: 35px;

        bottom: 28px;

        height: 78px;
    }

    .printedArea {
        height: 50px;
    }

    #logoPrint {

        font-size: 22px;

        letter-spacing: 1px;
    }

    .loadingPanel {
        margin-top: 25px;
    }

    .loadingPanel h2 {

        font-size: 15px;

        letter-spacing: 2px;
    }

    .loadingPanel p {
        font-size: 11px;
    }

    nav {
        min-height: 68px;
    }

    .logo h1 {
        font-size: 21px;
    }

    .menuButton {
        display: block;
    }

    nav ul {

        position: absolute;

        top: 68px;
        left: 0;

        width: 100%;

        padding: 20px;

        display: none;

        flex-direction: column;

        align-items: center;

        gap: 20px;

        background:
            rgba(5,5,5,.98);

        border-bottom:
            1px solid
            rgba(255,255,255,.08);
    }

    nav ul.active {
        display: flex;
    }

    .heroContent {
        padding-top: 50px;
    }

    .hero h2 {
        letter-spacing: -2px;
    }

    section {
        padding: 80px 5%;
    }

    .sectionTitle {
        margin-bottom: 45px;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .galleryGrid {

        grid-template-columns: 1fr;

        width: 92%;
    }

    .galleryImage {
        height: 280px;
    }

    .whyGrid {
        grid-template-columns: 1fr;
    }

    .contactInfo {
        grid-template-columns: 1fr;
    }

    .heroButtons {

        flex-direction: column;

        align-items: stretch;
    }

    .btn,
    .btnSecondary {
        width: 100%;
    }

    .whatsapp {

        width: 52px;
        height: 52px;

        right: 18px;
        bottom: 18px;
    }

    .galleryModal {
        padding: 10px;
    }

    .modalContent {

        width: 100%;

        max-height: 95vh;

        padding: 20px;

        border-radius: 14px;
    }

    .mainPhoto {
        height: 50vh;
    }

    .galleryArrow {

        width: 42px;
        height: 42px;

        font-size: 32px;
    }

    .galleryArrow.prev {
        left: 8px;
    }

    .galleryArrow.next {
        right: 8px;
    }

    .thumbnail {

        flex-basis: 70px;

        width: 70px;
        height: 55px;
    }

    .productPrice {
        font-size: 22px;
    }

    .buyButton {
        min-height: 48px;
    }
}


/* =========================================================
   MOBILE MUY PEQUEÑO
========================================================= */

@media (max-width: 400px) {

    .printer {
        height: 300px;
    }

    .bed {

        left: 28px;
        right: 28px;

        bottom: 23px;
    }

    .rail {

        left: 38px;

        width:
            calc(100% - 76px);
    }

    .frameLeft {
        left: 12px;
    }

    .frameRight {
        right: 12px;
    }

    .frameTop {

        left: 12px;

        width:
            calc(100% - 24px);
    }

    #logoPrint {
        font-size: 19px;
    }
}


/* =========================================================
   ACCESIBILIDAD / REDUCCIÓN DE MOVIMIENTO
========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {

        animation-duration: .01ms !important;

        animation-iteration-count: 1 !important;

        transition-duration: .01ms !important;

        scroll-behavior: auto !important;
    }
}

/* =========================
   CARRITO
========================= */

.cartButton{
    position:fixed;
    right:25px;
    bottom:25px;
    width:65px;
    height:65px;
    border-radius:50%;
    background:#ff6a00;
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:28px;
    cursor:pointer;
    z-index:9999;
    box-shadow:0 10px 25px rgba(0,0,0,.4);
}

.cartButton span{
    position:absolute;
    top:-4px;
    right:-4px;
    background:#fff;
    color:#000;
    width:24px;
    height:24px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:12px;
    font-weight:700;
}

.carritoPanel{
    position:fixed;
    top:0;
    right:-380px;
    width:360px;
    max-width:100%;
    height:100%;
    background:#111;
    z-index:9998;
    display:flex;
    flex-direction:column;
    transition:.35s;
}

.carritoPanel.active{
    right:0;
}

.carritoHeader,
.carritoFooter{
    padding:20px;
    border-bottom:1px solid #222;
}

.carritoHeader{
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.carritoHeader button{
    background:none;
    border:none;
    color:#fff;
    font-size:24px;
    cursor:pointer;
}

.listaCarrito{
    flex:1;
    overflow:auto;
    padding:15px;
}

.itemCarrito{
    border-bottom:1px solid #222;
    padding:12px 0;
}

.itemCarrito h4{
    margin-bottom:6px;
}

.itemCarrito .controles{
    display:flex;
    align-items:center;
    gap:8px;
    margin-top:8px;
}

.itemCarrito button{
    width:28px;
    height:28px;
    border:none;
    border-radius:6px;
    background:#ff6a00;
    color:#fff;
    cursor:pointer;
}

.eliminar{
    background:#444 !important;
}

.carritoVacio{
    color:#888;
    text-align:center;
    margin-top:30px;
}

/* =========================================
   HERO GALERÍA + IMPRESORA 3D
========================================= */

.galleryPageHero{
    padding: 120px 20px 40px;
    min-height: auto;
}

.printerHero{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    margin:18px 0 0;
}

.printer3D{
    width:460px;
    max-width:95%;
    overflow:visible;
    filter:drop-shadow(0 15px 35px rgba(255,106,0,.15));
    animation:floatPrinter 4s ease-in-out infinite;
}

.printerHero p{
    margin-top:10px;
    font-size:11px;
    letter-spacing:3px;
    color:#7d7d7d;
    text-transform:uppercase;
}

/* Colores */
.pBase{fill:#222;}
.pFrame{fill:#111;stroke:#505050;stroke-width:3;}
.pRail{fill:#666;}
.pHead{fill:#d8d8d8;}
.pNozzle{fill:#ff6a00;}
.pPiece{fill:#ff6a00;}
.pFilament{
    stroke:#ff8a33;
    stroke-width:2;
    stroke-linecap:round;
}

/* Animaciones */
.head3d{
    animation:movePrinter 3s ease-in-out infinite;
    transform-box:fill-box;
}

.filament3d{
    animation:filamentGlow 1s ease-in-out infinite;
}

.spark{animation:spark1 1s infinite;}
.spark2{animation:spark2 1s .5s infinite;}

@keyframes movePrinter{
    0%,100%{transform:translateX(-38px);}
    50%{transform:translateX(38px);}
}

@keyframes floatPrinter{
    0%,100%{transform:translateY(0);}
    50%{transform:translateY(-5px);}
}

@keyframes filamentGlow{
    0%,100%{opacity:.4;}
    50%{opacity:1;}
}

@keyframes spark1{
    0%{opacity:0;transform:translateY(0);}
    50%{opacity:1;}
    100%{opacity:0;transform:translateY(-6px);}
}

@keyframes spark2{
    0%{opacity:0;transform:translateY(0);}
    50%{opacity:1;}
    100%{opacity:0;transform:translateY(-5px);}
}