/* =====================================================================
   Paula Peluquerías — Tema "Boutique cálido"
   Acento burdeos/rosa sobre fondo crema. Serif solo en el logo.
   Se carga el último para prevalecer sobre la plantilla admin.
   ===================================================================== */

:root {
    --brand:        #993556;
    --brand-dark:   #72243E;
    --brand-050:    #FBEAF0;
    --brand-100:    #F6D2DE;
    --brand-200:    #ED93B1;
    --cream:        #FAF6F2;
    --surface:      #FFFFFF;
    --ink:          #3A2530;
    --ink-soft:     #8A7A82;
    --line:         #ECE3DE;
    --radius:       14px;
    --radius-sm:    10px;
    --shadow:       0 1px 2px rgba(58,37,48,.04), 0 10px 30px rgba(58,37,48,.06);
}

/* ---------- Base ---------- */
body {
    background-color: var(--cream) !important;
    color: var(--ink);
    font-family: 'Nunito', system-ui, -apple-system, "Segoe UI", sans-serif;
}

a { color: var(--brand); }
a:hover { color: var(--brand-dark); }

.brand-title {
    font-family: Georgia, 'Times New Roman', serif;
    color: var(--brand);
    font-weight: 700;
    letter-spacing: .2px;
}

/* ---------- Navbar (admin) ---------- */
.app-header .navbar,
.navbar.bg-white {
    background: var(--surface) !important;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 1px 0 rgba(58,37,48,.03);
}
.app-header .navbar-brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-dot {
    width: 30px; height: 30px; border-radius: 50%;
    background: var(--brand); color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-family: Georgia, serif; font-size: 16px; flex: 0 0 auto;
}
.app-header .nav-link { color: var(--ink); font-weight: 600; }
.app-header .nav-link:hover,
.app-header .nav-link.active { color: var(--brand); }

/* ---------- Botones ---------- */
.btn {
    border-radius: var(--radius-sm);
    font-weight: 600;
    padding: .5rem 1.1rem;
}
.btn-primary,
.btn-brand {
    background-color: var(--brand) !important;
    border-color: var(--brand) !important;
    color: #fff !important;
}
.btn-primary:hover,
.btn-brand:hover,
.btn-primary:focus,
.btn-brand:focus {
    background-color: var(--brand-dark) !important;
    border-color: var(--brand-dark) !important;
}
.btn-outline-primary,
.btn-outline-brand {
    color: var(--brand) !important;
    border-color: var(--brand-200) !important;
    background: transparent !important;
}
.btn-outline-primary:hover,
.btn-outline-brand:hover {
    background-color: var(--brand) !important;
    color: #fff !important;
    border-color: var(--brand) !important;
}
.btn-light, .btn-secondary.btn-cancel {
    background: #fff !important;
    border: 1px solid var(--line) !important;
    color: var(--ink) !important;
}
.btn-light:hover, .btn-secondary.btn-cancel:hover {
    background: var(--cream) !important;
}
.btn-pill { border-radius: 30px; }

/* Botones de acción de la tabla (iconos) */
.action-edit  { color: #B5851C; border-color: #EBD9A6 !important; }
.action-edit:hover  { background: #B5851C; color: #fff; border-color: #B5851C !important; }
.action-delete { color: #C0392B; border-color: #F0C7C2 !important; }
.action-delete:hover { background: #C0392B; color: #fff; border-color: #C0392B !important; }

/* ---------- Tarjetas ---------- */
.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.card-header {
    background: transparent;
    border-bottom: 1px solid var(--line);
    font-weight: 700;
    color: var(--ink);
    padding: 1rem 1.25rem;
}
.card-body { padding: 1.25rem 1.5rem; }

/* ---------- Formularios ---------- */
.form-label { font-weight: 600; color: var(--ink); margin-bottom: .35rem; }
.form-control, .form-select {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: .55rem .8rem;
    color: var(--ink);
    background-color: #fff;
}
.form-control:focus, .form-select:focus {
    border-color: var(--brand-200);
    box-shadow: 0 0 0 .2rem rgba(153,53,86,.15);
}
.form-control::placeholder { color: #b9a9b0; }
.form-check-input:checked {
    background-color: var(--brand);
    border-color: var(--brand);
}
.form-check-input:focus {
    border-color: var(--brand-200);
    box-shadow: 0 0 0 .2rem rgba(153,53,86,.15);
}

/* ---------- Tablas ---------- */
.table {
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 0;
}
.table > thead > tr > th {
    background: var(--brand-050);
    color: var(--brand-dark);
    font-weight: 700;
    border-bottom: 1px solid var(--brand-100);
    text-transform: none;
    white-space: nowrap;
}
.table > tbody > tr > td { color: var(--ink); vertical-align: middle; }
.table-striped > tbody > tr:nth-of-type(odd) > * {
    background-color: #FCF9F7;
}
.table-hover > tbody > tr:hover > * {
    background-color: var(--brand-050);
}

/* Tintes de estado (suaves) — anulan los de bootstrap */
.table > tbody > tr.table-success > * { background-color: #E7F3EB !important; color: #1E6B3D; }
.table > tbody > tr.table-danger  > * { background-color: #FBE7E9 !important; color: #9A2A2A; }
.table > tbody > tr.table-interesado > * { background-color: #EFE7F7 !important; color: #4A148C; }

.card.table-wrap, .table-card {
    padding: 0; overflow: hidden;
}

/* ---------- Badges de estado ---------- */
.badge-estado {
    display: inline-block;
    font-size: .72rem;
    font-weight: 700;
    padding: .2rem .55rem;
    border-radius: 20px;
    line-height: 1.4;
}
.badge-cliente      { background: #E7F3EB; color: #1E6B3D; }
.badge-interesado   { background: #EFE7F7; color: #4A148C; }
.badge-no-interesado{ background: #FBE7E9; color: #9A2A2A; }
.badge-pendiente    { background: #F1EAE6; color: #8A7A82; }

/* ---------- Alertas ---------- */
.alert-success {
    background: #E7F3EB;
    border: 1px solid #CBE6D4;
    color: #1E6B3D;
    border-radius: var(--radius-sm);
}
.alert-danger {
    background: #FBE7E9;
    border: 1px solid #F1CDCF;
    color: #9A2A2A;
    border-radius: var(--radius-sm);
}

/* ---------- Cabecera de página ---------- */
.page-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; flex-wrap: wrap; margin-bottom: 1.25rem;
}
.page-head h1 { font-size: 1.5rem; font-weight: 700; margin: 0; color: var(--ink); }

/* ---------- Pantallas de autenticación ---------- */
.auth-shell {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    padding: 24px;
    background: var(--cream);
}
.auth-card {
    width: 100%; max-width: 400px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 34px 30px 30px;
}
.auth-logo {
    width: 56px; height: 56px; border-radius: 50%;
    background: var(--brand); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-family: Georgia, serif; font-size: 26px;
    margin: 0 auto 14px;
}
.auth-title {
    text-align: center;
    font-family: Georgia, serif;
    color: var(--brand);
    font-size: 1.35rem; font-weight: 700;
    margin-bottom: 2px;
}
.auth-sub {
    text-align: center; color: var(--ink-soft);
    font-size: .9rem; margin-bottom: 22px;
}

/* Contenedor estrecho reutilizable para formularios */
.form-narrow { max-width: 560px; margin: 0 auto; }
