/* ===== Actualización de diseño Agosto 2026 ===== 
        ==========================================================
        DISEÑO MODERNO - MOTORES CORTES
        ==========================================================
    */


/* ======================================================
    VARIABLES
    ====================================================== */

:root {
    --mc-blue: #0a79c9;
    --mc-blue-dark: #075d9b;
    --mc-cyan: #28c8f5;
    --mc-dark: #07131f;
    --mc-text: #17202a;
    --mc-muted: #687582;
    --mc-light: #f5f8fb;
    --mc-border: #e6edf2;
    --mc-green: #20b86b;
}


/* ======================================================
    GENERAL
    ====================================================== */

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--mc-light);
    color: var(--mc-text);
    font-family: Arial, Helvetica, sans-serif;
}

a {
    text-decoration: none;
}


/* ======================================================
           NAVBAR
           ====================================================== */

.mc-navbar {
    background: rgba(7, 19, 31, .97);
    box-shadow: 0 5px 25px rgba(0,0,0,.12);
}

    .mc-navbar .brand-logo {
        /*font-weight: 800;
        letter-spacing: -.5px;*/
        font-size: 23px;
    }

    .mc-navbar ul li a {
        font-weight: 600;
    }

        .mc-navbar ul li a:hover {
            background: rgba(255,255,255,.08);
        }


/* ======================================================
           HEADER DEL CATÁLOGO
           ====================================================== */

.mc-catalog-header {
    position: relative;
    padding: 85px 20px 80px;
    overflow: hidden;
    color: white;
    background: linear-gradient( 110deg, rgba(3,12,20,.98), rgba(5,55,88,.94) );
}

    .mc-catalog-header::after {
        content: "";
        position: absolute;
        width: 420px;
        height: 420px;
        right: -150px;
        top: -180px;
        border-radius: 50%;
        background: rgba(40,200,245,.12);
        filter: blur(10px);
    }

.mc-header-content {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    margin: auto;
}

.mc-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 28px;
    padding: 9px 14px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 100px;
    color: #d8f5ff;
    background: rgba(255,255,255,.06);
    font-size: 13px;
    font-weight: 700;
    transition: .2s ease;
}

    .mc-back:hover {
        color: white;
        background: rgba(255,255,255,.12);
    }

.mc-header-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    color: #75dcff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

    .mc-header-label span {
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: #28d77c;
        box-shadow: 0 0 0 5px rgba(40,215,124,.12);
    }

.mc-catalog-header h1 {
    margin: 0 0 18px;
    color: white;
    font-size: clamp(38px, 6vw, 64px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -2px;
}

    .mc-catalog-header h1 strong {
        color: var(--mc-cyan);
    }

.mc-header-description {
    max-width: 700px;
    margin: 0;
    color: rgba(255,255,255,.72);
    font-size: 18px;
    line-height: 1.65;
}


/* ======================================================
           CONTENEDOR CATÁLOGO
           ====================================================== */

.mc-catalog {
    padding: 70px 20px 90px;
}

.mc-catalog-container {
    max-width: 1200px;
    margin: auto;
}

.mc-catalog-intro {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 35px;
}

    .mc-catalog-intro h2 {
        margin: 0 0 8px;
        color: var(--mc-dark);
        font-size: 30px;
        font-weight: 800;
        letter-spacing: -.8px;
    }

    .mc-catalog-intro p {
        margin: 0;
        color: var(--mc-muted);
        font-size: 15px;
    }

.mc-product-count {
    flex-shrink: 0;
    padding: 10px 15px;
    border: 1px solid var(--mc-border);
    border-radius: 100px;
    color: var(--mc-blue-dark);
    background: white;
    font-size: 13px;
    font-weight: 700;
}


/* ======================================================
           GRID DE PRODUCTOS
           ====================================================== */

.mc-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}


/* ======================================================
           FICHA DEL PRODUCTO
           ====================================================== */

.mc-product-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--mc-border);
    border-radius: 18px;
    background: white;
    box-shadow: 0 10px 35px rgba(7,19,31,.07);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

    .mc-product-card:hover {
        transform: translateY(-6px);
        border-color: rgba(10,121,201,.25);
        box-shadow: 0 22px 50px rgba(7,19,31,.13);
    }


/* ======================================================
           FOTO
           ====================================================== */

.mc-product-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: #eef3f6;
}

    .mc-product-image img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .45s ease;
        cursor: zoom-in;
    }

.mc-product-card:hover .mc-product-image img {
    transform: scale(1.045);
}

.mc-image-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    z-index: 2;
    padding: 7px 10px;
    border-radius: 8px;
    color: white;
    background: rgba(7,19,31,.84);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .4px;
    backdrop-filter: blur(8px);
}


/* PARA EL SPINNER EN LAS IMAGENES */
/*.mc-image-loading {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 220px;
    overflow: hidden;
    background: #111a22;
}*/

/* Skeleton */
/*.mc-image-skeleton {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    background: #e5e7eb;
}

    .mc-image-skeleton::after {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        left: -60%;
        width: 35%;
        background: linear-gradient( 90deg, transparent 0%, rgba(255,255,255,0.2) 10%, rgba(255,255,255,0.95) 50%, rgba(255,255,255,0.2) 90%, transparent 100% );
        filter: blur(8px);
        transform: skewX(-15deg);
        animation: mc-image-shine 1.1s ease-in-out infinite;
    }

@keyframes mc-image-shine {
    0% {
        left: -60%;
    }

    100% {
        left: 120%;
    }
}*/

/* Imagen */
/*.mc-product-photo {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity .4s ease;
}*/

    /* Cuando termina de cargar */
    /*.mc-product-photo.mc-image-loaded {
        opacity: 1;
    }*/

/* Animación */
/*@keyframes mc-skeleton {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}*/



/* ======================================================
           CONTENIDO FICHA
           ====================================================== */

.mc-product-content {
    padding: 18px;
}

.mc-product-type {
    margin-bottom: 6px;
    color: var(--mc-blue);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.mc-product-title {
    margin: 0 0 12px;
    color: var(--mc-dark);
    font-size: 18px;
    line-height: 1.25;
    font-weight: 800;
}

.mc-product-status {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 16px;
    color: #65737e;
    font-size: 12px;
}

    .mc-product-status span {
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: var(--mc-green);
        box-shadow: 0 0 0 4px rgba(32,184,107,.10);
    }


/* ======================================================
           BOTONES
           ====================================================== */

.mc-product-actions {
    display: flex;
    gap: 8px;
}

.mc-product-btn {
    flex: 1;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 10px;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 800;
    transition: .2s ease;
}

.mc-product-btn-view {
    color: var(--mc-blue-dark);
    border: 1px solid #dce8ef;
    background: #f7fafc;
}

    .mc-product-btn-view:hover {
        color: var(--mc-blue);
        background: #edf7fc;
    }

.mc-product-btn-whatsapp {
    color: white;
    background: #20b86b;
}

    .mc-product-btn-whatsapp:hover {
        color: white;
        background: #159b59;
        transform: translateY(-1px);
    }


/* ======================================================
           CTA
           ====================================================== */

.mc-catalog-cta {
    position: relative;
    overflow: hidden;
    margin-top: 60px;
    padding: 45px;
    border-radius: 22px;
    color: white;
    background: linear-gradient( 110deg, #07131f, #075d9b );
    box-shadow: 0 20px 55px rgba(7,19,31,.14);
}

    .mc-catalog-cta::after {
        content: "";
        position: absolute;
        width: 300px;
        height: 300px;
        right: -100px;
        top: -150px;
        border-radius: 50%;
        background: rgba(40,200,245,.12);
    }

.mc-cta-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.mc-catalog-cta h3 {
    margin: 0 0 8px;
    color: white;
    font-size: 28px;
    font-weight: 800;
}

.mc-catalog-cta p {
    margin: 0;
    color: rgba(255,255,255,.68);
    font-size: 14px;
}

.mc-cta-button {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 14px 20px;
    border-radius: 10px;
    color: #07131f;
    background: white;
    font-size: 13px;
    font-weight: 800;
    transition: .2s ease;
}

    .mc-cta-button:hover {
        color: #07131f;
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(0,0,0,.18);
    }


/* ======================================================
           REDES SOCIALES
           ====================================================== */

.mc-social {
    padding: 60px 20px;
    color: white;
    background: #07131f;
    text-align: center;
}

    .mc-social h3 {
        margin: 0 0 8px;
        color: white;
        font-size: 22px;
        font-weight: 800;
    }

    .mc-social p {
        margin: 0 0 25px;
        color: rgba(255,255,255,.58);
    }

.mc-social-links {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.mc-social-link {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: white;
    background: rgba(255,255,255,.08);
    font-size: 20px;
    transition: .2s ease;
}

    .mc-social-link:hover {
        color: white;
        background: var(--mc-blue);
        transform: translateY(-3px);
    }

    .mc-social-link.whatsapp:hover {
        background: #20b86b;
    }


/* ======================================================
           FOOTER
           ====================================================== */

.mc-footer {
    padding: 25px 20px;
    color: rgba(255,255,255,.5);
    background: #040c13;
    text-align: center;
    font-size: 12px;
}

    .mc-footer strong {
        color: rgba(255,255,255,.85);
    }


/* ======================================================
           TABLET
           ====================================================== */

@media (max-width: 1000px) {

    .mc-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}


/* ======================================================
           MOBILE
           ====================================================== */

@media (max-width: 700px) {

    .mc-catalog-header {
        padding: 55px 20px 60px;
    }

        .mc-catalog-header h1 {
            font-size: 40px;
            letter-spacing: -1.5px;
        }

    .mc-header-description {
        font-size: 16px;
    }

    .mc-catalog {
        padding: 50px 15px 70px;
    }

    .mc-catalog-intro {
        display: block;
        margin-bottom: 25px;
    }

        .mc-catalog-intro h2 {
            font-size: 25px;
        }

    .mc-product-count {
        display: inline-block;
        margin-top: 15px;
    }

    .mc-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .mc-product-card {
        border-radius: 14px;
    }

    .mc-product-content {
        padding: 13px;
    }

    .mc-product-title {
        font-size: 15px;
    }

    .mc-product-actions {
        flex-direction: column;
    }

    .mc-product-btn {
        width: 100%;
    }

    .mc-catalog-cta {
        margin-top: 40px;
        padding: 30px 22px;
        border-radius: 17px;
    }

    .mc-cta-content {
        display: block;
    }

    .mc-catalog-cta h3 {
        font-size: 23px;
    }

    .mc-cta-button {
        margin-top: 20px;
    }
}


/* ======================================================
           MOBILE PEQUEÑO
           ====================================================== */

@media (max-width: 430px) {

    .mc-products-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .mc-product-image {
        aspect-ratio: 4 / 3;
    }

    .mc-product-actions {
        flex-direction: row;
    }
}


/* ======================================================
           LIGHTBOX / VISOR DE IMAGEN
           ====================================================== */

.mc-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background: rgba(2, 8, 13, .94);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
    cursor: zoom-out;
}

    .mc-lightbox.active {
        opacity: 1;
        visibility: visible;
    }


/* Imagen */

.mc-lightbox-content {
    position: relative;
    max-width: 1200px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: default;
}

    .mc-lightbox-content img {
        display: block;
        max-width: 90vw;
        max-height: 82vh;
        width: auto;
        height: auto;
        object-fit: contain;
        border-radius: 10px;
        box-shadow: 0 30px 80px rgba(0,0,0,.45);
        transform: scale(.94);
        transition: transform .3s ease;
    }

.mc-lightbox.active
.mc-lightbox-content img {
    transform: scale(1);
}


/* Botón cerrar */

.mc-lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 5;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 50%;
    color: white;
    background: rgba(255,255,255,.10);
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: .2s ease;
}

    .mc-lightbox-close:hover {
        background: rgba(255,255,255,.20);
        transform: scale(1.05);
    }


/* Texto inferior */

.mc-lightbox-caption {
    margin-top: 15px;
    color: rgba(255,255,255,.75);
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}


/* ======================================================
           MOBILE
           ====================================================== */

@media (max-width: 700px) {

    .mc-lightbox {
        padding: 15px;
    }

    .mc-lightbox-content img {
        max-width: 94vw;
        max-height: 82vh;
        border-radius: 7px;
    }

    .mc-lightbox-close {
        top: 12px;
        right: 12px;
        width: 44px;
        height: 44px;
    }
}
