/* ==========================================================
   FILTROS ARCADE
   PAGINA: DISEÑO
========================================================== */


/* ==========================================================
   HERO
========================================================== */

.design-page-hero {
    position: relative;
    padding: 175px 0 70px;
    overflow: hidden;

    color: #ffffff;

    background:
        radial-gradient(
            circle at 70% 40%,
            rgba(14, 120, 60, .42),
            transparent 42%
        ),
        linear-gradient(
            100deg,
            #002f1b,
            #07552d
        );
}


.design-page-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: 8px 8px;

    pointer-events: none;
}


.design-page-hero::after {
    content: "";

    position: absolute;

    width: 340px;
    height: 340px;

    right: -80px;
    bottom: -170px;

    background: #ffd900;

    opacity: .08;

    transform: rotate(30deg);

    pointer-events: none;
}


.design-page-hero .container {
    position: relative;
    z-index: 2;
}


.design-page-kicker {
    display: block;

    margin-bottom: 20px;

    font-family: 'Press Start 2P', monospace;
    font-size: 9px;

    letter-spacing: 3px;

    color: #ffd900;
}


.design-page-hero h1 {
    margin: 0 0 18px;

    font-family: 'Press Start 2P', monospace;

    font-size: 48px;
    line-height: 1.35 !important;

    color: #ffffff;
}


.design-page-hero p {
    max-width: 570px;

    margin: 0 0 28px;

    font-size: 17px;
    line-height: 1.5;

    color: rgba(255,255,255,.82);
}


.design-hero-btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 15px 22px;

    background: #ffd900;

    color: #000000 !important;

    font-size: 11px;
    font-weight: 800;

    text-decoration: none !important;

    box-shadow:
        0 4px 0 #9e8700;

    transition:
        transform .2s ease,
        background .2s ease;
}


.design-hero-btn:hover {
    background: #ffe43a;

    transform: translateY(-2px);
}



/* ==========================================================
   HERRAMIENTA DE DISEÑO
========================================================== */

.design-tool {
    padding: 60px 0 70px;

    background: #ffffff;
}


.design-tool-header {
    max-width: 720px;

    margin-bottom: 32px;
}


.design-small-title {
    display: block;

    margin-bottom: 10px;

    font-family: 'Press Start 2P', monospace;
    font-size: 9px;

    color: #ffba00;
}


.design-tool-header h2,
.design-options-heading h2,
.design-process-heading h2 {
    margin: 0 0 10px;

    font-size: 30px;
    font-weight: 700;

    color: #111111;
}


.design-tool-header p,
.design-options-heading p {
    margin: 0;

    font-size: 14px;
    line-height: 1.55;

    color: #777777;
}



/* ==========================================================
   GRID EDITOR
========================================================== */

.design-editor {
    display: grid;

    grid-template-columns:
        minmax(0, 1.35fr)
        minmax(320px, .85fr);

    gap: 26px;

    align-items: start;
}



/* ==========================================================
   PANEL PREVIEW
========================================================== */

.design-preview-panel {
    min-width: 0;

    padding: 22px;

    background: #f7f7f7;

    border: 1px solid #e5e5e5;
}


.design-preview-title {
    display: flex;

    justify-content: space-between;
    align-items: flex-start;

    gap: 15px;

    margin-bottom: 16px;
}


.design-preview-title > div > span {
    display: block;

    margin-bottom: 4px;

    font-size: 8px;
    font-weight: 800;

    letter-spacing: 1px;

    color: #999999;
}


.design-preview-title h3 {
    margin: 0;

    font-size: 17px;
    font-weight: 500;

    color: #111111;
}


.design-preview-live {
    flex-shrink: 0;

    padding: 5px 8px;

    border: 1px solid #dddddd;

    background: #ffffff;

    color: #15a451;

    font-size: 8px;
    font-weight: 700;
}



/* ==========================================================
   FABRIC EDITOR
========================================================== */

.fabric-editor-wrapper {
    position: relative;

    width: 100%;

    max-width: 650px;

    aspect-ratio: 500 / 280;

    margin: 0 auto;

    overflow: hidden;

    background-color: #ffffff;

    background-image:
        linear-gradient(
            45deg,
            #eeeeee 25%,
            transparent 25%
        ),
        linear-gradient(
            -45deg,
            #eeeeee 25%,
            transparent 25%
        ),
        linear-gradient(
            45deg,
            transparent 75%,
            #eeeeee 75%
        ),
        linear-gradient(
            -45deg,
            transparent 75%,
            #eeeeee 75%
        );

    background-size: 18px 18px;

    background-position:
        0 0,
        0 9px,
        9px -9px,
        -9px 0;

    border: 1px solid #dddddd;
}


/*
   Fabric crea automáticamente:
   .canvas-container
*/

.fabric-editor-wrapper .canvas-container {
    position: absolute !important;

    inset: 0;

    width: 100% !important;
    height: 100% !important;
}


/*
   Fabric genera 2 canvas:
   lower-canvas y upper-canvas
*/

.fabric-editor-wrapper canvas {
    width: 100% !important;
    height: 100% !important;
}


/* Mensaje inicial */

.design-empty-preview {
    position: absolute;

    inset: 0;

    z-index: 20;

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    text-align: center;

    pointer-events: none;
}


.empty-preview-icon {
    width: 48px;
    height: 48px;

    margin-bottom: 12px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #ffd900;

    color: #000000;

    font-family: 'Press Start 2P', monospace;

    font-size: 18px;

    box-shadow:
        0 4px 0 #aa9100;
}


.design-empty-preview strong {
    margin-bottom: 4px;

    color: #111111;

    font-size: 14px;
}


.design-empty-preview span {
    color: #999999;

    font-size: 10px;
}


.design-preview-note {
    margin: 13px 0 0;

    font-size: 10px;
    line-height: 1.45;

    color: #999999;
}



/* ==========================================================
   TOOLBAR DE IMAGEN
========================================================== */

.object-toolbar {
    display: none;

    margin-top: 12px;

    padding: 12px;

    background: #111111;

    color: #ffffff;
}


.object-toolbar.active {
    display: block;
}


.toolbar-title {
    display: block;

    margin-bottom: 9px;

    font-family: 'Press Start 2P', monospace;

    font-size: 7px;
    letter-spacing: 1px;

    color: #ffd900;
}


.toolbar-buttons {
    display: flex;

    flex-wrap: wrap;

    gap: 6px;
}


.toolbar-buttons button {
    padding: 8px 10px;

    border: 1px solid #444444;

    background: #252525;

    color: #ffffff;

    font-size: 8px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background .15s ease,
        color .15s ease,
        border-color .15s ease,
        transform .15s ease;
}


.toolbar-buttons button:hover {
    background: #ffd900;

    border-color: #ffd900;

    color: #000000;

    transform: translateY(-1px);
}


.toolbar-buttons .delete-object:hover {
    background: #df3434;

    border-color: #df3434;

    color: #ffffff;
}



/* ==========================================================
   PANEL DERECHO
========================================================== */

.design-upload-panel {
    width: 100%;

    padding: 28px;

    background: #111111;

    color: #ffffff;
}


.design-step {
    display: block;

    margin-bottom: 10px;

    font-family: 'Press Start 2P', monospace;

    font-size: 8px;

    color: #ffd900;
}


.design-upload-panel h3 {
    margin: 0 0 8px;

    color: #ffffff;

    font-size: 25px;
}


.design-upload-panel > p {
    margin: 0 0 22px;

    color: #aaaaaa;

    font-size: 13px;
    line-height: 1.5;
}



/* ==========================================================
   DROPZONE
========================================================== */

.design-dropzone {
    min-height: 170px;

    margin: 0;

    padding: 22px;

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    text-align: center;

    cursor: pointer;

    border: 2px dashed #555555;

    background: #191919;

    transition:
        border-color .2s ease,
        background .2s ease,
        transform .2s ease;
}


.design-dropzone:hover,
.design-dropzone.dragging {
    border-color: #ffd900;

    background: #202020;

    transform: translateY(-2px);
}


.upload-pixel-icon {
    width: 50px;
    height: 50px;

    margin-bottom: 14px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #ffd900;

    color: #000000;

    font-family: 'Press Start 2P', monospace;

    font-size: 18px;

    box-shadow:
        0 4px 0 #a88f00;
}


.design-dropzone strong {
    margin-bottom: 5px;

    color: #ffffff;

    font-size: 14px;
}


.design-dropzone span {
    max-width: 250px;

    color: #aaaaaa;

    font-size: 11px;
    line-height: 1.4;
}


.design-dropzone small {
    margin-top: 10px;

    color: #666666;

    font-size: 9px;
}



/* ==========================================================
   CONTADOR DE IMAGENES
========================================================== */

.design-image-count {
    display: flex;

    align-items: center;
    justify-content: space-between;

    margin-top: 13px;

    padding: 12px 14px;

    background: #222222;
}


.design-image-count span {
    font-size: 8px;
    font-weight: 700;

    color: #888888;
}


.design-image-count strong {
    font-family: 'Press Start 2P', monospace;

    font-size: 13px;

    color: #ffd900;
}



/* ==========================================================
   CHECKS
========================================================== */

.design-upload-help {
    margin-top: 22px;
}


.design-upload-help > div {
    display: flex;

    align-items: center;

    gap: 9px;

    margin-bottom: 8px;
}


.design-upload-help span {
    width: 18px;
    height: 18px;

    flex-shrink: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #16a553;

    color: #ffffff;

    font-size: 10px;
}


.design-upload-help p {
    margin: 0;

    color: #cccccc;

    font-size: 11px;
}



/* ==========================================================
   BORRAR TODO
========================================================== */

.clear-design-btn {
    width: 100%;

    margin-top: 18px;

    padding: 11px 12px;

    border: 1px solid #444444;

    background: transparent;

    color: #aaaaaa;

    font-size: 9px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background .2s ease,
        border-color .2s ease,
        color .2s ease;
}


.clear-design-btn:hover {
    background: #df3434;

    border-color: #df3434;

    color: #ffffff;
}



/* ==========================================================
   BOTON WHATSAPP
========================================================== */

.design-whatsapp {
    width: 100%;

    margin-top: 15px;

    padding: 15px 18px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #ffd900;

    color: #000000 !important;

    text-decoration: none !important;

    font-size: 11px;
    font-weight: 800;

    box-shadow:
        0 4px 0 #a88f00;

    transition:
        transform .2s ease,
        background .2s ease;
}


.design-whatsapp:hover {
    background: #ffe43b;

    transform: translateY(-2px);
}



/* ==========================================================
   OPCIONES DE DISEÑO
========================================================== */

.design-options {
    padding: 65px 0 75px;

    background: #f5f5f5;
}


.design-options-heading {
    max-width: 700px;

    margin-bottom: 32px;
}


.design-options-heading > span {
    display: block;

    margin-bottom: 9px;

    font-family: 'Press Start 2P', monospace;

    font-size: 9px;

    color: #ffba00;
}


.design-options-grid {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 20px;
}



/* ==========================================================
   CARDS DISEÑO
========================================================== */

.design-option-card {
    position: relative;

    min-height: 430px;

    padding: 34px;

    display: flex;

    flex-direction: column;

    overflow: hidden;
}


.design-download-card {
    background: #ffd900;

    color: #111111;
}


.design-canva-card {
    background: #111111;

    color: #ffffff;
}



/* ==========================================================
   ICONO DESCARGA
========================================================== */

.design-option-icon {
    width: 54px;
    height: 54px;

    margin-bottom: 20px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #111111;

    color: #ffffff;

    font-family: 'Press Start 2P', monospace;

    font-size: 21px;
}


.option-kicker {
    display: block;

    margin-bottom: 8px;

    font-family: 'Press Start 2P', monospace;

    font-size: 8px;

    color: #111111;
}


.canva-kicker {
    color: #ffd900;
}


.design-option-card h3 {
    max-width: 450px;

    margin: 0 0 10px;

    color: inherit;

    font-size: 23px;
    line-height: 1.3 !important;
}


.design-option-card > p {
    max-width: 470px;

    margin: 0 0 28px;

    font-size: 13px;
    line-height: 1.5;
}


.design-canva-card > p {
    color: #aaaaaa;
}



/* ==========================================================
   ICONOS SOFTWARE
========================================================== */

.design-software-logos {
    display: flex;

    align-items: flex-start;

    gap: 22px;

    margin: 25px 0 30px;
}


.software-item {
    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 8px;
}


.software-icon {
    width: 54px;
    height: 54px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 7px;

    font-family: Arial, sans-serif;

    font-size: 20px;
    font-weight: 700;

    box-shadow:
        0 4px 0 rgba(0,0,0,.18);
}


/* Illustrator */

.illustrator-icon {
    background: #330000;

    color: #ff9a00;

    border: 2px solid #ff9a00;
}


/* Photoshop */

.photoshop-icon {
    background: #001e36;

    color: #31a8ff;

    border: 2px solid #31a8ff;
}


/* CorelDRAW */

.corel-icon {
    background: #ffffff;

    color: #159447;

    border: 2px solid #159447;

    font-size: 13px;
}


.software-item span {
    font-size: 10px;
    font-weight: 700;

    color: #111111;
}



/* ==========================================================
   CANVA
========================================================== */

.canva-logo-wrap {
    height: 60px;

    margin-bottom: 18px;

    display: flex;

    align-items: center;
}


.canva-css-logo {
    display: inline-block;

    font-family: Arial, sans-serif;

    font-size: 34px;
    font-weight: 700;
    font-style: italic;

    background:
        linear-gradient(
            90deg,
            #00c4cc,
            #7d2ae8
        );

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;
}


.canva-benefits {
    display: flex;

    flex-direction: column;

    gap: 8px;

    margin-bottom: 30px;
}


.canva-benefits span {
    color: #dddddd;

    font-size: 11px;
}



/* ==========================================================
   BOTONES OPCIONES
========================================================== */

.design-option-btn {
    width: 100%;

    margin-top: auto;

    padding: 15px 20px;

    display: flex;

    align-items: center;
    justify-content: center;

    text-decoration: none !important;

    font-size: 11px;
    font-weight: 800;

    transition:
        transform .2s ease,
        background .2s ease;
}


.design-download-btn {
    background: #111111;

    color: #ffffff !important;
}


.design-download-btn:hover {
    background: #292929;

    transform: translateY(-2px);
}


.design-canva-btn {
    background: #ffd900;

    color: #000000 !important;

    box-shadow:
        0 4px 0 #a88f00;
}


.design-canva-btn:hover {
    background: #ffe43b;

    transform: translateY(-2px);
}



/* ==========================================================
   DECORACION PIXEL CARDS
========================================================== */

.design-option-card::after {
    content: "";

    position: absolute;

    right: -50px;
    top: -50px;

    width: 200px;
    height: 200px;

    opacity: .05;

    background-image:
        linear-gradient(
            90deg,
            #000 25%,
            transparent 25%,
            transparent 75%,
            #000 75%
        ),
        linear-gradient(
            #000 25%,
            transparent 25%,
            transparent 75%,
            #000 75%
        );

    background-size:
        20px 20px;

    transform: rotate(15deg);

    pointer-events: none;
}


.design-canva-card::after {
    filter: invert(1);
}



/* ==========================================================
   PROCESO
========================================================== */

.design-process {
    padding: 60px 0;

    background: #ffffff;
}


.design-process-heading {
    margin-bottom: 30px;
}


.design-process-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 1px;

    background: #e5e5e5;
}


.design-process-step {
    padding: 25px 20px;

    background: #ffffff;
}


.design-process-step > span {
    width: 30px;
    height: 30px;

    margin-bottom: 15px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #111111;

    color: #ffffff;

    border-radius: 50%;

    font-size: 11px;
    font-weight: 800;
}


.design-process-step h3 {
    margin: 0 0 6px;

    color: #111111;

    font-size: 15px;
}


.design-process-step p {
    margin: 0;

    color: #777777;

    font-size: 11px;
    line-height: 1.45;
}



/* ==========================================================
   FOOTER
========================================================== */

.arcade-footer {
    padding: 55px 0 25px !important;

    background: #151515 !important;

    color: #aaaaaa;
}


.footer-brand {
    display: flex;

    flex-direction: column;

    align-items: flex-start;
}


.footer-logo {
    width: 145px;
    height: auto;

    margin-bottom: 8px;

    image-rendering: pixelated;
}


.footer-since {
    margin-bottom: 15px;

    font-family: 'Press Start 2P', monospace;

    font-size: 9px;

    letter-spacing: 2px;

    color: #ffd900;
}


.footer-brand p {
    max-width: 250px;

    margin: 0;

    color: #888888;

    font-size: 13px;
    line-height: 1.5;
}


.arcade-footer h6 {
    margin-bottom: 12px;

    color: #ffffff;

    font-size: 16px;
    font-weight: 700;
}


.arcade-footer .single-footer-widget p {
    margin-bottom: 18px;

    color: #888888;
}


.footer-whatsapp-btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 14px 20px;

    background: #ffd900;

    color: #000000 !important;

    font-size: 11px;
    font-weight: 800;

    text-decoration: none !important;

    box-shadow:
        0 4px 0 #a98f00;

    transition:
        transform .2s ease,
        background .2s ease;
}


.footer-whatsapp-btn:hover {
    background: #ffe43b;

    transform: translateY(-2px);
}


.arcade-footer .footer-social {
    gap: 12px;
}


.arcade-footer .footer-social a {
    width: 38px;
    height: 38px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #252525;

    color: #ffffff;

    border: 1px solid #333333;

    transition:
        background .2s ease,
        color .2s ease;
}


.arcade-footer .footer-social a:hover {
    background: #ffd900;

    color: #000000;
}


.arcade-footer .footer-bottom {
    margin-top: 45px;

    padding-top: 22px;

    border-top:
        1px solid #303030;

    text-align: center;
}


.arcade-footer .footer-text {
    color: #777777;

    font-size: 11px;
}



/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 991px) {

    .design-page-hero {
        padding-top: 140px;
    }


    .design-page-hero h1 {
        font-size: 36px;
    }


    /*
       Editor pasa a una columna.
       Primero controles, después preview.
    */

    .design-editor {
        grid-template-columns: 1fr;

        gap: 20px;
    }


    .design-upload-panel {
        order: 1;
    }


    .design-preview-panel {
        order: 2;
    }


    .fabric-editor-wrapper {
        max-width: 650px;
    }


    .design-options-grid {
        grid-template-columns: 1fr;
    }


    .design-process-grid {
        grid-template-columns:
            1fr 1fr;
    }

}



/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 767px) {


    /* HERO */

    .design-page-hero {
        padding:
            120px 20px 45px;
    }


    .design-page-hero h1 {
        font-size: 26px;

        line-height:
            1.45 !important;
    }


    .design-page-hero p {
        font-size: 14px;
    }



    /* TOOL */

    .design-tool {
        padding:
            40px 0;
    }


    .design-tool-header {
        margin-bottom:
            25px;
    }


    .design-tool-header h2,
    .design-options-heading h2,
    .design-process-heading h2 {
        font-size:
            22px;
    }


    .design-editor {
        grid-template-columns: 1fr;

        gap: 15px;
    }


    .design-upload-panel {
        order: 1;

        padding: 22px 18px;
    }


    .design-preview-panel {
        order: 2;

        padding: 12px;
    }


    .design-upload-panel h3 {
        font-size: 21px;
    }


    .design-dropzone {
        min-height: 145px;

        padding: 18px;
    }



    /* EDITOR */

    .fabric-editor-wrapper {
        width: 100%;

        max-width: none;

        aspect-ratio: 500 / 280;
    }


    .design-preview-title {
        align-items: center;
    }


    .design-preview-title h3 {
        font-size: 13px;
    }


    .design-preview-live {
        font-size: 7px;
    }


    .empty-preview-icon {
        width: 40px;
        height: 40px;

        font-size: 14px;
    }


    .design-empty-preview strong {
        font-size: 11px;
    }


    .design-empty-preview span {
        font-size: 8px;
    }



    /* TOOLBAR */

    .toolbar-buttons {
        display: grid;

        grid-template-columns:
            1fr 1fr;
    }


    .toolbar-buttons button {
        width: 100%;

        padding: 10px 4px;

        font-size: 8px;
    }



    /* OPCIONES */

    .design-options {
        padding:
            45px 0 50px;
    }


    .design-options-grid {
        grid-template-columns: 1fr;

        gap: 15px;
    }


    .design-option-card {
        min-height: auto;

        padding: 25px 20px;
    }


    .design-option-card h3 {
        font-size: 19px;
    }



    /* SOFTWARE */

    .design-software-logos {
        gap: 14px;
    }


    .software-icon {
        width: 46px;
        height: 46px;

        font-size: 17px;
    }


    .corel-icon {
        font-size: 11px;
    }


    .software-item span {
        font-size: 8px;
    }


    .canva-css-logo {
        font-size: 30px;
    }



    /* PROCESO */

    .design-process {
        padding:
            45px 0;
    }


    .design-process-grid {
        grid-template-columns:
            1fr 1fr;
    }


    .design-process-step {
        padding:
            18px 13px;
    }


    .design-process-step h3 {
        font-size:
            12px;
    }


    .design-process-step p {
        font-size:
            9px;
    }



    /* FOOTER */

    .arcade-footer {
        padding:
            38px 0 22px !important;

        text-align: center;
    }


    .footer-brand {
        align-items: center;

        margin-bottom: 30px;
    }


    .footer-prices {
        margin-bottom: 30px;
    }


    .arcade-footer .footer-social {
        justify-content: center;
    }


    .arcade-footer .footer-bottom {
        margin-top: 30px;
    }

}



/* ==========================================================
   MOBILE MUY PEQUEÑO
========================================================== */

@media (max-width: 420px) {

    .design-page-hero h1 {
        font-size: 22px;
    }


    .design-process-grid {
        grid-template-columns: 1fr;
    }


    .design-software-logos {
        justify-content: space-between;

        gap: 6px;
    }


    .software-icon {
        width: 42px;
        height: 42px;
    }


    .software-item span {
        font-size: 7px;
    }

}.download-design-btn {
    width: 100%;

    margin-top: 18px;

    padding: 13px 14px;

    border: 0;

    background: #ffffff;

    color: #111111;

    font-size: 9px;
    font-weight: 800;

    cursor: pointer;

    box-shadow:
        0 4px 0 #bdbdbd;

    transition:
        transform .2s ease,
        background .2s ease;
}


.download-design-btn:hover {
    background: #ffd900;

    color: #000000;

    transform: translateY(-2px);

    box-shadow:
        0 4px 0 #a88f00;
}