/* =========================================
   SISpos - SISTEMA DE GESTIÓN COMERCIAL
   ESTILOS UNIFICADOS 2026
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700;800&display=swap');

:root {
    --primario: #2c3e50;
    --secundario: #3498db;
    --exito: #27ae60;
    --peligro: #e74c3c;
    --whatsapp: #25d366;
    --fondo: #f4f7f6;
    --blanco: #ffffff;
    --texto: #333;
    --gris-suave: #7f8c8d;
    --borde-input: #d1d8e0;
    
    /* Colores para Panel Maestro y Ofertas Públicas */
    --dorado-brillante: #f9d976;
    --dorado-medio: #b38728;
    --dorado-oscuro: #84611c;
    --azul-tech: #165DFF;
    --azul-hover: #0045e6;
    --texto-titulo: #1D2129;
    --sombra-deep: 0 15px 35px rgba(0, 0, 0, 0.15);
    --sombra-boton: 0 4px 6px rgba(0, 0, 0, 0.15);
    --naranja-accion: #FF7D00;
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--fondo);
    color: var(--texto);
    line-height: 1.6;
}

.contenedor {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================
   CABECERA (HEADER)
   ========================================= */
header {
    background-color: var(--primario);
    color: var(--blanco);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Estilo de logo Confort Home */
.logo-sitio-dorado {
    font-size: 2.2rem; 
    font-weight: 600;
    background: linear-gradient(to bottom, #f9d976 0%, #f0c33d 25%, #b38728 50%, #af8930 75%, #84611c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 3px 3px rgba(0,0,0,0.5));
}

/* =========================================
   ESTILOS ESPECÍFICOS PANEL MAESTRO
   ========================================= */
.header-maestro { 
    background: #2c3136; 
    padding: 10px 20px; 
    text-align: center; 
    border-bottom: 3px solid var(--dorado-medio);
}

.header-maestro h1 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
    background: linear-gradient(to bottom, #f9d976 0%, #f0c33d 25%, #b38728 50%, #af8930 75%, #84611c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* NAVEGACIÓN POR TABS */
.nav-tabs { 
    display: flex; 
    justify-content: center; 
    padding: 15px; 
    gap: 12px; 
}

.tab-link { 
    cursor: pointer; 
    padding: 10px 22px; 
    border-radius: 50px; 
    font-weight: 600; 
    font-size: 0.85rem;
    background: #ffffff;
    border: 1px solid var(--borde-input);
    transition: all 0.3s ease; 
}

.tab-link.active { 
    background: var(--primario); 
    color: var(--dorado-brillante); 
    border-color: var(--primario);
}

/* =========================================
   CATÁLOGO DE PRODUCTOS (GRID)
   ========================================= */
.productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.producto-card {
    background: var(--blanco);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: 0.3s;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
}

.img-wrapper {
    height: 180px; 
    background: #f9f9f9;
    display: flex; 
    align-items: center; 
    justify-content: center; 
    padding: 15px;
}

.img-wrapper img { 
    max-width: 100%; 
    max-height: 100%; 
    object-fit: contain; 
}

/* =========================================
   LA CÁPSULA BLANCA (CARRITO PÚBLICO)
   ========================================= */
.capsula-blanca {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--sombra-deep);
    border: 1px solid #eee;
    max-width: 900px;
    margin: 40px auto;
}

.carrito-tabla {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.carrito-tabla th {
    text-align: left;
    padding: 12px;
    border-bottom: 2px solid var(--fondo);
    color: var(--gris-suave);
    font-size: 0.8rem;
    text-transform: uppercase;
}

.carrito-tabla td {
    padding: 15px 12px;
    border-bottom: 1px solid #f8f9fa;
}

/* =========================================
   BOTONES DORADOS (ESTILO 3D / NEGRO)
   ========================================= */
.btn-dorado-3d {
    background: #000;
    color: var(--dorado-brillante) !important;
    border: 2px solid var(--dorado-medio);
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    cursor: pointer;
}

.btn-dorado-3d:hover {
    transform: scale(1.05);
    background: #111;
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.btn-add-carrito-mini {
    background: #000;
    border: 2px solid var(--dorado-medio);
    border-radius: 10px;
    width: 40px;
    height: 40px;
    color: var(--dorado-brillante);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
}

/* =========================================
   INTERFAZ DE PORTAL ADMINISTRATIVO
   ========================================= */
.sidebar { 
    width: 250px; 
    background: var(--primario); 
    height: 100vh; 
    position: fixed; 
    color: white; 
    padding: 20px; 
    top: 0;
    left: 0;
}

.main-content { 
    margin-left: 270px; 
    padding: 40px 20px; 
}

.card { 
    background: var(--blanco); 
    padding: 25px; 
    border-radius: 12px; 
    box-shadow: 0 4px 6px rgba(0,0,0,0.05); 
    margin-bottom: 20px; 
}

/* =========================================
   COMPONENTES DE FORMULARIO (SISpos)
   ========================================= */
.input-group {
    margin-bottom: 22px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primario);
}

.input-group input, 
.input-group select,
.input-group textarea {
    width: 100%;
    padding: 12px 15px;
    border-radius: 10px;
    border: 1px solid var(--borde-input);
    outline: none;
    transition: 0.3s;
}

/* =========================================
   RESPONSIVIDAD
   ========================================= */
@media (max-width: 768px) {
    .main-content { margin-left: 0; }
    .sidebar { display: none; }
    .capsula-blanca { padding: 20px; width: 95%; }
    .carrito-tabla thead { display: none; }
    .carrito-tabla td { display: block; text-align: right; padding-left: 50%; position: relative; }
}

@media print {
    .no-print { display: none !important; }
}