/* =========================================================
   MAKERS LASER CR - HOJA DE ESTILOS E-COMMERCE
   ========================================================= */

body {
    min-height: 100vh;
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #f8fafc;
    color: #0f172a;
    transition: background-color 0.3s ease, color 0.3s ease;
}

a, button, input {
    transition: all 0.2s ease-in-out;
}

body.dark-mode {
    background-color: #090d16 !important;
    color: #f8fafc !important;
}

/* HERO BANNER */
.hero-banner-ecommerce {
    position: relative;
    width: 100%;
    min-height: 440px;
    background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.72)), url('/images/fondos/corte-laser-fondo.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-align: center;
    padding: 60px 20px;
}

.hero-container {
    max-width: 820px;
    margin: 0 auto;
}

.hero-badge {
    background-color: #128c7e;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 6px 18px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 18px;
}

.hero-headline {
    font-size: 2.85rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.2;
    color: #ffffff;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.8);
}

.hero-subtitle-text {
    color: #f1f5f9;
    font-size: 1.1rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.btn-ws-hero {
    background-color: #128c7e;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 1.05rem;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

    .btn-ws-hero:hover {
        background-color: #0e6f64;
        transform: translateY(-2px);
    }

/* TARJETAS DE PRODUCTO */
.product-card-real {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .product-card-real:hover {
        transform: translateY(-4px);
        box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    }

.product-image-container {
    position: relative;
    aspect-ratio: 1 / 1;
    background-color: #f1f5f9;
    overflow: hidden;
}

    .product-image-container img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.product-status-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(15, 23, 42, 0.85);
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.product-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-category-text {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.product-title-text {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
    margin-bottom: 12px;
    flex-grow: 1;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid #f1f5f9;
}

.product-price-val {
    font-size: 1.15rem;
    font-weight: 800;
    color: #128c7e;
}

.btn-card-action {
    background-color: #f1f5f9;
    color: #0f172a;
    font-weight: 600;
    font-size: 0.8rem;
    padding: 6px 14px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
}

    .btn-card-action:hover {
        background-color: #128c7e;
        color: #ffffff;
    }

/* REGLAS MODO OSCURO */
body.dark-mode .product-card-real {
    background: #0f172a !important;
    border-color: #1e293b !important;
}

body.dark-mode .product-image-container {
    background-color: #1e293b !important;
}

body.dark-mode .product-title-text {
    color: #f8fafc !important;
}

body.dark-mode .product-category-text {
    color: #94a3b8 !important;
}

body.dark-mode .product-price-val {
    color: #2dd4bf !important;
}

body.dark-mode .btn-card-action {
    background-color: #1e293b;
    color: #f8fafc;
}

    body.dark-mode .btn-card-action:hover {
        background-color: #2dd4bf;
        color: #0f172a;
    }

body.dark-mode h3 {
    color: #f8fafc !important;
}

body.dark-mode .text-muted {
    color: #cbd5e1 !important;
}

body.dark-mode .border-bottom {
    border-color: #1e293b !important;
}

/* =========================================================
   AJUSTES COMPACTOS DE NAVEGACIÓN Y CABECERA STICKY
   ========================================================= */
.main-header {
    z-index: 1020 !important;
    padding: 6px 0 !important;
}

.main-nav {
    padding-top: 2px !important;
    padding-bottom: 2px !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.nav-category-link {
    padding: 4px 12px !important;
    font-size: 0.88rem !important;
}

/* Bloque de reglas para celulares */
@media (max-width: 767.98px) {
    .top-social-bar {
        padding: 4px 0 !important;
    }

    .social-top-link span {
        display: none !important;
    }

    .social-top-link {
        background-color: transparent !important;
        padding: 4px 10px !important;
        font-size: 1.15rem !important;
        opacity: 0.9;
    }

        .social-top-link:hover {
            transform: none !important;
            box-shadow: none !important;
        }
}

/* =========================================================
   ESTILOS DE PLACEHOLDERS (TEXTOS DE REFERENCIA)
   ========================================================= */
input::placeholder,
textarea::placeholder,
select::placeholder {
    color: #94a3b8; /* Gris claro (Slate 400) con excelente contraste */
    opacity: 1; /* Asegura visibilidad uniforme en navegadores */
}
