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

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

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background: #f4f5fb;
    color: #1e2233;
}

h1 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

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

th {
    text-align: left;
    padding: 14px 16px;
    background: #f0f0fb;
    color: #6a5cff;
    text-transform: uppercase;
    font-size: .72rem;
    letter-spacing: .05em;
}

td {
    padding: 14px 16px;
    border-top: 1px solid #eee;
}

tr:hover td {
    background: #fafaff;
}

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

.site-header {
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 16px 32px;
    background: linear-gradient(90deg,#6a5cff,#a855f7);
    color: #fff;
}

.site-brand {
    font-size: 1.4rem;
    font-weight: 700;
    text-decoration: none;
    color: #fff;
}

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

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

    .site-nav a {
        color: #fff;
        text-decoration: none;
        opacity: .92;
        font-weight: 500;
    }

        .site-nav a:hover {
            opacity: 1;
        }

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

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

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

.side-card {
    background: #fff;
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 6px 24px rgba(30,34,51,.08);
    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: #6a5cff;
        text-decoration: none;
        font-size: .85rem;
    }

.noticia {
    border-left: 3px solid #6a5cff;
    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: #6a5cff;
    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: #f0f0fb;
        align-self: flex-start;
    }

    .chat-msg.user {
        background: #6a5cff;
        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: #6a5cff;
        color: #fff;
        padding: 0 16px;
        cursor: pointer;
    }

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

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

.producto-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(30,34,51,.08);
    transition: transform .2s;
}

    .producto-card:hover {
        transform: translateY(-4px);
    }

.producto-img {
    position: relative;
    height: 200px;
    background: #f0f0fb;
}

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

.sin-img {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b8b8d0;
    font-size: .85rem;
}

.producto-info {
    padding: 16px;
}

    .producto-info h3 {
        margin: 0 0 8px;
        font-size: 1.05rem;
    }

.precio {
    color: #6a5cff;
    font-weight: 700;
    font-size: 1.2rem;
    margin: 4px 0;
}

.stock {
    color: #99a;
    font-size: .85rem;
    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);
        background: #fff;
        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: 14px;
    text-decoration: none;
    font-weight: 600;
    position: relative;
    background: linear-gradient(90deg,#6a5cff,#a855f7);
    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: #111827;
    color: #cbd5e1;
    padding: 28px 32px;
    text-align: center;
    margin-top: 40px;
}

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

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

        .footer-links a:hover {
            color: #fff;
        }

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