﻿/* ==========================
   ESTILO GENERAL
========================== */

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-weight: 300;
    color: #111;
    background: #fff;
    margin: 0;
}

h1 {
    font-weight: 300;
    font-size: 2rem;
    letter-spacing: -.02em;
    margin: 0 0 40px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    text-align: left;
    padding: 16px 8px;
    border-bottom: 1px solid #111;
    font-weight: 400;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #999;
}

td {
    padding: 20px 8px;
    border-bottom: 1px solid #f0f0f0;
}

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

.site-header {
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 16px 32px;
    background: #fff;
    color: #111;
    border-bottom: 1px solid #eee;
}

.site-brand {
    font-size: 1rem;
    font-weight: 400;
    text-decoration: none;
    color: #111;
    letter-spacing: .2em;
    text-transform: uppercase;
}

    .site-brand img {
        height: 38px;
        display: block;
    }

.site-nav {
    display: flex;
    gap: 18px;
    align-items: center;
}

    .site-nav a {
        color: #888;
        text-decoration: none;
        opacity: 1;
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: .12em;
        font-size: .78rem;
    }

        .site-nav a:hover,
        .site-actions a:hover {
            color: #111;
        }

.site-actions {
    margin-left: auto;
    display: flex;
    gap: 18px;
}

    .site-actions a {
        color: #888;
        text-decoration: none;
    }

/* ==========================
   SIDEBAR
========================== */

.side-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 0;
    padding: 18px;
    box-shadow: none;
    margin-bottom: 18px;
}

    .side-card h4 {
        margin: 0 0 10px;
        font-size: 1rem;
    }

    .side-card p {
        margin: 0 0 10px;
        font-size: .85rem;
        color: #555;
        line-height: 1.5;
    }

    .side-card a {
        color: #111;
        text-decoration: none;
        font-size: .85rem;
    }

.noticia {
    color: #111;
    border-left: 3px solid #111;
    padding-left: 10px;
}

/* ==========================
   CHAT
========================== */

.chat-widget {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 6px 24px rgba(30,34,51,.1);
    display: flex;
    flex-direction: column;
    height: 440px;
    overflow: hidden;
}

.chat-header {
    background: #111;
    color: #fff;
    padding: 12px 16px;
    font-weight: 600;
    font-size: .9rem;
}

.chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chat-msg {
    padding: 8px 12px;
    border-radius: 12px;
    font-size: .85rem;
    max-width: 85%;
}

    .chat-msg.bot {
        background: #f5f5f5;
        align-self: flex-start;
    }

    .chat-msg.user {
        background: #111;
        color: #fff;
        align-self: flex-end;
    }

.chat-input {
    display: flex;
    border-top: 1px solid #eee;
}

    .chat-input input {
        flex: 1;
        border: none;
        padding: 12px;
        outline: none;
    }

    .chat-input button {
        border: none;
        background: #111;
        color: #fff;
        padding: 0 16px;
        cursor: pointer;
    }

/* ==========================
   PRODUCTOS
========================== */

.grid-productos {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(200px,1fr));
    gap: 40px;
}

.producto-card {
    background: transparent;
}

.producto-img {
    position: relative;
    height: 240px;
    background: #fafafa;
}

    .producto-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.sin-img {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .1em;
}

.producto-info {
    padding: 16px 0 0;
}

    .producto-info h3 {
        margin: 0 0 6px;
        font-weight: 300;
        font-size: 1rem;
    }

.precio {
    font-weight: 400;
    font-size: 1rem;
    margin: 4px 0;
}

.stock {
    color: #bbb;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    margin: 0;
}

/* ==========================
   LATERAL
========================== */

.lateral-der {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.redes {
    display: flex;
    gap: 12px;
    justify-content: center;
}

    .redes a {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        font-size: 1.1rem;
        box-shadow: 0 4px 14px rgba(0,0,0,.12);
        color: #fff;
    }

        .redes a:hover {
            transform: translateY(-2px);
        }

        .redes a i {
            font-size: 1.05rem;
        }

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

.carrito-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-radius: 0;
    text-decoration: none;
    font-weight: 600;
    position: relative;
    background: #111;
    color: #fff;
}

.carrito-ico {
    font-size: 1.3rem;
}

.carrito-badge {
    position: absolute;
    top: -8px;
    left: 26px;
    background: #dc2626;
    color: #fff;
    font-size: .72rem;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(220,38,38,.5);
}

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

.site-footer {
    background: #fff;
    color: #bbb;
    padding: 28px 32px;
    text-align: center;
    margin-top: 40px;
    border-top: 1px solid #eee;
}

.footer-links {
    display: flex;
    gap: 22px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

    .footer-links a {
        color: #888;
        text-decoration: none;
        font-size: .9rem;
    }

.footer-copy {
    margin: 0;
    font-size: .8rem;
    opacity: .6;
}
