﻿/* ========================================================
   FORMULARIOS — ARCHIVO ÚNICO DE DISEÑO
   Usar junto con styleTablas.css (de ahí toma las variables)
   ======================================================== */

.container {
    margin-top: -10px !important;
}

.card-body {
    padding-top: 1.5rem !important;
}

/* --- Etiquetas e inputs --- */
.form-label {
    font-weight: 700;
    color: var(--txt-normal);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    display: block;
}

.form-control,
.form-select {
    border-radius: 12px !important;
    border: 1px solid var(--borde);
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

    .form-control::placeholder {
        color: #CBD5E0;
    }

    .form-control:focus,
    .form-select:focus {
        border-color: var(--marca-azul);
        box-shadow: 0 0 0 4px rgba(98, 142, 203, 0.1);
        outline: none;
    }

/* --- Títulos de sección --- */
.section-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--marca-azul);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
}

    .section-title i {
        margin-right: 8px;
    }

/* --- Línea divisora --- */
.divider {
    height: 2px;
    background: var(--borde);
    margin: 2.5rem 0;
    border: none;
    opacity: 1;
}

/* --- Botón Volver --- */
.btn-regresar {
    display: inline-flex;
    align-items: center;
    background-color: #ffffff;
    color: var(--marca-azul);
    padding: 8px 16px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid transparent;
    margin-bottom: 5px;
    margin-top: 0;
}

    .btn-regresar:hover {
        background-color: var(--fondo-hover);
        color: var(--marca-azul-hover);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        transform: translateY(-1px);
    }

/* --- Botones con efecto flotante --- */
.btn-hover-float {
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

    .btn-hover-float:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 12px rgba(98, 142, 203, 0.2);
    }

.btn-cancelar-custom {
    background: white;
}

    .btn-cancelar-custom:hover {
        background-color: var(--fondo-hover);
        color: var(--marca-azul-hover) !important;
        border-color: #CBD5E0 !important;
    }

/* ========================================================
   AVATAR Y VINCULACIONES (formulario de usuario)
   ======================================================== */

.avatar-preview-wrap {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #F7FAFF;
    border: 1px solid var(--borde);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
}

.avatar-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--marca-azul);
    flex-shrink: 0;
}

.avatar-placeholder {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--marca-azul), var(--marca-azul-hover));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    border: 3px solid var(--marca-azul);
    flex-shrink: 0;
}

.vinculacion-badge {
    background: #EBF4FF;
    border: 1px dashed var(--marca-azul);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    margin-top: 0.5rem;
}

    .vinculacion-badge .badge-title {
        font-size: 0.78rem;
        color: var(--marca-azul);
        font-weight: 700;
        margin-bottom: 0.3rem;
    }

/* ========================================================
   MENÚ LATERAL DE MANAGE (Identity)
   ======================================================== */

.nav-manage-link {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--txt-normal);
    text-decoration: none !important;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

    .nav-manage-link:hover {
        background-color: var(--marca-azul-suave);
        color: var(--marca-azul);
    }

    .nav-manage-link.active {
        background-color: var(--marca-azul);
        color: #ffffff !important;
        font-weight: 600;
    }