/*
Theme Name: VentasYa
Description: Tema tipo dashboard con header rojo y tus SVG originales.
Version: 1.3
Author: Tu nombre
*/

/* ======================
   BASE GENERAL
====================== */
body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: #fafafa;
    color: #222;
}

a {
    color: inherit;
    text-decoration: none;
    transition: 0.3s;
}

/* ======================
   HEADER PRINCIPAL
====================== */
#ventasya-header {
    background: #ff1e1e;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    border-bottom: 1px solid #ff1e1e;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 25px;
    max-width: 1400px;
    margin: 0 auto;
}

/* ===== LOGO ===== */
.header-left .logo-link img {
    max-height: 55px;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

.header-left .logo-link:hover img {
    transform: scale(1.05);
}

/* ===== BUSCADOR ===== */
.header-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.search-form {
    display: flex;
    align-items: center;
    width: 75%;
    max-width: 650px;
    background: #fff;
    border-radius: 30px;
    overflow: hidden;
}

.search-form input[type="text"] {
    flex: 1;
    border: none;
    outline: none;
    padding: 10px 15px;
    font-size: 15px;
    color: #333;
    background: #fff;
}

.search-form button {
    background: #fff;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.search-form button svg {
    stroke: #ff1e1e;
    transition: transform 0.3s ease;
}

.search-form button:hover svg {
    transform: scale(1.1);
}

/* ======================
   ICONOS DERECHA
====================== */
.header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 25px;
}

/* Íconos blancos */
.header-right a svg {
    fill: #ffffff;
    width: 30px;
    height: 30px;
    transition: all 0.3s ease;
}

/* Hover — siguen siendo blancos, solo se levantan */
.header-right a:hover svg {
    fill: #ffffff;
    transform: translateY(-3px);
}

/* Carrito original — respeta su fill interno */
#carrito svg {
    width: 40px;
    height: 40px;
    fill: none !important; /* evita sobrescribir el fill interno */
}

/* Animación del carrito */
.moverDerecha {
    transform: translateX(20px);
    transition: transform 0.4s ease;
}

/* Efecto general animación */
#Animacion {
    cursor: pointer;
    transition: transform 0.3s ease;
}

#Animacion:hover {
    transform: translateY(-5px);
}

/* ======================
   LAYOUT DASHBOARD
====================== */
.dashboard {
    display: grid;
    grid-template-columns: 220px 1fr 250px;
    gap: 20px;
    padding: 25px;
}

/* ======================
   SIDEBAR
====================== */
.sidebar {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.sidebar-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #ff1e1e;
}

.sidebar ul {
    list-style: none;
    padding-left: 10px;
    margin-bottom: 15px;
}

.sidebar ul li {
    margin: 6px 0;
}

.sidebar ul li a {
    color: #333;
    transition: 0.3s;
}

.sidebar ul li a:hover {
    color: #ff1e1e;
}

/* ======================
   MAIN CONTENT
====================== */
.main-content {
    display: flex;
    justify-content: center;
}

.user-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    padding: 30px 40px;
    text-align: center;
    width: 100%;
    max-width: 400px;
}

.upload-box {
    border: 2px dashed #ccc;
    border-radius: 10px;
    padding: 40px 20px;
    margin-top: 20px;
    color: #666;
    transition: 0.3s;
    cursor: pointer;
}

.upload-box:hover {
    border-color: #ff1e1e;
    color: #ff1e1e;
}

/* ======================
   PANEL DERECHO
====================== */
.right-panel {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.right-panel h3 {
    color: #ff1e1e;
}

.available {
    color: #1b7e36;
    font-weight: bold;
}

.actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.btn-secondary {
    background: #f2f2f2;
    border: none;
    border-radius: 6px;
    padding: 10px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: #ff1e1e;
    color: #fff;
}

/* ======================
   FOOTER
====================== */
footer {
    text-align: center;
    padding: 20px;
    background: #fff;
    border-top: 1px solid #eee;
    color: #666;
    font-size: 14px;
}

/* ======================
   RESPONSIVE
====================== */
@media (max-width: 950px) {
    .dashboard {
        grid-template-columns: 1fr;
    }

    .right-panel {
        order: 3;
    }

    .sidebar {
        order: 1;
    }

    .main-content {
        order: 2;
    }
}

@media (max-width: 800px) {
    .header-container {
        flex-direction: column;
        gap: 10px;
    }

    .search-form {
        width: 100%;
    }

    .header-right {
        gap: 15px;
    }

    .header-right svg {
        width: 28px;
        height: 28px;
    }
}
.sidebar ul li a svg,
.btn-secondary svg {
    vertical-align: middle;
    margin-right: 8px;
    transition: transform 0.3s ease;
}

.sidebar ul li a:hover svg,
.btn-secondary:hover svg {
    transform: scale(1.1);
}

.sidebar ul li a,
.btn-secondary {
    display: flex;
    align-items: center;
}
