:root {
    --primary-color: #d19a86; /* Rose Gold / Nude */
    --primary-dark: #b57d69;
    --secondary-color: #f7e6e1; /* Pastel claro */
    --text-dark: #333333;
    --text-light: #777777;
    --bg-color: #fdfaf8;
    --white: #ffffff;
    --danger: #e74c3c;
    --success: #2ecc71;
    --shadow: 0 4px 6px rgba(0,0,0,0.05);
    --border-radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-dark);
    line-height: 1.6;
    padding-bottom: 70px; /* Espacio para barra inferior */
}

/* Tipografía elegante */
h1, h2, h3 {
    font-weight: 500;
    color: var(--primary-dark);
}

/* Utilidades */
.container {
    padding: 20px;
    max-width: 600px; /* Optimizado para celular, centrado en desktop */
    margin: 0 auto;
}

.text-center { text-align: center; }
.mt-2 { margin-top: 20px; }
.mb-2 { margin-bottom: 20px; }

/* Botones Premium */
.btn {
    display: block;
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: var(--border-radius);
    background-color: var(--primary-color);
    color: var(--white);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    text-align: center;
    text-decoration: none;
}
.btn:hover {
    background-color: var(--primary-dark);
}
.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}
.btn-danger {
    background-color: var(--danger);
}

/* Formularios */
.form-group {
    margin-bottom: 15px;
}
label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: var(--text-dark);
}
input[type="text"],
input[type="password"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 16px; /* Importante en móviles para que no haga zoom automático */
    background-color: var(--white);
    transition: border 0.3s;
}
input:focus, select:focus, textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

/* Tarjetas (Cards) */
.card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 15px;
}

/* Barra de Navegación Inferior */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    z-index: 1000;
}
.nav-item {
    text-align: center;
    color: var(--text-light);
    text-decoration: none;
    font-size: 12px;
}
.nav-item i {
    display: block;
    font-size: 24px;
    margin-bottom: 2px;
}
.nav-item.active {
    color: var(--primary-color);
}

/* Catálogo Grilla */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
}

.product-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.product-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    background-color: var(--secondary-color);
}
.product-info {
    padding: 10px;
}
.product-brand {
    font-size: 11px;
    color: var(--primary-color);
    text-transform: uppercase;
    font-weight: 600;
}
.product-name {
    font-size: 14px;
    font-weight: 500;
    margin: 5px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.product-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
}

/* Cabecera / Header */
.app-header {
    background-color: var(--white);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}
.app-header h1 {
    font-size: 20px;
    margin: 0;
}
.badge {
    background: var(--secondary-color);
    color: var(--primary-dark);
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 12px;
}
