﻿/* =========================
   Pages - Acceso (Login/Registro)
   ========================= */

/* Login */
.login-page {
    min-height: calc(100vh - 220px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 12px;
}

.login-card {
    width: 100%;
    max-width: 420px;
    border-radius: 18px;
    border: 1px solid rgba(0,0,0,.06);
    box-shadow: 0 14px 40px rgba(0,0,0,.12);
    overflow: hidden;
    background: #fff;
}

.login-header {
    background: #111;
    color: #fff;
    padding: 22px 22px 18px;
    text-align: center;
}

    .login-header .icon {
        width: 64px;
        height: 64px;
        border-radius: 50%;
        background: rgba(255,255,255,.12);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 10px;
        font-size: 28px;
    }

    .login-header h3 {
        margin: 0;
        font-weight: 800;
        font-size: 1.25rem;
    }

    .login-header .subtitle {
        opacity: .85;
    }

.login-body {
    padding: 22px;
}

.login-page .input-group-text {
    background: #f4f6f8;
    border: 1px solid rgba(0,0,0,.10);
}

.login-page .form-control {
    border: 1px solid rgba(0,0,0,.10);
    padding: 12px 12px;
}

    .login-page .form-control:focus {
        box-shadow: 0 0 0 .2rem rgba(243,156,18,.20);
        border-color: rgba(243,156,18,.60);
    }

.btn-login {
    background: #f39c12;
    border-color: #f39c12;
    font-weight: 800;
    border-radius: 12px;
    padding: 12px;
    width: 100%;
}

    .btn-login:hover {
        filter: brightness(0.95);
    }

.login-footer {
    text-align: center;
    padding: 0 22px 22px;
    color: #555;
}

    .login-footer a {
        font-weight: 700;
        text-decoration: none;
    }

/* Registro */
.registro-page {
    min-height: calc(100vh - 220px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 12px;
}

.registro-card {
    width: 100%;
    max-width: 460px;
    border-radius: 18px;
    border: 1px solid rgba(0,0,0,.06);
    box-shadow: 0 14px 40px rgba(0,0,0,.12);
    overflow: hidden;
    background: #fff;
}

.registro-header {
    background: #111;
    color: #fff;
    padding: 22px 22px 18px;
    text-align: center;
}

    .registro-header h3 {
        margin: 0;
        font-weight: 800;
        font-size: 1.25rem;
    }

.registro-body {
    padding: 22px;
}

.btn-registro {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #000000;
    font-weight: 800;
    border-radius: 12px;
    padding: 12px;
    width: 100%;
}

    .btn-registro:hover {
        background: var(--primary-color-dark);
        border-color: var(--primary-color-dark);
        color: #000000;
    }

/* =========================
   Pages - Admin (General)
   ========================= */

.img-preview-xs {
    height: 50px;
    width: auto;
}

.img-preview-sm {
    max-height: 150px;
    width: auto;
}

.img-producto-detalle {
    max-height: 500px;
    width: auto;
}

@media (max-width: 768px) {
    .img-producto-detalle {
        max-height: 350px;
    }

    .producto-detalle-card {
        padding: 2rem 1rem !important;
    }
}

/* =========================
   Admin - Citas
   ========================= */

.btn-salon-accent {
    background: #ffb199;
    color: #000000;
    border: none;
}

    .btn-salon-accent:hover {
        filter: brightness(0.96);
        color: #000000;
    }

.cita-header-futura {
    background: #ffb199;
    color: #000000;
}

.cita-header-pasada {
    background: #d9d9d9;
    color: #111;
}

/* =========================
   Admin - Confirmación
   ========================= */

.confirmacion-title {
    color: #FAB89E;
}

/* =========================
   Admin - Contacto
   ========================= */

.contacto-title,
.contacto-subtitle {
    color: #FAB89D;
}

.social-facebook {
    color: #1877F2;
}

.social-instagram {
    color: #FAB89D;
}

.social-whatsapp {
    color: #25D366;
}

.btn-contacto {
    background-color: #FAB89D;
    color: #000000;
}

    .btn-contacto:hover {
        filter: brightness(0.96);
        color: #000000;
    }

.mapa-frame {
    border: 0;
    border-radius: 15px;
}

/* =========================
   Admin - Detalle Mensaje
   ========================= */

.mensaje-texto {
    font-size: 1.05rem;
    white-space: pre-line;
}

/* =========================
   Admin - Gestión Usuarios
   ========================= */

.panel-admin {
    max-width: 980px;
    margin: 0 auto;
    background: #fff;
    border-radius: 18px;
    padding: 30px;
    box-shadow: 0 12px 35px rgba(0,0,0,.12);
}

    .panel-admin h2 {
        font-weight: 900;
        color: #FAB89D;
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 10px;
    }

    .panel-admin p {
        color: #555;
        margin-bottom: 22px;
    }

.card-op {
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,.08);
    padding: 22px;
    background: #fafafa;
    height: 100%;
    transition: transform .15s ease, box-shadow .15s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

    .card-op:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 25px rgba(0,0,0,.10);
        border-color: rgba(250,184,157,.55);
    }

    .card-op .icon {
        font-size: 28px;
        margin-bottom: 10px;
        color: #111;
    }

    .card-op h5 {
        font-weight: 800;
        margin-bottom: 6px;
    }

.mini {
    color: #666;
    margin: 0;
}

.btn-volver {
    border-radius: 10px;
    padding: 10px 14px;
}

/* =========================
   Admin - Producto Detalle
   ========================= */

.producto-detalle-card {
    border-radius: 15px;
}

    .producto-detalle-card h2,
    .producto-detalle-card p.lead,
    .producto-detalle-card p.h4 {
        color: #222;
    }

/* =========================
   Pages - Citas (Agendar/Index/Confirmación)
   ========================= */

/* Confirmación (usuario) */
.citas-confirmacion-title {
    color: #FAB89D;
}

/* Index Citas */
.citas-index-title {
    color: #ff9f80;
}

.btn-citas-reservar {
    background: #ffb199;
    color: #000000;
    border: none;
}

    .btn-citas-reservar:hover {
        filter: brightness(0.96);
        color: #000000;
    }

/* Agendar (form simple) */
.citas-agendar-form .form-group {
    margin-bottom: 1rem;
}

/* =========================
   Pages - Home (Citas/Contacto/Productos/Marcas/Detalle/Servicios)
   ========================= */

/* --- Home/Citas --- */
.home-citas-bookbtn {
    background-color: #FAB89D;
    color: #000000;
}

    .home-citas-bookbtn:hover {
        filter: brightness(0.96);
        color: #000000;
    }

.home-citas-times-loading {
    color: #6c757d;
}

.home-citas-times-error {
    color: #dc3545;
}

.home-citas-times-empty {
    color: #6c757d;
}

.home-citas-times-success {
    color: #198754;
}

/* “time slot” (botones de hora) */
.home-time-slot.active {
    background: #FAB89D;
    border-color: #FAB89D;
    color: #000000;
}

/* --- Home/Confirmación --- */
.home-confirmacion-title {
    color: var(--primary-color);
}

/* --- Home/Contacto --- */
.home-contacto-subtitle {
    color: #FAB89D;
}

.home-social-facebook {
    color: #1877F2;
}

.home-social-instagram {
    color: #FAB89D;
}

.home-social-whatsapp {
    color: #25D366;
}

.home-contacto-btn {
    background-color: #FAB89D;
    color: #000000;
}

    .home-contacto-btn:hover {
        filter: brightness(0.96);
        color: #000000;
    }

.home-mapa-frame {
    border: 0;
    border-radius: 15px;
}

/* --- Cards de productos (Home/Productos y Home/Marcas) --- */
.home-productos-title,
.home-marcas-title {
    text-align: center;
    font-weight: 800;
    color: #f39c12;
    margin-bottom: 3rem;
}

.home-titulo-marca {
    font-weight: 700;
    margin: 2.5rem 0 1.5rem;
    color: #333;
}

.home-producto-card {
    background: #fff;
    border-radius: 18px;
    padding: 20px;
    height: 100%;
    border: 1px solid #eee;
    transition: transform .2s ease;
    text-align: center;
}

    .home-producto-card:hover {
        transform: translateY(-4px);
    }

.home-producto-img {
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

    .home-producto-img img {
        max-height: 240px;
        object-fit: contain;
    }

.home-producto-nombre {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 10px;
}

.home-producto-precio {
    font-weight: 800;
    margin: 10px 0 15px;
    font-size: 1.05rem;
}

.home-producto-marca {
    font-size: .95rem;
    margin-bottom: 15px;
}

.home-link-detalle {
    text-decoration: none;
    color: inherit;
}

/* Botón WhatsApp */
.home-btn-whatsapp {
    background: #28a745;
    border-color: #28a745;
    font-weight: 700;
    border-radius: 10px;
    width: 100%;
}

    .home-btn-whatsapp:hover {
        background: #218838;
        border-color: #1e7e34;
    }

/* --- Home/ProductoDetalle --- */
.home-detalle-card {
    border-radius: 15px;
}

.home-detalle-title,
.home-detalle-lead,
.home-detalle-price {
    color: #222;
}

.home-detalle-btn-success {
    background-color: #28a745;
    border-color: #28a745;
    transition: background-color 0.3s, border-color 0.3s;
    font-weight: 700;
    border-radius: 10px;
}

    .home-detalle-btn-success:hover {
        background-color: #218838;
        border-color: #1e7e34;
    }

.home-detalle-btn-back {
    font-weight: 700;
    border-radius: 10px;
}

@media (max-width: 768px) {
    .home-detalle-img {
        max-height: 350px;
    }

    .home-detalle-card {
        padding: 2rem 1rem !important;
    }
}

/* --- Home/Servicios --- */
.home-servicio-btn {
    background-color: #FAB89D;
    color: #000000;
}

    .home-servicio-btn:hover {
        filter: brightness(0.96);
        color: #000000;
    }

/* Home/ProductoDetalle: altura de imagen (para quitar inline) */
.home-detalle-img {
    max-height: 500px;
    width: auto;
}

/* Título de páginas */
.titulo-pagina {
    color: #FAB89D;
    font-weight: 900;
    text-align: center;
    margin-bottom: 25px;
    /* quitar contorno negro */
    -webkit-text-stroke: 0;
    text-stroke: 0;
}

/* =========================
   Botón Guardar - Unificar color
   ========================= */

.btn-success {
    background-color: #FAB89D !important;
    border-color: #FAB89D !important;
    color: #000000 !important;
    font-weight: 500; /* ← normal, no negrita */
    border-radius: 12px;
}

    .btn-success:hover {
        filter: brightness(0.96);
        color: #000000 !important;
    }
