/* Demo Estética/Spa - Estilos */
:root {
    --color-primary: #ec4899;
    --color-primary-dark: #db2777;
    --color-secondary: #8b5cf6;
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-danger: #ef4444;
    --color-info: #06b6d4;
    
    --color-bg: #fdf2f8;
    --color-surface: #ffffff;
    --color-border: #fce7f3;
    --color-text: #1f2937;
    --color-text-muted: #6b7280;
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    
    --shadow-sm: 0 2px 8px rgba(236, 72, 153, 0.1);
    --shadow-md: 0 4px 16px rgba(236, 72, 153, 0.15);
    
    --nav-height: 70px;
    --header-height: 60px;
}

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

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    min-height: 100vh;
}

.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.app-header {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white;
    padding: 0 1.5rem;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: white;
}

.logo-icon { font-size: 1.5rem; }
.logo-text { font-weight: 700; font-size: 1.1rem; }

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-badge {
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.app-main {
    flex: 1;
    padding: 1.5rem;
    padding-bottom: calc(var(--nav-height) + 1.5rem);
}

.app-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: white;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -4px 20px rgba(236, 72, 153, 0.1);
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    text-decoration: none;
    color: var(--color-text-muted);
    padding: 0.5rem 1rem;
    transition: all 0.2s;
}

.nav-item.active { color: var(--color-primary); }
.nav-icon { font-size: 1.5rem; }
.nav-label { font-size: 0.7rem; font-weight: 600; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: white;
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-success { background: var(--color-success); color: white; }
.btn-danger { background: var(--color-danger); color: white; }
.btn-secondary { background: var(--color-secondary); color: white; }
.btn-outline-light { background: transparent; border: 1px solid rgba(255,255,255,0.3); color: white; }
.btn-block { width: 100%; }
.btn-lg { padding: 1rem 2rem; font-size: 1.1rem; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.85rem; }

/* Cards */
.card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.card-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--color-border);
    font-weight: 700;
}

.card-body { padding: 1.5rem; }

/* Form */
.form-group { margin-bottom: 1rem; }
.form-label { display: block; margin-bottom: 0.5rem; font-weight: 600; font-size: 0.9rem; }

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-control:focus { outline: none; border-color: var(--color-primary); }

/* Badge */
.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
}

.bg-pink { background: rgba(255,255,255,0.25); color: white; }
.bg-success { background: var(--color-success); color: white; }
.bg-warning { background: var(--color-warning); color: white; }
.bg-danger { background: var(--color-danger); color: white; }
.bg-purple { background: var(--color-secondary); color: white; }

/* Utilities */
.text-center { text-align: center; }
.text-muted { color: var(--color-text-muted); }
.text-success { color: var(--color-success); }
.text-danger { color: var(--color-danger); }
.text-pink { color: var(--color-primary); }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mt-2 { margin-top: 1rem; }

/* Login */
.login-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    padding: 2rem;
}

.login-logo { text-align: center; margin-bottom: 2rem; color: white; }
.login-logo-icon { font-size: 4rem; margin-bottom: 0.5rem; }
.login-logo-text { font-size: 1.75rem; font-weight: 800; }
.login-logo-slogan { font-size: 0.9rem; opacity: 0.8; }

.login-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow-md);
}

.login-title { text-align: center; margin-bottom: 1.5rem; font-size: 1.25rem; }

.role-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-bottom: 1.5rem; }

.role-btn {
    padding: 1.5rem 1rem;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    background: white;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
}

.role-btn:hover { border-color: var(--color-primary); background: var(--color-bg); }
.role-btn.selected { border-color: var(--color-primary); background: var(--color-primary); color: white; }
.role-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.role-name { font-weight: 700; }

.estilista-select { display: none; }
.estilista-select.visible { display: block; }

.estilista-list { display: grid; gap: 0.75rem; }

.estilista-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s;
}

.estilista-option:hover { border-color: var(--color-primary); }
.estilista-option.selected { border-color: var(--color-primary); background: var(--color-bg); }
.estilista-avatar { font-size: 2rem; }

/* Agenda */
.agenda-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
}

.agenda-table th, .agenda-table td {
    border: 1px solid var(--color-border);
    padding: 0.5rem;
    vertical-align: top;
}

.agenda-table th {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white;
    font-weight: 600;
    position: sticky;
    top: 0;
}

.slot-cell {
    min-height: 55px;
    cursor: pointer;
    transition: background 0.15s;
    position: relative;
}

.slot-cell:hover { background: var(--color-bg); }

.cita-card {
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    color: white;
    font-size: 0.75rem;
    margin-bottom: 2px;
}

.cita-cliente { font-weight: 700; }
.cita-servicio { opacity: 0.9; font-size: 0.7rem; }

.tiempo-pose-indicator {
    position: absolute;
    right: 2px;
    top: 2px;
    background: var(--color-warning);
    color: white;
    font-size: 0.6rem;
    padding: 2px 4px;
    border-radius: 3px;
}

/* Ficha técnica */
.formula-box {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 2px solid #f59e0b;
    border-radius: var(--radius-md);
    padding: 1rem;
    font-family: 'Courier New', monospace;
}

.alerta-retoque {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    border: 2px solid var(--color-danger);
    border-radius: var(--radius-md);
    padding: 1rem;
    color: #991b1b;
}
